Skip to content
Gregor Steiner edited this page May 6, 2014 · 3 revisions

Client

GetEyePos()

  • Return value: Vector pos
  • Returns the entitys eye position

GetPos()

  • Return value: Vector pos
  • Returns the entity position

Shared

AddVelocity(Vector vel)

  • Return value: nil
  • Adds to the entitys current velocity

EntIndex()

  • Return value: Number index
  • Returns the entity index

Explode(Number size)

  • Return value: nil
  • Explodes the entity

Extinguish()

  • Return value: nil
  • Extinguish the entity This is an alternative function to SetBurning

GetAir()

  • Return value: Number air
  • Return the entitys air volume

GetAngles()

  • Alias to this function: GetEyeAngles
  • Return value: Angle ang
  • Returns the entity angles

GetClass()

  • Return value: Boolean classname
  • Returns the class the entity is a part of

GetDataWatcher()

  • Return value: DataWatcher networkdata
  • Returns a DataWatcher which can be used to control the entities networked data

GetDimensionID()

  • Return value: Number dimension
  • Return the dimension number the entity is currently in

GetEyeHeight()

  • Return value: Number height
  • Returns the entitys eye height

GetEyePos()

  • Return value: Vector pos
  • Returns the entitys eye position

GetFireResistance()

  • Return value: Number res
  • The amount of ticks you have to stand inside in fire before be set on fire

GetHeight()

  • Return value: Number height
  • Get the height of the entity

GetItem()

GetMount()

  • Return value: Entity riding
  • Get the entity that is being ridden

GetNBTTag()

  • Return value: NBTTag nbttag
  • Returns the entities NBTTag compound

GetNoClip()

  • Return value: Boolean noclipping
  • Get whether or not the entity is in noclip mode

GetPos()

  • Return value: Vector pos
  • Returns the entity position

GetSize()

  • Return value: Number width, Number height
  • Get the width and the height of the entity

GetStepSize()

  • Return value: Number stepsize
  • Returns the entity step size

GetUniqueID()

  • Return value: String id
  • Get the entities unique ID that will be persistent If used on a player in online-mode, it will return the Minecraft UUID for the player

GetVelocity()

  • Return value: Vector vel
  • Returns the entitys current velocity

GetWidth()

  • Return value: Number width
  • Get the width of the entity

GetWorld()

  • Return value: World world
  • Get the world object in which the entity resides in

Ignite()

  • Return value: nil
  • Set the entity on fire This is an alternative function to SetBurning

IsAlive()

  • Return value: Boolean alive
  • Returns if the entity is alive

IsAnimal()

  • Return value: Boolean animal
  • Returns if the entity is an animal entity

IsBurning()

  • Return value: Boolean burning
  • Check if the entity is burning

IsEntity(arg)

  • Return value: Boolean entity
  • Returns if the argument is an entity

IsInAir()

  • Return value: Boolean inair
  • Returns if the entity is airborne

IsInWater()

  • Return value: Boolean inwater
  • Check if the entity is in water

IsInWeb()

  • Return value: Boolean web
  • Checks if the entity is in a web

IsInstanceOf()

  • Return value: Boolean instance
  • Returns if the entity is an instance of the given

IsInvisible()

  • Return value: Boolean invisible
  • Returns if the entity is invisible

IsItem()

  • Return value: Boolean item
  • Returns if the entity is an item entity

IsLiving()

  • Return value: Boolean living
  • Returns if the entity is a living entity

IsMob()

  • Return value: Boolean mob
  • Returns if the entity is a mob entity

IsMounted()

  • Return value: Boolean mounted
  • Check if the entity is mounted by another entity

IsOnGround()

  • Return value: Boolean onground
  • Check if the entity stands on ground

IsPlayer()

  • Return value: Boolean player
  • Returns if the entity is a player entity

IsSneaking()

  • Return value: Boolean sneak
  • Check if the entity is sneaking

IsSprinting()

  • Return value: Boolean sprinting
  • Check if the entity is sprinting

IsTameable()

  • Return value: Boolean tameable
  • Returns if the entity is a tameable entity

IsValid()

  • Return value: Boolean valid
  • Returns if the entity is not null

LocalToWorld()

  • Return value: Vector vec
  • Get the world vector of a local vector in relation to the entity

Move(Vector pos)

  • Return value: nil
  • Try to move the entity to the given position

OBBMaxs()

  • Return value: Vector maxs
  • Gets the entitys maximum bound

OBBMins()

  • Return value: Vector mins
  • Gets the entitys minimum bound

PlaySound(String Sound name, [ Number Volume, Number Pitch ])

  • Return value: nil
  • Play a sound emitting from the entity

Remove()

  • Return value: nil
  • Remove the entity

SetAir(Number air)

  • Return value: nil
  • Set the entitys air volume

SetAngles(Angle ang)

  • Return value: nil
  • Sets the entity angles

SetFireResistance(Number resistance)

  • Return value: nil
  • Sets the entitys resistance to fire

SetInvisible(Boolean invisible)

  • Return value: nil
  • Sets if the entity is invisible or not

SetMount(Entity ent)

  • Return value: nil
  • Mount the entity to another entity

SetNoClip(Boolean noclip)

  • Return value: nil
  • Set the entity into noclip mode

SetPos(Vector pos)

  • Return value: nil
  • Sets the entity position

SetSize(Number width, Number height)

  • Return value: nil
  • Set the width and the height of the entity

SetSprinting(Boolean sprinting)

  • Return value: nil
  • Set the entity to sprint This onls works if the forward movement is not zero

SetStepSize(Number stepsize)

  • Return value: nil
  • Sets the entity step size

SetVelocity(Vector vel)

  • Return value: nil
  • Sets the entitys current velocity

Spawn()

  • Return value: nil
  • Spawn an entity in the world

WorldToLocal()

  • Return value: Vector vec
  • Get the local vector of a world vector in relation to the entity
Clone this wiki locally