public interface IEntity extends ICommandSender
Modifier and Type | Method and Description |
---|---|
void |
addTag(java.lang.String tag) |
boolean |
alwaysRenderNameTag() |
boolean |
attackEntityFrom(IDamageSource source,
float amount) |
boolean |
canBeAttackedWithItem() |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canPassengerSteer() |
boolean |
canRiderInteract() |
boolean |
canTrample(IWorld world,
IBlockDefinition block,
IBlockPos pos,
float fall) |
void |
dismountRidingEntity() |
boolean |
doesTriggerPressurePlate() |
IEntityItem |
dropItem(IItemStack itemStack,
float offset) |
void |
extinguish()
Sets an entity to no longer be on fire.
|
int |
getAir() |
java.util.List<IItemStack> |
getArmorInventoryList() |
IEntity |
getControllingPassenger() |
java.lang.String |
getCustomName() |
IEntityDefinition |
getDefinition() |
int |
getDimension()
Retrieves the dimension id this entity is in.
|
double |
getDistanceSqToEntity(IEntity entity) |
java.util.List<IItemStack> |
getEquipmentAndArmor() |
float |
getEyeHight() |
java.util.List<IItemStack> |
getHeldEquipment() |
int |
getID() |
java.lang.Object |
getInternal() |
IVector3d |
getLookingDirection() |
IEntity |
getLowestRidingEntity() |
int |
getMaxFallHeight() |
int |
getMaxInPortalTime() |
double |
getMotionX() |
double |
getMotionY() |
double |
getMotionZ() |
IData |
getNBT() |
IEntity[] |
getParts() |
java.util.List<IEntity> |
getPassengers() |
java.util.List<IEntity> |
getPassengersRecursive() |
IItemStack |
getPickedResult() |
int |
getPortalCooldown() |
Position3f |
getPosition3f()
Retrieves the position of this entity.
|
double |
getPosX() |
double |
getPosY() |
double |
getPosZ() |
IRayTraceResult |
getRayTrace(double blockReachDistance,
float partialTicks) |
IEntity |
getRidingEntity() |
float |
getRotationPitch() |
float |
getRotationYaw() |
java.util.List<java.lang.String> |
getTags() |
ITeam |
getTeam() |
double |
getX()
Retrieves the x position of this entity.
|
double |
getY()
Retrieves the y position of this entity.
|
double |
getZ()
Retrieves the z position of this entity.
|
boolean |
hasCustomName() |
boolean |
hasNoGravity() |
boolean |
isAlive() |
boolean |
isBeingRidden() |
boolean |
isBoss() |
boolean |
isBurning() |
boolean |
isEntityEqual(IEntity other) |
boolean |
isGlowing() |
boolean |
isImmuneToExplosions() |
boolean |
isImmuneToFire() |
boolean |
isInLava() |
boolean |
isInsideOfMaterial(IMaterial material) |
boolean |
isInsideOpaqueBlock() |
boolean |
isInvisible() |
boolean |
isInvulnerable() |
boolean |
isInvulnerableTo(IDamageSource source) |
boolean |
isInWater() |
boolean |
isOnSameTeam(IEntity other) |
boolean |
isOutsideBorder() |
boolean |
isOverWater() |
boolean |
isPassenger(IEntity entity) |
boolean |
isPushedByWater() |
boolean |
isRiding() |
boolean |
isRidingSameEntity(IEntity other) |
boolean |
isSilent() |
boolean |
isSneaking() |
boolean |
isSprinting() |
boolean |
isWet() |
void |
onEntityUpdate() |
void |
onKillCommand() |
void |
onUpdate() |
void |
removePassengers() |
void |
removeTag(java.lang.String tag) |
void |
setAir(int seconds) |
void |
setAlwaysRenderNameTag(boolean alwaysRenderNameTag) |
void |
setCustomName(java.lang.String name) |
void |
setDead()
Set an entity to dead, will be removed during the next tick.
|
void |
setDimension(int dimensionID) |
void |
setFire(int seconds)
Lights an entity on fire.
|
void |
setGlowing(boolean glowing) |
void |
setID(int id) |
void |
setInvisible(boolean invisible) |
void |
setInvulnerable(boolean invulnerable) |
void |
setInWeb() |
void |
setMotionX(double motionX) |
void |
setMotionY(double motionY) |
void |
setMotionZ(double motionZ) |
void |
setNoGravity(boolean noGravity) |
void |
setOutsideBorder(boolean outsideBorder) |
void |
setPosition(IBlockPos position)
Sets the position of this entity.
|
void |
setPosX(double posX) |
void |
setPosY(double posY) |
void |
setPosZ(double posZ) |
void |
setRotationPitch(float rotationPitch) |
void |
setRotationYaw(float rotationYaw) |
void |
setSilent(boolean silent) |
void |
setSneaking(boolean sneaking) |
void |
setSprinting(boolean sprinting) |
void |
setToLocationFrom(IEntity other) |
void |
setWorld(IWorld world)
Retrieves the world this entity is in.
|
boolean |
shouldRiderDismountInWater(IEntity rider) |
boolean |
shouldRiderSit() |
void |
spawnRunningParticles() |
getDisplayName, getPosition, getServer, getWorld, sendMessage
IEntityDefinition getDefinition()
void setWorld(IWorld world)
int getDimension()
void setDimension(int dimensionID)
double getX()
double getY()
double getZ()
Position3f getPosition3f()
void setPosition(IBlockPos position)
position
- entity positionvoid setDead()
void setFire(int seconds)
seconds
- the number of seconds the fire should last.void extinguish()
boolean isWet()
java.util.List<IEntity> getPassengers()
double getDistanceSqToEntity(IEntity entity)
entity
- the entity to check distance to.boolean isAlive()
IEntity getRidingEntity()
IItemStack getPickedResult()
java.lang.String getCustomName()
void setCustomName(java.lang.String name)
name
- the custom name to set to this entity.boolean isImmuneToFire()
int getAir()
void setAir(int seconds)
seconds
- amount of air in seconds to add.java.lang.Object getInternal()
getInternal
in interface ICommandSender
boolean canTrample(IWorld world, IBlockDefinition block, IBlockPos pos, float fall)
void onEntityUpdate()
void onUpdate()
boolean isSprinting()
void setSprinting(boolean sprinting)
boolean isGlowing()
void setGlowing(boolean glowing)
int getID()
void setID(int id)
java.util.List<java.lang.String> getTags()
void addTag(java.lang.String tag)
void removeTag(java.lang.String tag)
void onKillCommand()
int getMaxInPortalTime()
int getPortalCooldown()
boolean isSilent()
void setSilent(boolean silent)
boolean hasNoGravity()
void setNoGravity(boolean noGravity)
boolean isInWater()
boolean isOverWater()
void spawnRunningParticles()
boolean isInsideOfMaterial(IMaterial material)
boolean isInLava()
boolean attackEntityFrom(IDamageSource source, float amount)
boolean canBeCollidedWith()
boolean canBePushed()
IData getNBT()
IEntityItem dropItem(IItemStack itemStack, float offset)
boolean isInsideOpaqueBlock()
void removePassengers()
void dismountRidingEntity()
java.util.List<IItemStack> getHeldEquipment()
java.util.List<IItemStack> getArmorInventoryList()
java.util.List<IItemStack> getEquipmentAndArmor()
boolean isBurning()
boolean isRiding()
boolean isBeingRidden()
boolean isSneaking()
void setSneaking(boolean sneaking)
boolean isInvisible()
ITeam getTeam()
void setInvisible(boolean invisible)
boolean isOnSameTeam(IEntity other)
void setInWeb()
IEntity[] getParts()
boolean isEntityEqual(IEntity other)
boolean canBeAttackedWithItem()
boolean isInvulnerableTo(IDamageSource source)
boolean isInvulnerable()
void setInvulnerable(boolean invulnerable)
void setToLocationFrom(IEntity other)
boolean isBoss()
int getMaxFallHeight()
boolean doesTriggerPressurePlate()
boolean isPushedByWater()
boolean hasCustomName()
boolean alwaysRenderNameTag()
void setAlwaysRenderNameTag(boolean alwaysRenderNameTag)
float getEyeHight()
boolean isOutsideBorder()
void setOutsideBorder(boolean outsideBorder)
boolean isImmuneToExplosions()
boolean shouldRiderSit()
boolean canRiderInteract()
boolean shouldRiderDismountInWater(IEntity rider)
IEntity getControllingPassenger()
boolean isPassenger(IEntity entity)
java.util.List<IEntity> getPassengersRecursive()
IEntity getLowestRidingEntity()
boolean isRidingSameEntity(IEntity other)
boolean canPassengerSteer()
float getRotationYaw()
void setRotationYaw(float rotationYaw)
float getRotationPitch()
void setRotationPitch(float rotationPitch)
double getMotionX()
void setMotionX(double motionX)
double getMotionY()
void setMotionY(double motionY)
double getMotionZ()
void setMotionZ(double motionZ)
double getPosX()
void setPosX(double posX)
double getPosY()
void setPosY(double posY)
double getPosZ()
void setPosZ(double posZ)
IVector3d getLookingDirection()
IRayTraceResult getRayTrace(double blockReachDistance, float partialTicks)