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) |
boolean |
equals(java.lang.Object obj) |
void |
extinguish() |
int |
getAir() |
java.util.List<crafttweaker.api.item.IItemStack> |
getArmorInventoryList() |
crafttweaker.api.entity.IEntity |
getControllingPassenger() |
java.lang.String |
getCustomName() |
crafttweaker.api.entity.IEntityDefinition |
getDefinition() |
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() |
net.minecraft.entity.Entity |
getInternal() |
crafttweaker.api.world.IVector3d |
getLookingDirection() |
crafttweaker.api.entity.IEntity |
getLowestRidingEntity() |
int |
getMaxFallHeight() |
int |
getMaxInPortalTime() |
double |
getMotionX() |
double |
getMotionY() |
double |
getMotionZ() |
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() |
double |
getPosX() |
double |
getPosY() |
double |
getPosZ() |
crafttweaker.api.world.IRayTraceResult |
getRayTrace(double blockReachDistance,
float partialTicks) |
crafttweaker.api.world.IRayTraceResult |
getRayTrace(double blockReachDistance,
float partialTicks,
boolean stopOnLiquid,
boolean ignoreBlockWithoutBoundingBox,
boolean returnLastUncollidableBlock) |
crafttweaker.api.entity.IEntity |
getRidingEntity() |
float |
getRotationPitch() |
float |
getRotationYaw() |
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() |
int |
hashCode() |
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 passenger) |
boolean |
isPushedByWater() |
boolean |
isRiding() |
boolean |
isRidingSameEntity(crafttweaker.api.entity.IEntity other) |
boolean |
isSilent() |
boolean |
isSneaking() |
boolean |
isSprinting() |
boolean |
isWet() |
void |
onEntityUpdate() |
boolean |
onGround() |
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 |
setMotionX(double motionX) |
void |
setMotionY(double motionY) |
void |
setMotionZ(double motionZ) |
void |
setNoGravity(boolean noGravity) |
void |
setOutsideBorder(boolean outsideBorder) |
void |
setPosition(crafttweaker.api.world.IBlockPos position) |
void |
setPosition3f(crafttweaker.api.util.Position3f position3f) |
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(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() |
void |
update(crafttweaker.api.data.IData data) |
getPosition, sendMessagepublic int getDimension()
getDimension in interface crafttweaker.api.entity.IEntitypublic void setDimension(int dimensionID)
setDimension in interface crafttweaker.api.entity.IEntitypublic double getX()
getX in interface crafttweaker.api.entity.IEntitypublic double getY()
getY in interface crafttweaker.api.entity.IEntitypublic double getZ()
getZ in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.util.Position3f getPosition3f()
getPosition3f in interface crafttweaker.api.entity.IEntitypublic void setPosition3f(crafttweaker.api.util.Position3f position3f)
setPosition3f in interface crafttweaker.api.entity.IEntitypublic void setPosition(crafttweaker.api.world.IBlockPos position)
setPosition in interface crafttweaker.api.entity.IEntitypublic void setDead()
setDead in interface crafttweaker.api.entity.IEntitypublic void setFire(int seconds)
setFire in interface crafttweaker.api.entity.IEntitypublic void extinguish()
extinguish in interface crafttweaker.api.entity.IEntitypublic boolean isWet()
isWet in interface crafttweaker.api.entity.IEntitypublic java.util.List<crafttweaker.api.entity.IEntity> getPassengers()
getPassengers in interface crafttweaker.api.entity.IEntitypublic double getDistanceSqToEntity(crafttweaker.api.entity.IEntity otherEntity)
getDistanceSqToEntity in interface crafttweaker.api.entity.IEntitypublic boolean isAlive()
isAlive in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.entity.IEntity getRidingEntity()
getRidingEntity in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.item.IItemStack getPickedResult()
getPickedResult in interface crafttweaker.api.entity.IEntitypublic java.lang.String getCustomName()
getCustomName in interface crafttweaker.api.entity.IEntitypublic void setCustomName(java.lang.String name)
setCustomName in interface crafttweaker.api.entity.IEntitypublic boolean isImmuneToFire()
isImmuneToFire in interface crafttweaker.api.entity.IEntitypublic int getAir()
getAir in interface crafttweaker.api.entity.IEntitypublic void setAir(int amount)
setAir in interface crafttweaker.api.entity.IEntitypublic net.minecraft.entity.Entity getInternal()
getInternal in interface crafttweaker.api.command.ICommandSendergetInternal in interface crafttweaker.api.entity.IEntitygetInternal in class MCCommandSenderpublic 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.IEntitypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isInvulnerableTo(crafttweaker.api.damage.IDamageSource source)
isInvulnerableTo in interface crafttweaker.api.entity.IEntitypublic boolean isInvulnerable()
isInvulnerable in interface crafttweaker.api.entity.IEntitypublic void setInvulnerable(boolean invulnerable)
setInvulnerable in interface crafttweaker.api.entity.IEntitypublic void setToLocationFrom(crafttweaker.api.entity.IEntity other)
setToLocationFrom in interface crafttweaker.api.entity.IEntitypublic boolean isBoss()
isBoss in interface crafttweaker.api.entity.IEntitypublic int getMaxFallHeight()
getMaxFallHeight in interface crafttweaker.api.entity.IEntitypublic boolean doesTriggerPressurePlate()
doesTriggerPressurePlate in interface crafttweaker.api.entity.IEntitypublic boolean isPushedByWater()
isPushedByWater in interface crafttweaker.api.entity.IEntitypublic java.lang.String getDisplayName()
getDisplayName in interface crafttweaker.api.command.ICommandSendergetDisplayName in class MCCommandSenderpublic boolean hasCustomName()
hasCustomName in interface crafttweaker.api.entity.IEntitypublic boolean alwaysRenderNameTag()
alwaysRenderNameTag in interface crafttweaker.api.entity.IEntitypublic void setAlwaysRenderNameTag(boolean alwaysRenderNameTag)
setAlwaysRenderNameTag in interface crafttweaker.api.entity.IEntitypublic float getEyeHight()
getEyeHight in interface crafttweaker.api.entity.IEntitypublic boolean isOutsideBorder()
isOutsideBorder in interface crafttweaker.api.entity.IEntitypublic void setOutsideBorder(boolean outsideBorder)
setOutsideBorder in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.server.IServer getServer()
getServer in interface crafttweaker.api.command.ICommandSendergetServer in class MCCommandSenderpublic boolean isImmuneToExplosions()
isImmuneToExplosions in interface crafttweaker.api.entity.IEntitypublic boolean shouldRiderSit()
shouldRiderSit in interface crafttweaker.api.entity.IEntitypublic boolean canRiderInteract()
canRiderInteract in interface crafttweaker.api.entity.IEntitypublic boolean shouldRiderDismountInWater(crafttweaker.api.entity.IEntity rider)
shouldRiderDismountInWater in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.entity.IEntity getControllingPassenger()
getControllingPassenger in interface crafttweaker.api.entity.IEntitypublic boolean isPassenger(crafttweaker.api.entity.IEntity passenger)
isPassenger in interface crafttweaker.api.entity.IEntitypublic java.util.List<crafttweaker.api.entity.IEntity> getPassengersRecursive()
getPassengersRecursive in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.entity.IEntity getLowestRidingEntity()
getLowestRidingEntity in interface crafttweaker.api.entity.IEntitypublic boolean isRidingSameEntity(crafttweaker.api.entity.IEntity other)
isRidingSameEntity in interface crafttweaker.api.entity.IEntitypublic boolean canPassengerSteer()
canPassengerSteer in interface crafttweaker.api.entity.IEntitypublic float getRotationYaw()
getRotationYaw in interface crafttweaker.api.entity.IEntitypublic void setRotationYaw(float rotationYaw)
setRotationYaw in interface crafttweaker.api.entity.IEntitypublic float getRotationPitch()
getRotationPitch in interface crafttweaker.api.entity.IEntitypublic void setRotationPitch(float rotationPitch)
setRotationPitch in interface crafttweaker.api.entity.IEntitypublic double getMotionX()
getMotionX in interface crafttweaker.api.entity.IEntitypublic void setMotionX(double motionX)
setMotionX in interface crafttweaker.api.entity.IEntitypublic double getMotionY()
getMotionY in interface crafttweaker.api.entity.IEntitypublic void setMotionY(double motionY)
setMotionY in interface crafttweaker.api.entity.IEntitypublic double getMotionZ()
getMotionZ in interface crafttweaker.api.entity.IEntitypublic void setMotionZ(double motionZ)
setMotionZ in interface crafttweaker.api.entity.IEntitypublic double getPosX()
getPosX in interface crafttweaker.api.entity.IEntitypublic void setPosX(double posX)
setPosX in interface crafttweaker.api.entity.IEntitypublic double getPosY()
getPosY in interface crafttweaker.api.entity.IEntitypublic void setPosY(double posY)
setPosY in interface crafttweaker.api.entity.IEntitypublic double getPosZ()
getPosZ in interface crafttweaker.api.entity.IEntitypublic void setPosZ(double posZ)
setPosZ in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.world.IVector3d getLookingDirection()
getLookingDirection in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.world.IRayTraceResult getRayTrace(double blockReachDistance,
float partialTicks)
getRayTrace in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.world.IRayTraceResult getRayTrace(double blockReachDistance,
float partialTicks,
boolean stopOnLiquid,
boolean ignoreBlockWithoutBoundingBox,
boolean returnLastUncollidableBlock)
getRayTrace in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.world.IWorld getWorld()
getWorld in interface crafttweaker.api.command.ICommandSendergetWorld in class MCCommandSenderpublic crafttweaker.api.entity.IEntityDefinition getDefinition()
getDefinition in interface crafttweaker.api.entity.IEntitypublic void setWorld(crafttweaker.api.world.IWorld world)
setWorld in interface crafttweaker.api.entity.IEntitypublic void onEntityUpdate()
onEntityUpdate in interface crafttweaker.api.entity.IEntitypublic void onUpdate()
onUpdate in interface crafttweaker.api.entity.IEntitypublic boolean isSprinting()
isSprinting in interface crafttweaker.api.entity.IEntitypublic void setSprinting(boolean sprinting)
setSprinting in interface crafttweaker.api.entity.IEntitypublic boolean isGlowing()
isGlowing in interface crafttweaker.api.entity.IEntitypublic void setGlowing(boolean glowing)
setGlowing in interface crafttweaker.api.entity.IEntitypublic int getID()
getID in interface crafttweaker.api.entity.IEntitypublic void setID(int id)
setID in interface crafttweaker.api.entity.IEntitypublic java.util.List<java.lang.String> getTags()
getTags in interface crafttweaker.api.entity.IEntitypublic void addTag(java.lang.String tag)
addTag in interface crafttweaker.api.entity.IEntitypublic void removeTag(java.lang.String tag)
removeTag in interface crafttweaker.api.entity.IEntitypublic void onKillCommand()
onKillCommand in interface crafttweaker.api.entity.IEntitypublic int getMaxInPortalTime()
getMaxInPortalTime in interface crafttweaker.api.entity.IEntitypublic int getPortalCooldown()
getPortalCooldown in interface crafttweaker.api.entity.IEntitypublic boolean isSilent()
isSilent in interface crafttweaker.api.entity.IEntitypublic void setSilent(boolean silent)
setSilent in interface crafttweaker.api.entity.IEntitypublic boolean hasNoGravity()
hasNoGravity in interface crafttweaker.api.entity.IEntitypublic void setNoGravity(boolean noGravity)
setNoGravity in interface crafttweaker.api.entity.IEntitypublic boolean isInWater()
isInWater in interface crafttweaker.api.entity.IEntitypublic boolean isOverWater()
isOverWater in interface crafttweaker.api.entity.IEntitypublic void spawnRunningParticles()
spawnRunningParticles in interface crafttweaker.api.entity.IEntitypublic boolean isInsideOfMaterial(crafttweaker.api.block.IMaterial material)
isInsideOfMaterial in interface crafttweaker.api.entity.IEntitypublic boolean isInLava()
isInLava in interface crafttweaker.api.entity.IEntitypublic boolean attackEntityFrom(crafttweaker.api.damage.IDamageSource source,
float amount)
attackEntityFrom in interface crafttweaker.api.entity.IEntitypublic boolean canBeCollidedWith()
canBeCollidedWith in interface crafttweaker.api.entity.IEntitypublic boolean canBePushed()
canBePushed in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.data.IData getNBT()
getNBT in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.entity.IEntityItem dropItem(crafttweaker.api.item.IItemStack itemStack,
float offset)
dropItem in interface crafttweaker.api.entity.IEntitypublic boolean isInsideOpaqueBlock()
isInsideOpaqueBlock in interface crafttweaker.api.entity.IEntitypublic void removePassengers()
removePassengers in interface crafttweaker.api.entity.IEntitypublic void dismountRidingEntity()
dismountRidingEntity in interface crafttweaker.api.entity.IEntitypublic java.util.List<crafttweaker.api.item.IItemStack> getHeldEquipment()
getHeldEquipment in interface crafttweaker.api.entity.IEntitypublic java.util.List<crafttweaker.api.item.IItemStack> getArmorInventoryList()
getArmorInventoryList in interface crafttweaker.api.entity.IEntitypublic java.util.List<crafttweaker.api.item.IItemStack> getEquipmentAndArmor()
getEquipmentAndArmor in interface crafttweaker.api.entity.IEntitypublic boolean isBurning()
isBurning in interface crafttweaker.api.entity.IEntitypublic boolean isRiding()
isRiding in interface crafttweaker.api.entity.IEntitypublic boolean isBeingRidden()
isBeingRidden in interface crafttweaker.api.entity.IEntitypublic boolean isSneaking()
isSneaking in interface crafttweaker.api.entity.IEntitypublic void setSneaking(boolean sneaking)
setSneaking in interface crafttweaker.api.entity.IEntitypublic boolean isInvisible()
isInvisible in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.game.ITeam getTeam()
getTeam in interface crafttweaker.api.entity.IEntitypublic void setInvisible(boolean invisible)
setInvisible in interface crafttweaker.api.entity.IEntitypublic boolean isOnSameTeam(crafttweaker.api.entity.IEntity other)
isOnSameTeam in interface crafttweaker.api.entity.IEntitypublic void setInWeb()
setInWeb in interface crafttweaker.api.entity.IEntitypublic crafttweaker.api.entity.IEntity[] getParts()
getParts in interface crafttweaker.api.entity.IEntitypublic boolean isEntityEqual(crafttweaker.api.entity.IEntity other)
isEntityEqual in interface crafttweaker.api.entity.IEntitypublic boolean canBeAttackedWithItem()
canBeAttackedWithItem in interface crafttweaker.api.entity.IEntitypublic void update(crafttweaker.api.data.IData data)
update in interface crafttweaker.api.entity.IEntitypublic boolean onGround()
onGround in interface crafttweaker.api.entity.IEntitypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object