public abstract class Entity extends java.lang.Object implements ICommandSender, ICapabilitySerializable<NBTTagCompound>
Modifier and Type | Method and Description |
---|---|
void |
addChatMessage(ITextComponent component) |
void |
addEntityCrashInfo(CrashReportCategory category) |
protected void |
addPassenger(Entity passenger) |
boolean |
addTag(java.lang.String tag) |
void |
addToPlayerScore(Entity entityIn,
int amount) |
void |
addTrackingPlayer(EntityPlayerMP player) |
void |
addVelocity(double x,
double y,
double z) |
protected void |
applyEnchantments(EntityLivingBase entityLivingBaseIn,
Entity entityIn) |
void |
applyEntityCollision(Entity entityIn) |
void |
applyOrientationToEntity(Entity entityToUpdate) |
EnumActionResult |
applyPlayerInteraction(EntityPlayer player,
Vec3d vec,
ItemStack stack,
EnumHand hand) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canBeAttackedWithItem() |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
protected boolean |
canBeRidden(Entity entityIn) |
boolean |
canCommandSenderUseCommand(int permLevel,
java.lang.String commandName) |
protected boolean |
canFitPassenger(Entity passenger) |
boolean |
canPassengerSteer() |
boolean |
canRenderOnFire() |
boolean |
canRiderInteract()
If a rider of this entity can interact with this entity.
|
protected boolean |
canTriggerWalking() |
Entity |
changeDimension(int dimensionIn) |
void |
copyLocationAndAnglesFrom(Entity entityIn) |
protected void |
createRunningParticles() |
protected void |
dealFireDamage(int amount) |
protected void |
decrementTimeUntilPortal() |
void |
deserializeNBT(NBTTagCompound nbt) |
void |
dismountRidingEntity() |
protected void |
doBlockCollisions() |
boolean |
doesEntityNotTriggerPressurePlate() |
EntityItem |
dropItem(Item itemIn,
int size) |
EntityItem |
dropItemWithOffset(Item itemIn,
int size,
float offsetY) |
EntityItem |
entityDropItem(ItemStack stack,
float offsetY) |
protected abstract void |
entityInit() |
boolean |
equals(java.lang.Object p_equals_1_) |
void |
extinguish() |
void |
fall(float distance,
float damageMultiplier) |
EnumFacing |
getAdjustedHorizontalFacing() |
int |
getAir() |
boolean |
getAlwaysRenderNameTag() |
boolean |
getAlwaysRenderNameTagForRender() |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
float |
getBrightness(float partialTicks) |
int |
getBrightnessForRender(float partialTicks) |
java.lang.String |
getCachedUniqueIdString() |
<T> T |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the handler for the capability requested on the specific side.
|
float |
getCollisionBorderSize() |
AxisAlignedBB |
getCollisionBoundingBox() |
AxisAlignedBB |
getCollisionBox(Entity entityIn) |
Entity |
getCommandSenderEntity() |
CommandResultStats |
getCommandStats() |
Entity |
getControllingPassenger() |
java.lang.String |
getCustomNameTag() |
EntityDataManager |
getDataManager() |
ITextComponent |
getDisplayName() |
double |
getDistance(double x,
double y,
double z) |
double |
getDistanceSq(BlockPos pos) |
double |
getDistanceSq(double x,
double y,
double z) |
double |
getDistanceSqToCenter(BlockPos pos) |
double |
getDistanceSqToEntity(Entity entityIn) |
float |
getDistanceToEntity(Entity entityIn) |
AxisAlignedBB |
getEntityBoundingBox() |
NBTTagCompound |
getEntityData()
Returns a NBTTagCompound that can be used to store custom data for this entity.
|
int |
getEntityId() |
protected java.lang.String |
getEntityString() |
World |
getEntityWorld() |
java.lang.Iterable<ItemStack> |
getEquipmentAndArmor() |
float |
getExplosionResistance(Explosion explosionIn,
World worldIn,
BlockPos pos,
IBlockState blockStateIn) |
float |
getEyeHeight() |
protected boolean |
getFlag(int flag) |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
EnumFacing |
getHorizontalFacing() |
protected HoverEvent |
getHoverEvent() |
Vec3d |
getLastPortalVec() |
Vec3d |
getLook(float partialTicks) |
Vec3d |
getLookVec() |
Entity |
getLowestRidingEntity() |
int |
getMaxFallHeight() |
int |
getMaxInPortalTime() |
float |
getMirroredYaw(Mirror transformMirror) |
double |
getMountedYOffset() |
java.lang.String |
getName() |
Entity[] |
getParts() |
java.util.List<Entity> |
getPassengers() |
java.util.UUID |
getPersistentID() |
ItemStack |
getPickedResult(RayTraceResult target)
Called when a user uses the creative pick block button on this entity.
|
int |
getPortalCooldown() |
BlockPos |
getPosition() |
Vec3d |
getPositionEyes(float partialTicks) |
Vec3d |
getPositionVector() |
EnumPushReaction |
getPushReaction() |
java.util.Collection<Entity> |
getRecursivePassengers() |
<T extends Entity> |
getRecursivePassengersByType(java.lang.Class<T> entityClass) |
AxisAlignedBB |
getRenderBoundingBox() |
static double |
getRenderDistanceWeight() |
Entity |
getRidingEntity() |
float |
getRotatedYaw(Rotation transformRotation) |
float |
getRotationYawHead() |
MinecraftServer |
getServer() |
SoundCategory |
getSoundCategory() |
protected SoundEvent |
getSplashSound() |
protected SoundEvent |
getSwimSound() |
java.util.Set<java.lang.String> |
getTags() |
Team |
getTeam() |
EnumFacing |
getTeleportDirection() |
java.util.UUID |
getUniqueID() |
protected Vec3d |
getVectorForRotation(float pitch,
float yaw) |
double |
getYOffset() |
void |
handleStatusUpdate(byte id) |
boolean |
handleWaterMovement() |
boolean |
hasCapability(Capability<?> capability,
EnumFacing facing)
Determines if this object has support for the capability in question on the specific side.
|
boolean |
hasCustomName() |
int |
hashCode() |
boolean |
hitByEntity(Entity entityIn) |
boolean |
ignoreItemEntityData() |
boolean |
isBeingRidden() |
boolean |
isBurning() |
boolean |
isCreatureType(EnumCreatureType type,
boolean forSpawnCount)
Returns true if the entity is of the @link{EnumCreatureType} provided
|
boolean |
isEntityAlive() |
boolean |
isEntityEqual(Entity entityIn) |
boolean |
isEntityInsideOpaqueBlock() |
boolean |
isEntityInvulnerable(DamageSource source) |
boolean |
isGlowing() |
boolean |
isImmuneToExplosions() |
boolean |
isImmuneToFire() |
boolean |
isInLava() |
boolean |
isInRangeToRender3d(double x,
double y,
double z) |
boolean |
isInRangeToRenderDist(double distance) |
boolean |
isInsideOfMaterial(Material materialIn) |
boolean |
isInvisible() |
boolean |
isInvisibleToPlayer(EntityPlayer player) |
boolean |
isInWater() |
boolean |
isNonBoss() |
boolean |
isOffsetPositionInLiquid(double x,
double y,
double z) |
boolean |
isOnSameTeam(Entity entityIn) |
boolean |
isOnScoreboardTeam(Team teamIn) |
boolean |
isOutsideBorder() |
boolean |
isPassenger(Entity entityIn) |
boolean |
isPushedByWater() |
boolean |
isRiding() |
boolean |
isRidingOrBeingRiddenBy(Entity entityIn) |
boolean |
isRidingSameEntity(Entity entityIn) |
boolean |
isSilent() |
boolean |
isSneaking() |
boolean |
isSpectatedByPlayer(EntityPlayerMP player) |
boolean |
isSprinting() |
boolean |
isWet() |
protected void |
kill() |
void |
moveEntity(double x,
double y,
double z) |
void |
moveRelative(float strafe,
float forward,
float friction) |
void |
moveToBlockPosAndAngles(BlockPos pos,
float rotationYawIn,
float rotationPitchIn) |
protected NBTTagList |
newDoubleNBTList(double... numbers) |
protected NBTTagList |
newFloatNBTList(float... numbers) |
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onChunkLoad() |
void |
onCollideWithPlayer(EntityPlayer entityIn) |
void |
onEntityUpdate() |
void |
onKillCommand() |
void |
onKillEntity(EntityLivingBase entityLivingIn) |
void |
onStruckByLightning(EntityLightningBolt lightningBolt) |
void |
onUpdate() |
void |
performHurtAnimation() |
void |
playSound(SoundEvent soundIn,
float volume,
float pitch) |
protected void |
playStepSound(BlockPos pos,
Block blockIn) |
protected void |
preparePlayerToSpawn() |
boolean |
processInitialInteract(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
protected boolean |
pushOutOfBlocks(double x,
double y,
double z) |
RayTraceResult |
rayTrace(double blockReachDistance,
float partialTicks) |
protected abstract void |
readEntityFromNBT(NBTTagCompound compound) |
void |
readFromNBT(NBTTagCompound compound) |
protected void |
removePassenger(Entity passenger) |
void |
removePassengers() |
boolean |
removeTag(java.lang.String tag) |
void |
removeTrackingPlayer(EntityPlayerMP player) |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
resetEntityId()
Reset the entity ID to a new value.
|
protected void |
resetHeight() |
void |
resetPositionToBB() |
boolean |
sendCommandFeedback() |
NBTTagCompound |
serializeNBT() |
void |
setAir(int air) |
void |
setAlwaysRenderNameTag(boolean alwaysRenderNameTag) |
void |
setAngles(float yaw,
float pitch) |
protected void |
setBeenAttacked() |
void |
setCommandStat(CommandResultStats.Type type,
int amount) |
void |
setCommandStats(Entity entityIn) |
void |
setCustomNameTag(java.lang.String name) |
void |
setDead() |
void |
setDropItemsWhenDead(boolean dropWhenDead) |
void |
setEntityBoundingBox(AxisAlignedBB bb) |
void |
setEntityId(int id) |
void |
setEntityInvulnerable(boolean isInvulnerable) |
void |
setFire(int seconds) |
protected void |
setFlag(int flag,
boolean set) |
void |
setGlowing(boolean glowingIn) |
void |
setInvisible(boolean invisible) |
void |
setInWeb() |
void |
setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
setLocationAndAngles(double x,
double y,
double z,
float yaw,
float pitch) |
protected void |
setOnFireFromLava() |
void |
setOutsideBorder(boolean outsideBorder) |
void |
setPortal(BlockPos pos) |
void |
setPosition(double x,
double y,
double z) |
void |
setPositionAndRotation(double x,
double y,
double z,
float yaw,
float pitch) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setPositionAndUpdate(double x,
double y,
double z) |
boolean |
setPositionNonDirty() |
static void |
setRenderDistanceWeight(double renderDistWeight) |
void |
setRenderYawOffset(float offset) |
protected void |
setRotation(float yaw,
float pitch) |
void |
setRotationYawHead(float rotation) |
void |
setSilent(boolean isSilent) |
protected void |
setSize(float width,
float height) |
void |
setSneaking(boolean sneaking) |
void |
setSprinting(boolean sprinting) |
void |
setUniqueId(java.util.UUID uniqueIdIn) |
void |
setVelocity(double x,
double y,
double z) |
void |
setWorld(World worldIn) |
boolean |
shouldDismountInWater(Entity rider)
If the rider should be dismounted from the entity when the entity goes under water
|
boolean |
shouldRenderInPass(int pass) |
boolean |
shouldRiderSit()
Used in model rendering to determine if the entity riding this entity should be in the 'sitting' position.
|
protected boolean |
shouldSetPosAfterLoading() |
void |
spawnRunningParticles() |
boolean |
startRiding(Entity entityIn) |
boolean |
startRiding(Entity entityIn,
boolean force) |
java.lang.String |
toString() |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos) |
void |
updatePassenger(Entity passenger) |
void |
updateRidden() |
boolean |
verifyExplosion(Explosion explosionIn,
World worldIn,
BlockPos pos,
IBlockState blockStateIn,
float p_174816_5_) |
protected abstract void |
writeEntityToNBT(NBTTagCompound compound) |
NBTTagCompound |
writeToNBT(NBTTagCompound p_189511_1_) |
boolean |
writeToNBTAtomically(NBTTagCompound compound) |
boolean |
writeToNBTOptional(NBTTagCompound compound) |
public boolean preventEntitySpawning
protected int rideCooldown
public boolean forceSpawn
public World worldObj
public double prevPosX
public double prevPosY
public double prevPosZ
public double posX
public double posY
public double posZ
public double motionX
public double motionY
public double motionZ
public float rotationYaw
public float rotationPitch
public float prevRotationYaw
public float prevRotationPitch
public boolean onGround
public boolean isCollidedHorizontally
public boolean isCollidedVertically
public boolean isCollided
public boolean velocityChanged
protected boolean isInWeb
public boolean isDead
public float width
public float height
public float prevDistanceWalkedModified
public float distanceWalkedModified
public float distanceWalkedOnStepModified
public float fallDistance
public double lastTickPosX
public double lastTickPosY
public double lastTickPosZ
public float stepHeight
public boolean noClip
public float entityCollisionReduction
protected java.util.Random rand
public int ticksExisted
public int fireResistance
protected boolean inWater
public int hurtResistantTime
protected boolean firstUpdate
protected boolean isImmuneToFire
protected EntityDataManager dataManager
public boolean addedToChunk
public int chunkCoordX
public int chunkCoordY
public int chunkCoordZ
public long serverPosX
public long serverPosY
public long serverPosZ
public boolean ignoreFrustumCheck
public boolean isAirBorne
public int timeUntilPortal
protected boolean inPortal
protected int portalCounter
public int dimension
protected BlockPos lastPortalPos
protected Vec3d lastPortalVec
protected EnumFacing teleportDirection
protected java.util.UUID entityUniqueID
protected java.lang.String cachedUniqueIdString
protected boolean glowing
public boolean captureDrops
public java.util.ArrayList<EntityItem> capturedDrops
public Entity(World worldIn)
public int getEntityId()
public void setEntityId(int id)
public java.util.Set<java.lang.String> getTags()
public boolean addTag(java.lang.String tag)
public boolean removeTag(java.lang.String tag)
public void onKillCommand()
protected abstract void entityInit()
public EntityDataManager getDataManager()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void preparePlayerToSpawn()
public void setDead()
public void setDropItemsWhenDead(boolean dropWhenDead)
protected void setSize(float width, float height)
protected void setRotation(float yaw, float pitch)
public void setPosition(double x, double y, double z)
public void setAngles(float yaw, float pitch)
public void onUpdate()
public void onEntityUpdate()
protected void decrementTimeUntilPortal()
public int getMaxInPortalTime()
protected void setOnFireFromLava()
public void setFire(int seconds)
public void extinguish()
protected void kill()
public boolean isOffsetPositionInLiquid(double x, double y, double z)
public void moveEntity(double x, double y, double z)
public void resetPositionToBB()
protected SoundEvent getSwimSound()
protected SoundEvent getSplashSound()
protected void doBlockCollisions()
public void playSound(SoundEvent soundIn, float volume, float pitch)
public boolean isSilent()
public void setSilent(boolean isSilent)
protected boolean canTriggerWalking()
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
@Nullable public AxisAlignedBB getCollisionBoundingBox()
protected void dealFireDamage(int amount)
public final boolean isImmuneToFire()
public void fall(float distance, float damageMultiplier)
public boolean isWet()
public boolean isInWater()
public boolean handleWaterMovement()
protected void resetHeight()
public void spawnRunningParticles()
protected void createRunningParticles()
public boolean isInsideOfMaterial(Material materialIn)
public boolean isInLava()
public void moveRelative(float strafe, float forward, float friction)
public int getBrightnessForRender(float partialTicks)
public float getBrightness(float partialTicks)
public void setWorld(World worldIn)
public void setPositionAndRotation(double x, double y, double z, float yaw, float pitch)
public void moveToBlockPosAndAngles(BlockPos pos, float rotationYawIn, float rotationPitchIn)
public void setLocationAndAngles(double x, double y, double z, float yaw, float pitch)
public float getDistanceToEntity(Entity entityIn)
public double getDistanceSq(double x, double y, double z)
public double getDistanceSq(BlockPos pos)
public double getDistanceSqToCenter(BlockPos pos)
public double getDistance(double x, double y, double z)
public double getDistanceSqToEntity(Entity entityIn)
public void onCollideWithPlayer(EntityPlayer entityIn)
public void applyEntityCollision(Entity entityIn)
public void addVelocity(double x, double y, double z)
protected void setBeenAttacked()
public boolean attackEntityFrom(DamageSource source, float amount)
public Vec3d getLook(float partialTicks)
protected final Vec3d getVectorForRotation(float pitch, float yaw)
public Vec3d getPositionEyes(float partialTicks)
@Nullable public RayTraceResult rayTrace(double blockReachDistance, float partialTicks)
public boolean canBeCollidedWith()
public boolean canBePushed()
public void addToPlayerScore(Entity entityIn, int amount)
public boolean isInRangeToRender3d(double x, double y, double z)
public boolean isInRangeToRenderDist(double distance)
public boolean writeToNBTAtomically(NBTTagCompound compound)
public boolean writeToNBTOptional(NBTTagCompound compound)
public NBTTagCompound writeToNBT(NBTTagCompound p_189511_1_)
public void readFromNBT(NBTTagCompound compound)
protected boolean shouldSetPosAfterLoading()
protected final java.lang.String getEntityString()
protected abstract void readEntityFromNBT(NBTTagCompound compound)
protected abstract void writeEntityToNBT(NBTTagCompound compound)
public void onChunkLoad()
protected NBTTagList newDoubleNBTList(double... numbers)
protected NBTTagList newFloatNBTList(float... numbers)
public EntityItem dropItem(Item itemIn, int size)
public EntityItem dropItemWithOffset(Item itemIn, int size, float offsetY)
public EntityItem entityDropItem(ItemStack stack, float offsetY)
public boolean isEntityAlive()
public boolean isEntityInsideOpaqueBlock()
public boolean processInitialInteract(EntityPlayer player, @Nullable ItemStack stack, EnumHand hand)
@Nullable public AxisAlignedBB getCollisionBox(Entity entityIn)
public void updateRidden()
public void updatePassenger(Entity passenger)
public void applyOrientationToEntity(Entity entityToUpdate)
public double getYOffset()
public double getMountedYOffset()
public boolean startRiding(Entity entityIn)
public boolean startRiding(Entity entityIn, boolean force)
protected boolean canBeRidden(Entity entityIn)
public void removePassengers()
public void dismountRidingEntity()
protected void addPassenger(Entity passenger)
protected void removePassenger(Entity passenger)
protected boolean canFitPassenger(Entity passenger)
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
public float getCollisionBorderSize()
public Vec3d getLookVec()
public void setPortal(BlockPos pos)
public int getPortalCooldown()
public void setVelocity(double x, double y, double z)
public void handleStatusUpdate(byte id)
public void performHurtAnimation()
public java.lang.Iterable<ItemStack> getHeldEquipment()
public java.lang.Iterable<ItemStack> getArmorInventoryList()
public java.lang.Iterable<ItemStack> getEquipmentAndArmor()
public void setItemStackToSlot(EntityEquipmentSlot slotIn, @Nullable ItemStack stack)
public boolean isBurning()
public boolean isRiding()
public boolean isBeingRidden()
public boolean isSneaking()
public void setSneaking(boolean sneaking)
public boolean isSprinting()
public void setSprinting(boolean sprinting)
public boolean isGlowing()
public void setGlowing(boolean glowingIn)
public boolean isInvisible()
public boolean isInvisibleToPlayer(EntityPlayer player)
@Nullable public Team getTeam()
public boolean isOnSameTeam(Entity entityIn)
public boolean isOnScoreboardTeam(Team teamIn)
public void setInvisible(boolean invisible)
protected boolean getFlag(int flag)
protected void setFlag(int flag, boolean set)
public int getAir()
public void setAir(int air)
public void onStruckByLightning(EntityLightningBolt lightningBolt)
public void onKillEntity(EntityLivingBase entityLivingIn)
protected boolean pushOutOfBlocks(double x, double y, double z)
public void setInWeb()
public java.lang.String getName()
getName
in interface ICommandSender
public Entity[] getParts()
public boolean isEntityEqual(Entity entityIn)
public float getRotationYawHead()
public void setRotationYawHead(float rotation)
public void setRenderYawOffset(float offset)
public boolean canBeAttackedWithItem()
public boolean hitByEntity(Entity entityIn)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEntityInvulnerable(DamageSource source)
public void setEntityInvulnerable(boolean isInvulnerable)
public void copyLocationAndAnglesFrom(Entity entityIn)
@Nullable public Entity changeDimension(int dimensionIn)
public boolean isNonBoss()
public float getExplosionResistance(Explosion explosionIn, World worldIn, BlockPos pos, IBlockState blockStateIn)
public boolean verifyExplosion(Explosion explosionIn, World worldIn, BlockPos pos, IBlockState blockStateIn, float p_174816_5_)
public int getMaxFallHeight()
public Vec3d getLastPortalVec()
public EnumFacing getTeleportDirection()
public boolean doesEntityNotTriggerPressurePlate()
public void addEntityCrashInfo(CrashReportCategory category)
public void setUniqueId(java.util.UUID uniqueIdIn)
public boolean canRenderOnFire()
public java.util.UUID getUniqueID()
public java.lang.String getCachedUniqueIdString()
public boolean isPushedByWater()
public static double getRenderDistanceWeight()
public static void setRenderDistanceWeight(double renderDistWeight)
public ITextComponent getDisplayName()
getDisplayName
in interface ICommandSender
public void setCustomNameTag(java.lang.String name)
public java.lang.String getCustomNameTag()
public boolean hasCustomName()
public void setAlwaysRenderNameTag(boolean alwaysRenderNameTag)
public boolean getAlwaysRenderNameTag()
public void setPositionAndUpdate(double x, double y, double z)
public void notifyDataManagerChange(DataParameter<?> key)
public boolean getAlwaysRenderNameTagForRender()
public EnumFacing getHorizontalFacing()
public EnumFacing getAdjustedHorizontalFacing()
protected HoverEvent getHoverEvent()
public boolean isSpectatedByPlayer(EntityPlayerMP player)
public AxisAlignedBB getEntityBoundingBox()
public AxisAlignedBB getRenderBoundingBox()
public void setEntityBoundingBox(AxisAlignedBB bb)
public float getEyeHeight()
public boolean isOutsideBorder()
public void setOutsideBorder(boolean outsideBorder)
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
public void addChatMessage(ITextComponent component)
addChatMessage
in interface ICommandSender
public boolean canCommandSenderUseCommand(int permLevel, java.lang.String commandName)
canCommandSenderUseCommand
in interface ICommandSender
public BlockPos getPosition()
getPosition
in interface ICommandSender
public Vec3d getPositionVector()
getPositionVector
in interface ICommandSender
public World getEntityWorld()
getEntityWorld
in interface ICommandSender
public Entity getCommandSenderEntity()
getCommandSenderEntity
in interface ICommandSender
public boolean sendCommandFeedback()
sendCommandFeedback
in interface ICommandSender
public void setCommandStat(CommandResultStats.Type type, int amount)
setCommandStat
in interface ICommandSender
@Nullable public MinecraftServer getServer()
getServer
in interface ICommandSender
public CommandResultStats getCommandStats()
public void setCommandStats(Entity entityIn)
public EnumActionResult applyPlayerInteraction(EntityPlayer player, Vec3d vec, @Nullable ItemStack stack, EnumHand hand)
public boolean isImmuneToExplosions()
protected void applyEnchantments(EntityLivingBase entityLivingBaseIn, Entity entityIn)
public NBTTagCompound getEntityData()
public boolean shouldRiderSit()
public ItemStack getPickedResult(RayTraceResult target)
target
- The full target the player is looking atpublic java.util.UUID getPersistentID()
public final void resetEntityId()
public boolean shouldRenderInPass(int pass)
public boolean isCreatureType(EnumCreatureType type, boolean forSpawnCount)
type
- The EnumCreatureType type this entity is evaluatingforSpawnCount
- If this is being invoked to check spawn count caps.public boolean canRiderInteract()
public boolean shouldDismountInWater(Entity rider)
rider
- The entity that is ridingpublic boolean hasCapability(Capability<?> capability, EnumFacing facing)
ICapabilityProvider
hasCapability
in interface ICapabilityProvider
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public <T> T getCapability(Capability<T> capability, EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public void deserializeNBT(NBTTagCompound nbt)
deserializeNBT
in interface INBTSerializable<NBTTagCompound>
public NBTTagCompound serializeNBT()
serializeNBT
in interface INBTSerializable<NBTTagCompound>
public void addTrackingPlayer(EntityPlayerMP player)
public void removeTrackingPlayer(EntityPlayerMP player)
public float getRotatedYaw(Rotation transformRotation)
public float getMirroredYaw(Mirror transformMirror)
public boolean ignoreItemEntityData()
public boolean setPositionNonDirty()
@Nullable public Entity getControllingPassenger()
public java.util.List<Entity> getPassengers()
public boolean isPassenger(Entity entityIn)
public java.util.Collection<Entity> getRecursivePassengers()
public <T extends Entity> java.util.Collection<T> getRecursivePassengersByType(java.lang.Class<T> entityClass)
public Entity getLowestRidingEntity()
public boolean isRidingSameEntity(Entity entityIn)
public boolean isRidingOrBeingRiddenBy(Entity entityIn)
public boolean canPassengerSteer()
@Nullable public Entity getRidingEntity()
public EnumPushReaction getPushReaction()
public SoundCategory getSoundCategory()