-
Notifications
You must be signed in to change notification settings - Fork 6
Entity
Gregor Steiner edited this page May 6, 2014
·
3 revisions
- Return value: Vector pos
- Returns the entitys eye position
- Return value: Vector pos
- Returns the entity position
AddVelocity(Vector vel)
- Return value: nil
- Adds to the entitys current velocity
- Return value: Number index
- Returns the entity index
Explode(Number size)
- Return value: nil
- Explodes the entity
- Return value: nil
- Extinguish the entity This is an alternative function to SetBurning
- Return value: Number air
- Return the entitys air volume
- Alias to this function: GetEyeAngles
- Return value: Angle ang
- Returns the entity angles
- Return value: Boolean classname
- Returns the class the entity is a part of
- Return value: DataWatcher networkdata
- Returns a DataWatcher which can be used to control the entities networked data
- Return value: Number dimension
- Return the dimension number the entity is currently in
- Return value: Number height
- Returns the entitys eye height
- Return value: Vector pos
- Returns the entitys eye position
- Return value: Number res
- The amount of ticks you have to stand inside in fire before be set on fire
- Return value: Number height
- Get the height of the entity
- Return value: Entity riding
- Get the entity that is being ridden
- Return value: NBTTag nbttag
- Returns the entities NBTTag compound
- Return value: Boolean noclipping
- Get whether or not the entity is in noclip mode
- Return value: Vector pos
- Returns the entity position
- Return value: Number stepsize
- Returns the entity step size
- 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
- Return value: Vector vel
- Returns the entitys current velocity
- Return value: Number width
- Get the width of the entity
- Return value: World world
- Get the world object in which the entity resides in
- Return value: nil
- Set the entity on fire This is an alternative function to SetBurning
- Return value: Boolean alive
- Returns if the entity is alive
- Return value: Boolean animal
- Returns if the entity is an animal entity
- Return value: Boolean burning
- Check if the entity is burning
- Return value: Boolean entity
- Returns if the argument is an entity
- Return value: Boolean inair
- Returns if the entity is airborne
- Return value: Boolean inwater
- Check if the entity is in water
- Return value: Boolean web
- Checks if the entity is in a web
- Return value: Boolean instance
- Returns if the entity is an instance of the given
- Return value: Boolean invisible
- Returns if the entity is invisible
- Return value: Boolean item
- Returns if the entity is an item entity
- Return value: Boolean living
- Returns if the entity is a living entity
- Return value: Boolean mob
- Returns if the entity is a mob entity
- Return value: Boolean mounted
- Check if the entity is mounted by another entity
- Return value: Boolean onground
- Check if the entity stands on ground
- Return value: Boolean player
- Returns if the entity is a player entity
- Return value: Boolean sneak
- Check if the entity is sneaking
- Return value: Boolean sprinting
- Check if the entity is sprinting
- Return value: Boolean tameable
- Returns if the entity is a tameable entity
- Return value: Boolean valid
- Returns if the entity is not null
- 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
- Return value: Vector maxs
- Gets the entitys maximum bound
- Return value: Vector mins
- Gets the entitys minimum bound
- Return value: nil
- Play a sound emitting from the entity
- 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
- 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
- Return value: nil
- Spawn an entity in the world
- Return value: Vector vec
- Get the local vector of a world vector in relation to the entity