public class MCEntity extends MCCommandSender implements crafttweaker.api.entity.IEntity
Constructor and Description |
---|
MCEntity(net.minecraft.entity.Entity entity) |
Modifier and Type | Method and Description |
---|---|
void |
addTag(java.lang.String tag) |
boolean |
alwaysRenderNameTag() |
boolean |
attackEntityFrom(crafttweaker.api.damage.IDamageSource source,
float amount) |
boolean |
canBeAttackedWithItem() |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canPassengerSteer() |
boolean |
canRiderInteract() |
boolean |
canTrample(crafttweaker.api.world.IWorld world,
crafttweaker.api.block.IBlockDefinition block,
crafttweaker.api.world.IBlockPos pos,
float fall) |
void |
dismountRidingEntity() |
boolean |
doesTriggerPressurePlate() |
crafttweaker.api.entity.IEntityItem |
dropItem(crafttweaker.api.item.IItemStack itemStack,
float offset) |
void |
extinguish() |
int |
getAir() |
java.util.List<crafttweaker.api.item.IItemStack> |
getArmorInventoryList() |
crafttweaker.api.entity.IEntity |
getControllingPassenger() |
java.lang.String |
getCustomName() |
int |
getDimension() |
java.lang.String |
getDisplayName() |
double |
getDistanceSqToEntity(crafttweaker.api.entity.IEntity otherEntity) |
java.util.List<crafttweaker.api.item.IItemStack> |
getEquipmentAndArmor() |
float |
getEyeHight() |
java.util.List<crafttweaker.api.item.IItemStack> |
getHeldEquipment() |
int |
getID() |
java.lang.Object |
getInternal() |
crafttweaker.api.entity.IEntity |
getLowestRidingEntity() |
int |
getMaxFallHeight() |
int |
getMaxInPortalTime() |
crafttweaker.api.data.IData |
getNBT() |
crafttweaker.api.entity.IEntity[] |
getParts() |
java.util.List<crafttweaker.api.entity.IEntity> |
getPassengers() |
java.util.List<crafttweaker.api.entity.IEntity> |
getPassengersRecursive() |
crafttweaker.api.item.IItemStack |
getPickedResult() |
int |
getPortalCooldown() |
crafttweaker.api.util.Position3f |
getPosition3f() |
crafttweaker.api.entity.IEntity |
getRidingEntity() |
crafttweaker.api.server.IServer |
getServer() |
java.util.List<java.lang.String> |
getTags() |
crafttweaker.api.game.ITeam |
getTeam() |
crafttweaker.api.world.IWorld |
getWorld() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
hasCustomName() |
boolean |
hasNoGravity() |
boolean |
isAlive() |
boolean |
isBeingRidden() |
boolean |
isBoss() |
boolean |
isBurning() |
boolean |
isEntityEqual(crafttweaker.api.entity.IEntity other) |
boolean |
isGlowing() |
boolean |
isImmuneToExplosions() |
boolean |
isImmuneToFire() |
boolean |
isInLava() |
boolean |
isInsideOfMaterial(crafttweaker.api.block.IMaterial material) |
boolean |
isInsideOpaqueBlock() |
boolean |
isInvisible() |
boolean |
isInvulnerable() |
boolean |
isInvulnerableTo(crafttweaker.api.damage.IDamageSource source) |
boolean |
isInWater() |
boolean |
isOnSameTeam(crafttweaker.api.entity.IEntity other) |
boolean |
isOutsideBorder() |
boolean |
isOverWater() |
boolean |
isPassenger(crafttweaker.api.entity.IEntity entity) |
boolean |
isPushedByWater() |
boolean |
isRiding() |
boolean |
isRidingSameEntity(crafttweaker.api.entity.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 amount) |
void |
setAlwaysRenderNameTag(boolean alwaysRenderNameTag) |
void |
setCustomName(java.lang.String name) |
void |
setDead() |
void |
setDimension(int dimensionID) |
void |
setFire(int seconds) |
void |
setGlowing(boolean glowing) |
void |
setID(int id) |
void |
setInvisible(boolean invisible) |
void |
setInvulnerable(boolean invulnerable) |
void |
setInWeb() |
void |
setNoGravity(boolean noGravity) |
void |
setOutsideBorder(boolean outsideBorder) |
void |
setPosition(crafttweaker.api.world.IBlockPos position) |
void |
setSilent(boolean silent) |
void |
setSneaking(boolean sneaking) |
void |
setSprinting(boolean sprinting) |
void |
setToLocationFrom(crafttweaker.api.entity.IEntity other) |
void |
setWorld(crafttweaker.api.world.IWorld world) |
boolean |
shouldRiderDismountInWater(crafttweaker.api.entity.IEntity rider) |
boolean |
shouldRiderSit() |
void |
spawnRunningParticles() |
java.lang.String |
toString() |
getPosition, sendMessage
public int getDimension()
getDimension
in interface crafttweaker.api.entity.IEntity
public void setDimension(int dimensionID)
setDimension
in interface crafttweaker.api.entity.IEntity
public double getX()
getX
in interface crafttweaker.api.entity.IEntity
public double getY()
getY
in interface crafttweaker.api.entity.IEntity
public double getZ()
getZ
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.util.Position3f getPosition3f()
getPosition3f
in interface crafttweaker.api.entity.IEntity
public void setPosition(crafttweaker.api.world.IBlockPos position)
setPosition
in interface crafttweaker.api.entity.IEntity
public void setDead()
setDead
in interface crafttweaker.api.entity.IEntity
public void setFire(int seconds)
setFire
in interface crafttweaker.api.entity.IEntity
public void extinguish()
extinguish
in interface crafttweaker.api.entity.IEntity
public boolean isWet()
isWet
in interface crafttweaker.api.entity.IEntity
public java.util.List<crafttweaker.api.entity.IEntity> getPassengers()
getPassengers
in interface crafttweaker.api.entity.IEntity
public double getDistanceSqToEntity(crafttweaker.api.entity.IEntity otherEntity)
getDistanceSqToEntity
in interface crafttweaker.api.entity.IEntity
public boolean isAlive()
isAlive
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.entity.IEntity getRidingEntity()
getRidingEntity
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.item.IItemStack getPickedResult()
getPickedResult
in interface crafttweaker.api.entity.IEntity
public java.lang.String getCustomName()
getCustomName
in interface crafttweaker.api.entity.IEntity
public void setCustomName(java.lang.String name)
setCustomName
in interface crafttweaker.api.entity.IEntity
public boolean isImmuneToFire()
isImmuneToFire
in interface crafttweaker.api.entity.IEntity
public int getAir()
getAir
in interface crafttweaker.api.entity.IEntity
public void setAir(int amount)
setAir
in interface crafttweaker.api.entity.IEntity
public java.lang.Object getInternal()
getInternal
in interface crafttweaker.api.entity.IEntity
public boolean canTrample(crafttweaker.api.world.IWorld world, crafttweaker.api.block.IBlockDefinition block, crafttweaker.api.world.IBlockPos pos, float fall)
canTrample
in interface crafttweaker.api.entity.IEntity
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isInvulnerableTo(crafttweaker.api.damage.IDamageSource source)
isInvulnerableTo
in interface crafttweaker.api.entity.IEntity
public boolean isInvulnerable()
isInvulnerable
in interface crafttweaker.api.entity.IEntity
public void setInvulnerable(boolean invulnerable)
setInvulnerable
in interface crafttweaker.api.entity.IEntity
public void setToLocationFrom(crafttweaker.api.entity.IEntity other)
setToLocationFrom
in interface crafttweaker.api.entity.IEntity
public boolean isBoss()
isBoss
in interface crafttweaker.api.entity.IEntity
public int getMaxFallHeight()
getMaxFallHeight
in interface crafttweaker.api.entity.IEntity
public boolean doesTriggerPressurePlate()
doesTriggerPressurePlate
in interface crafttweaker.api.entity.IEntity
public boolean isPushedByWater()
isPushedByWater
in interface crafttweaker.api.entity.IEntity
public java.lang.String getDisplayName()
getDisplayName
in interface crafttweaker.api.command.ICommandSender
getDisplayName
in class MCCommandSender
public boolean hasCustomName()
hasCustomName
in interface crafttweaker.api.entity.IEntity
public boolean alwaysRenderNameTag()
alwaysRenderNameTag
in interface crafttweaker.api.entity.IEntity
public void setAlwaysRenderNameTag(boolean alwaysRenderNameTag)
setAlwaysRenderNameTag
in interface crafttweaker.api.entity.IEntity
public float getEyeHight()
getEyeHight
in interface crafttweaker.api.entity.IEntity
public boolean isOutsideBorder()
isOutsideBorder
in interface crafttweaker.api.entity.IEntity
public void setOutsideBorder(boolean outsideBorder)
setOutsideBorder
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.server.IServer getServer()
getServer
in interface crafttweaker.api.command.ICommandSender
getServer
in class MCCommandSender
public boolean isImmuneToExplosions()
isImmuneToExplosions
in interface crafttweaker.api.entity.IEntity
public boolean shouldRiderSit()
shouldRiderSit
in interface crafttweaker.api.entity.IEntity
public boolean canRiderInteract()
canRiderInteract
in interface crafttweaker.api.entity.IEntity
public boolean shouldRiderDismountInWater(crafttweaker.api.entity.IEntity rider)
shouldRiderDismountInWater
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.entity.IEntity getControllingPassenger()
getControllingPassenger
in interface crafttweaker.api.entity.IEntity
public boolean isPassenger(crafttweaker.api.entity.IEntity entity)
isPassenger
in interface crafttweaker.api.entity.IEntity
public java.util.List<crafttweaker.api.entity.IEntity> getPassengersRecursive()
getPassengersRecursive
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.entity.IEntity getLowestRidingEntity()
getLowestRidingEntity
in interface crafttweaker.api.entity.IEntity
public boolean isRidingSameEntity(crafttweaker.api.entity.IEntity other)
isRidingSameEntity
in interface crafttweaker.api.entity.IEntity
public boolean canPassengerSteer()
canPassengerSteer
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.world.IWorld getWorld()
getWorld
in interface crafttweaker.api.command.ICommandSender
getWorld
in class MCCommandSender
public void setWorld(crafttweaker.api.world.IWorld world)
setWorld
in interface crafttweaker.api.entity.IEntity
public void onEntityUpdate()
onEntityUpdate
in interface crafttweaker.api.entity.IEntity
public void onUpdate()
onUpdate
in interface crafttweaker.api.entity.IEntity
public boolean isSprinting()
isSprinting
in interface crafttweaker.api.entity.IEntity
public void setSprinting(boolean sprinting)
setSprinting
in interface crafttweaker.api.entity.IEntity
public boolean isGlowing()
isGlowing
in interface crafttweaker.api.entity.IEntity
public void setGlowing(boolean glowing)
setGlowing
in interface crafttweaker.api.entity.IEntity
public int getID()
getID
in interface crafttweaker.api.entity.IEntity
public void setID(int id)
setID
in interface crafttweaker.api.entity.IEntity
public java.util.List<java.lang.String> getTags()
getTags
in interface crafttweaker.api.entity.IEntity
public void addTag(java.lang.String tag)
addTag
in interface crafttweaker.api.entity.IEntity
public void removeTag(java.lang.String tag)
removeTag
in interface crafttweaker.api.entity.IEntity
public void onKillCommand()
onKillCommand
in interface crafttweaker.api.entity.IEntity
public int getMaxInPortalTime()
getMaxInPortalTime
in interface crafttweaker.api.entity.IEntity
public int getPortalCooldown()
getPortalCooldown
in interface crafttweaker.api.entity.IEntity
public boolean isSilent()
isSilent
in interface crafttweaker.api.entity.IEntity
public void setSilent(boolean silent)
setSilent
in interface crafttweaker.api.entity.IEntity
public boolean hasNoGravity()
hasNoGravity
in interface crafttweaker.api.entity.IEntity
public void setNoGravity(boolean noGravity)
setNoGravity
in interface crafttweaker.api.entity.IEntity
public boolean isInWater()
isInWater
in interface crafttweaker.api.entity.IEntity
public boolean isOverWater()
isOverWater
in interface crafttweaker.api.entity.IEntity
public void spawnRunningParticles()
spawnRunningParticles
in interface crafttweaker.api.entity.IEntity
public boolean isInsideOfMaterial(crafttweaker.api.block.IMaterial material)
isInsideOfMaterial
in interface crafttweaker.api.entity.IEntity
public boolean isInLava()
isInLava
in interface crafttweaker.api.entity.IEntity
public boolean attackEntityFrom(crafttweaker.api.damage.IDamageSource source, float amount)
attackEntityFrom
in interface crafttweaker.api.entity.IEntity
public boolean canBeCollidedWith()
canBeCollidedWith
in interface crafttweaker.api.entity.IEntity
public boolean canBePushed()
canBePushed
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.data.IData getNBT()
getNBT
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.entity.IEntityItem dropItem(crafttweaker.api.item.IItemStack itemStack, float offset)
dropItem
in interface crafttweaker.api.entity.IEntity
public boolean isInsideOpaqueBlock()
isInsideOpaqueBlock
in interface crafttweaker.api.entity.IEntity
public void removePassengers()
removePassengers
in interface crafttweaker.api.entity.IEntity
public void dismountRidingEntity()
dismountRidingEntity
in interface crafttweaker.api.entity.IEntity
public java.util.List<crafttweaker.api.item.IItemStack> getHeldEquipment()
getHeldEquipment
in interface crafttweaker.api.entity.IEntity
public java.util.List<crafttweaker.api.item.IItemStack> getArmorInventoryList()
getArmorInventoryList
in interface crafttweaker.api.entity.IEntity
public java.util.List<crafttweaker.api.item.IItemStack> getEquipmentAndArmor()
getEquipmentAndArmor
in interface crafttweaker.api.entity.IEntity
public boolean isBurning()
isBurning
in interface crafttweaker.api.entity.IEntity
public boolean isRiding()
isRiding
in interface crafttweaker.api.entity.IEntity
public boolean isBeingRidden()
isBeingRidden
in interface crafttweaker.api.entity.IEntity
public boolean isSneaking()
isSneaking
in interface crafttweaker.api.entity.IEntity
public void setSneaking(boolean sneaking)
setSneaking
in interface crafttweaker.api.entity.IEntity
public boolean isInvisible()
isInvisible
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.game.ITeam getTeam()
getTeam
in interface crafttweaker.api.entity.IEntity
public void setInvisible(boolean invisible)
setInvisible
in interface crafttweaker.api.entity.IEntity
public boolean isOnSameTeam(crafttweaker.api.entity.IEntity other)
isOnSameTeam
in interface crafttweaker.api.entity.IEntity
public void setInWeb()
setInWeb
in interface crafttweaker.api.entity.IEntity
public crafttweaker.api.entity.IEntity[] getParts()
getParts
in interface crafttweaker.api.entity.IEntity
public boolean isEntityEqual(crafttweaker.api.entity.IEntity other)
isEntityEqual
in interface crafttweaker.api.entity.IEntity
public boolean canBeAttackedWithItem()
canBeAttackedWithItem
in interface crafttweaker.api.entity.IEntity