public abstract class Entity extends CapabilityProvider<Entity> implements INameable, ICommandSource, IForgeEntity
Constructor and Description |
---|
Entity(EntityType<?> entityTypeIn,
World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPassenger(Entity passenger) |
boolean |
addTag(java.lang.String tag) |
void |
addTrackingPlayer(EntityPlayerMP player) |
void |
addVelocity(double x,
double y,
double z) |
boolean |
allowLogging() |
protected void |
applyEnchantments(EntityLivingBase entityLivingBaseIn,
Entity entityIn) |
void |
applyEntityCollision(Entity entityIn) |
void |
applyOrientationToEntity(Entity entityToUpdate) |
EnumActionResult |
applyPlayerInteraction(EntityPlayer player,
Vec3d vec,
EnumHand hand) |
boolean |
areEyesInFluid(Tag<Fluid> tagIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
void |
awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
void |
baseTick() |
boolean |
canBeAttackedWithItem() |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
protected boolean |
canBeRidden(Entity entityIn) |
boolean |
canBeRiddenInWater()
Deprecated.
|
boolean |
canExplosionDestroyBlock(Explosion explosionIn,
IBlockReader worldIn,
BlockPos pos,
IBlockState blockStateIn,
float p_174816_5_) |
protected boolean |
canFitPassenger(Entity passenger) |
boolean |
canPassengerSteer() |
boolean |
canRenderOnFire() |
boolean |
canSwim() |
boolean |
canTrample(IBlockState state,
BlockPos pos,
float fallDistance)
Checks if this
Entity can trample a Block . |
protected boolean |
canTriggerWalking() |
boolean |
canUpdate() |
void |
canUpdate(boolean value) |
java.util.Collection<EntityItem> |
captureDrops() |
java.util.Collection<EntityItem> |
captureDrops(java.util.Collection<EntityItem> value) |
Entity |
changeDimension(DimensionType p_212321_1_,
ITeleporter teleporter)
Override instead of
changeDimension(DimensionType, ITeleporter) if your entity
needs special handling for specific teleporters. |
void |
copyDataFromOld(Entity entityIn) |
void |
copyLocationAndAnglesFrom(Entity entityIn) |
protected void |
createRunningParticles() |
protected void |
dealFireDamage(int amount) |
protected void |
decrementTimeUntilPortal() |
protected float |
determineNextStepDistance() |
protected void |
doBlockCollisions() |
boolean |
doesEntityNotTriggerPressurePlate() |
protected void |
doWaterSplashEffect() |
EntityItem |
entityDropItem(IItemProvider p_199703_1_) |
EntityItem |
entityDropItem(IItemProvider p_199702_1_,
int offset) |
EntityItem |
entityDropItem(ItemStack p_199701_1_) |
EntityItem |
entityDropItem(ItemStack stack,
float offsetY) |
boolean |
equals(java.lang.Object p_equals_1_) |
void |
extinguish() |
void |
fall(float distance,
float damageMultiplier) |
void |
fillCrashReport(CrashReportCategory category) |
Entity |
func_212321_a(DimensionType p_212321_1_) |
EnumFacing |
getAdjustedHorizontalFacing() |
int |
getAir() |
boolean |
getAlwaysRenderNameTagForRender() |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
AxisAlignedBB |
getBoundingBox() |
float |
getBrightness() |
int |
getBrightnessForRender() |
java.lang.String |
getCachedUniqueIdString() |
float |
getCollisionBorderSize() |
AxisAlignedBB |
getCollisionBoundingBox() |
AxisAlignedBB |
getCollisionBox(Entity entityIn) |
CommandSource |
getCommandSource() |
Entity |
getControllingPassenger() |
ITextComponent |
getCustomName() |
EntityDataManager |
getDataManager() |
ITextComponent |
getDisplayName() |
double |
getDistance(double x,
double y,
double z) |
float |
getDistance(Entity entityIn) |
double |
getDistanceSq(BlockPos pos) |
double |
getDistanceSq(double x,
double y,
double z) |
double |
getDistanceSq(Entity entityIn) |
double |
getDistanceSq(Vec3d p_195048_1_) |
double |
getDistanceSqToCenter(BlockPos pos) |
NBTTagCompound |
getEntityData()
Returns a NBTTagCompound that can be used to store custom data for this entity.
|
int |
getEntityId() |
java.lang.String |
getEntityString() |
World |
getEntityWorld() |
java.lang.Iterable<ItemStack> |
getEquipmentAndArmor() |
float |
getExplosionResistance(Explosion explosionIn,
IBlockReader worldIn,
BlockPos pos,
IBlockState blockStateIn,
IFluidState p_180428_5_,
float p_180428_6_) |
float |
getEyeHeight() |
Vec3d |
getEyePosition(float partialTicks) |
protected int |
getFireImmuneTicks() |
protected boolean |
getFlag(int flag) |
Vec3d |
getForward() |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
protected SoundEvent |
getHighspeedSplashSound() |
EnumFacing |
getHorizontalFacing() |
protected HoverEvent |
getHoverEvent() |
Vec3d |
getLastPortalVec() |
Vec3d |
getLook(float partialTicks) |
Vec3d |
getLookVec() |
Entity |
getLowestRidingEntity() |
int |
getMaxAir() |
int |
getMaxFallHeight() |
int |
getMaxInPortalTime() |
float |
getMirroredYaw(Mirror transformMirror) |
double |
getMountedYOffset() |
ITextComponent |
getName() |
Entity[] |
getParts() |
java.util.List<Entity> |
getPassengers() |
protected int |
getPermissionLevel() |
float |
getPitch(float partialTicks) |
Vec2f |
getPitchYaw() |
int |
getPortalCooldown() |
BlockPos |
getPosition() |
Vec3d |
getPositionVector() |
EnumPushReaction |
getPushReaction() |
java.util.Collection<Entity> |
getRecursivePassengers() |
AxisAlignedBB |
getRenderBoundingBox() |
static double |
getRenderDistanceWeight() |
Entity |
getRidingEntity() |
float |
getRotatedYaw(Rotation transformRotation) |
float |
getRotationYawHead() |
java.lang.String |
getScoreboardName() |
MinecraftServer |
getServer() |
SoundCategory |
getSoundCategory() |
protected SoundEvent |
getSplashSound() |
double |
getSubmergedHeight() |
protected SoundEvent |
getSwimSound() |
java.util.Set<java.lang.String> |
getTags() |
Team |
getTeam() |
EnumFacing |
getTeleportDirection() |
EntityType<?> |
getType() |
java.util.UUID |
getUniqueID() |
protected Vec3d |
getVectorForRotation(float pitch,
float yaw) |
float |
getYaw(float partialTicks) |
double |
getYOffset() |
boolean |
handleFluidAcceleration(Tag<Fluid> p_210500_1_) |
void |
handleStatusUpdate(byte id) |
boolean |
handleWaterMovement() |
boolean |
hasCustomName() |
int |
hashCode() |
boolean |
hasNoGravity() |
boolean |
hasPermissionLevel(int p_211513_1_) |
boolean |
hitByEntity(Entity entityIn) |
boolean |
ignoreItemEntityData() |
boolean |
isAddedToWorld()
Gets whether this entity has been added to a world (for tracking).
|
boolean |
isAlive() |
boolean |
isBeingRidden() |
boolean |
isBurning() |
boolean |
isCustomNameVisible() |
boolean |
isEntityEqual(Entity entityIn) |
boolean |
isEntityInsideOpaqueBlock() |
boolean |
isGlowing() |
boolean |
isImmuneToExplosions() |
boolean |
isImmuneToFire() |
boolean |
isInLava() |
boolean |
isInRangeToRender3d(double x,
double y,
double z) |
boolean |
isInRangeToRenderDist(double distance) |
boolean |
isInvisible() |
boolean |
isInvisibleToPlayer(EntityPlayer player) |
boolean |
isInvulnerable() |
boolean |
isInvulnerableTo(DamageSource source) |
boolean |
isInWater() |
boolean |
isInWaterOrBubbleColumn() |
boolean |
isInWaterRainOrBubbleColumn() |
boolean |
isLiving() |
boolean |
isNonBoss() |
boolean |
isOffsetPositionInLiquid(double x,
double y,
double z) |
boolean |
isOnePlayerRiding() |
boolean |
isOnSameTeam(Entity entityIn) |
boolean |
isOnScoreboardTeam(Team teamIn) |
boolean |
isOutsideBorder() |
boolean |
isPassenger() |
boolean |
isPassenger(java.lang.Class<? extends Entity> p_205708_1_) |
boolean |
isPassenger(Entity entityIn) |
boolean |
isPushedByWater() |
boolean |
isRidingOrBeingRiddenBy(Entity entityIn) |
boolean |
isRidingSameEntity(Entity entityIn) |
boolean |
isSilent() |
boolean |
isSneaking() |
boolean |
isSpectatedByPlayer(EntityPlayerMP player) |
boolean |
isSprinting() |
boolean |
isSwimming() |
boolean |
isWet() |
void |
lookAt(EntityAnchorArgument.Type p_200602_1_,
Vec3d p_200602_2_) |
protected boolean |
makeFlySound() |
protected void |
markVelocityChanged() |
void |
move(MoverType type,
double x,
double y,
double z) |
void |
moveRelative(float strafe,
float up,
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 |
onAddedToWorld()
Called after the entity has been added to the world's
ticking list.
|
void |
onCollideWithPlayer(EntityPlayer entityIn) |
void |
onEnterBubbleColumn(boolean downwards) |
void |
onEnterBubbleColumnWithAirAbove(boolean downwards) |
protected void |
onInsideBlock(IBlockState p_191955_1_) |
void |
onKillCommand() |
void |
onKillEntity(EntityLivingBase entityLivingIn) |
void |
onRemovedFromWorld()
Called after the entity has been removed to the world's
ticking list.
|
void |
onStruckByLightning(EntityLightningBolt lightningBolt) |
protected void |
outOfWorld() |
void |
performHurtAnimation() |
protected float |
playFlySound(float volume) |
void |
playSound(SoundEvent soundIn,
float volume,
float pitch) |
protected void |
playStepSound(BlockPos pos,
IBlockState blockIn) |
protected void |
playSwimSound(float volume) |
protected void |
preparePlayerToSpawn() |
boolean |
processInitialInteract(EntityPlayer player,
EnumHand hand) |
protected boolean |
pushOutOfBlocks(double x,
double y,
double z) |
RayTraceResult |
rayTrace(double blockReachDistance,
float partialTicks,
RayTraceFluidMode p_174822_4_) |
void |
read(NBTTagCompound compound) |
protected abstract void |
readAdditional(NBTTagCompound compound) |
protected abstract void |
registerData() |
void |
remove() |
void |
remove(boolean keepData) |
protected void |
removePassenger(Entity passenger) |
void |
removePassengers() |
boolean |
removeTag(java.lang.String tag) |
void |
removeTrackingPlayer(EntityPlayerMP player) |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
resetPositionToBB() |
void |
revive()
Revives an entity that has been removed from a world.
|
void |
rotateTowards(double yaw,
double pitch) |
void |
sendMessage(ITextComponent component) |
void |
setAir(int air) |
void |
setBoundingBox(AxisAlignedBB bb) |
void |
setCustomName(ITextComponent name) |
void |
setCustomNameVisible(boolean alwaysRenderNameTag) |
void |
setDropItemsWhenDead(boolean dropWhenDead) |
void |
setEntityId(int id) |
void |
setFire(int seconds) |
protected void |
setFlag(int flag,
boolean set) |
void |
setGlowing(boolean glowingIn) |
void |
setHeadRotation(float yaw,
int pitch) |
void |
setInvisible(boolean invisible) |
void |
setInvulnerable(boolean isInvulnerable) |
void |
setInWeb() |
void |
setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
setLocationAndAngles(double x,
double y,
double z,
float yaw,
float pitch) |
void |
setNoGravity(boolean noGravity) |
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 |
setSwimming(boolean p_204711_1_) |
void |
setUniqueId(java.util.UUID uniqueIdIn) |
void |
setVelocity(double x,
double y,
double z) |
void |
setWorld(World worldIn) |
boolean |
shouldReceiveErrors() |
boolean |
shouldReceiveFeedback() |
protected boolean |
shouldSetPosAfterLoading() |
void |
spawnRunningParticles() |
boolean |
startRiding(Entity entityIn) |
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
stopRiding() |
void |
tick() |
java.lang.String |
toString() |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos) |
void |
updatePassenger(Entity passenger) |
void |
updateRidden() |
void |
updateSwimming() |
protected abstract void |
writeAdditional(NBTTagCompound compound) |
boolean |
writeUnlessPassenger(NBTTagCompound compound) |
boolean |
writeUnlessRemoved(NBTTagCompound compound) |
NBTTagCompound |
writeWithoutTypeId(NBTTagCompound compound) |
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSit
getCapability, getCapability
protected static final org.apache.logging.log4j.Logger LOGGER
public boolean preventEntitySpawning
protected int rideCooldown
public boolean forceSpawn
public World world
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 collidedHorizontally
public boolean collidedVertically
public boolean collided
public boolean velocityChanged
protected boolean isInWeb
@Deprecated public boolean removed
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
protected boolean inWater
protected double submergedHeight
protected boolean eyesInWater
public int hurtResistantTime
protected boolean firstUpdate
protected boolean isImmuneToFire
protected EntityDataManager dataManager
protected static final DataParameter<java.lang.Byte> FLAGS
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 DimensionType dimension
protected BlockPos lastPortalPos
protected Vec3d lastPortalVec
protected EnumFacing teleportDirection
protected java.util.UUID entityUniqueID
protected java.lang.String cachedUniqueIdString
protected boolean glowing
public Entity(EntityType<?> entityTypeIn, World worldIn)
public EntityType<?> getType()
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 registerData()
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 remove()
public void remove(boolean keepData)
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 rotateTowards(double yaw, double pitch)
public void tick()
public void baseTick()
protected void decrementTimeUntilPortal()
public int getMaxInPortalTime()
protected void setOnFireFromLava()
public void setFire(int seconds)
public void extinguish()
protected void outOfWorld()
public boolean isOffsetPositionInLiquid(double x, double y, double z)
public void move(MoverType type, double x, double y, double z)
protected float determineNextStepDistance()
public void resetPositionToBB()
protected SoundEvent getSwimSound()
protected SoundEvent getSplashSound()
protected SoundEvent getHighspeedSplashSound()
protected void doBlockCollisions()
protected void onInsideBlock(IBlockState p_191955_1_)
protected void playStepSound(BlockPos pos, IBlockState blockIn)
protected void playSwimSound(float volume)
protected float playFlySound(float volume)
protected boolean makeFlySound()
public void playSound(SoundEvent soundIn, float volume, float pitch)
public boolean isSilent()
public void setSilent(boolean isSilent)
public boolean hasNoGravity()
public void setNoGravity(boolean noGravity)
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 isInWater()
public boolean isWet()
public boolean isInWaterRainOrBubbleColumn()
public boolean isInWaterOrBubbleColumn()
public boolean canSwim()
public void updateSwimming()
public boolean handleWaterMovement()
protected void doWaterSplashEffect()
public void spawnRunningParticles()
protected void createRunningParticles()
public boolean isInLava()
public void moveRelative(float strafe, float up, float forward, float friction)
public int getBrightnessForRender()
public float getBrightness()
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 getDistance(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 getDistanceSq(Entity entityIn)
public double getDistanceSq(Vec3d p_195048_1_)
public void onCollideWithPlayer(EntityPlayer entityIn)
public void applyEntityCollision(Entity entityIn)
public void addVelocity(double x, double y, double z)
protected void markVelocityChanged()
public boolean attackEntityFrom(DamageSource source, float amount)
public final Vec3d getLook(float partialTicks)
public float getPitch(float partialTicks)
public float getYaw(float partialTicks)
protected final Vec3d getVectorForRotation(float pitch, float yaw)
public Vec3d getEyePosition(float partialTicks)
@Nullable public RayTraceResult rayTrace(double blockReachDistance, float partialTicks, RayTraceFluidMode p_174822_4_)
public boolean canBeCollidedWith()
public boolean canBePushed()
public void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
public boolean isInRangeToRender3d(double x, double y, double z)
public boolean isInRangeToRenderDist(double distance)
public boolean writeUnlessRemoved(NBTTagCompound compound)
public boolean writeUnlessPassenger(NBTTagCompound compound)
public NBTTagCompound writeWithoutTypeId(NBTTagCompound compound)
public void read(NBTTagCompound compound)
protected boolean shouldSetPosAfterLoading()
@Nullable public final java.lang.String getEntityString()
protected abstract void readAdditional(NBTTagCompound compound)
protected abstract void writeAdditional(NBTTagCompound compound)
protected NBTTagList newDoubleNBTList(double... numbers)
protected NBTTagList newFloatNBTList(float... numbers)
@Nullable public EntityItem entityDropItem(IItemProvider p_199703_1_)
@Nullable public EntityItem entityDropItem(IItemProvider p_199702_1_, int offset)
@Nullable public EntityItem entityDropItem(ItemStack p_199701_1_)
@Nullable public EntityItem entityDropItem(ItemStack stack, float offsetY)
public boolean isAlive()
public boolean isEntityInsideOpaqueBlock()
public boolean processInitialInteract(EntityPlayer player, 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 isLiving()
public boolean startRiding(Entity entityIn, boolean force)
protected boolean canBeRidden(Entity entityIn)
public void removePassengers()
public void stopRiding()
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 void setHeadRotation(float yaw, int pitch)
public float getCollisionBorderSize()
public Vec3d getLookVec()
public Vec2f getPitchYaw()
public Vec3d getForward()
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, ItemStack stack)
public boolean isBurning()
public boolean isPassenger()
public boolean isBeingRidden()
@Deprecated public boolean canBeRiddenInWater()
public boolean isSneaking()
public void setSneaking(boolean sneaking)
public boolean isSprinting()
public void setSprinting(boolean sprinting)
public boolean isSwimming()
public void setSwimming(boolean p_204711_1_)
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 getMaxAir()
public int getAir()
public void setAir(int air)
public void onStruckByLightning(EntityLightningBolt lightningBolt)
public void onEnterBubbleColumnWithAirAbove(boolean downwards)
public void onEnterBubbleColumn(boolean downwards)
public void onKillEntity(EntityLivingBase entityLivingIn)
protected boolean pushOutOfBlocks(double x, double y, double z)
public void setInWeb()
public ITextComponent getName()
@Nullable 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 isInvulnerableTo(DamageSource source)
public boolean isInvulnerable()
public void setInvulnerable(boolean isInvulnerable)
public void copyLocationAndAnglesFrom(Entity entityIn)
public void copyDataFromOld(Entity entityIn)
@Nullable public Entity func_212321_a(DimensionType p_212321_1_)
@Nullable public Entity changeDimension(DimensionType p_212321_1_, ITeleporter teleporter)
IForgeEntity
changeDimension(DimensionType, ITeleporter)
if your entity
needs special handling for specific teleporters.changeDimension
in interface IForgeEntity
p_212321_1_
- The target dimensionteleporter
- The teleporter being used to move the entity to the dimensionnull
if the entity should despawn.public boolean isNonBoss()
public float getExplosionResistance(Explosion explosionIn, IBlockReader worldIn, BlockPos pos, IBlockState blockStateIn, IFluidState p_180428_5_, float p_180428_6_)
public boolean canExplosionDestroyBlock(Explosion explosionIn, IBlockReader worldIn, BlockPos pos, IBlockState blockStateIn, float p_174816_5_)
public int getMaxFallHeight()
public Vec3d getLastPortalVec()
public EnumFacing getTeleportDirection()
public boolean doesEntityNotTriggerPressurePlate()
public void fillCrashReport(CrashReportCategory category)
public boolean canRenderOnFire()
public void setUniqueId(java.util.UUID uniqueIdIn)
public java.util.UUID getUniqueID()
public java.lang.String getCachedUniqueIdString()
public java.lang.String getScoreboardName()
public boolean isPushedByWater()
public static double getRenderDistanceWeight()
public static void setRenderDistanceWeight(double renderDistWeight)
public ITextComponent getDisplayName()
getDisplayName
in interface INameable
public void setCustomName(@Nullable ITextComponent name)
@Nullable public ITextComponent getCustomName()
getCustomName
in interface INameable
public boolean hasCustomName()
hasCustomName
in interface INameable
public void setCustomNameVisible(boolean alwaysRenderNameTag)
public boolean isCustomNameVisible()
public void setPositionAndUpdate(double x, double y, double z)
public boolean getAlwaysRenderNameTagForRender()
public void notifyDataManagerChange(DataParameter<?> key)
public EnumFacing getHorizontalFacing()
public EnumFacing getAdjustedHorizontalFacing()
protected HoverEvent getHoverEvent()
public boolean isSpectatedByPlayer(EntityPlayerMP player)
public AxisAlignedBB getBoundingBox()
public AxisAlignedBB getRenderBoundingBox()
public void setBoundingBox(AxisAlignedBB bb)
public float getEyeHeight()
public boolean isOutsideBorder()
public void setOutsideBorder(boolean outsideBorder)
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSource
public BlockPos getPosition()
public Vec3d getPositionVector()
public World getEntityWorld()
@Nullable public MinecraftServer getServer()
public EnumActionResult applyPlayerInteraction(EntityPlayer player, Vec3d vec, EnumHand hand)
public boolean isImmuneToExplosions()
protected void applyEnchantments(EntityLivingBase entityLivingBaseIn, Entity entityIn)
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 boolean isPassenger(java.lang.Class<? extends Entity> p_205708_1_)
public java.util.Collection<Entity> getRecursivePassengers()
public boolean isOnePlayerRiding()
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()
protected int getFireImmuneTicks()
public CommandSource getCommandSource()
protected int getPermissionLevel()
public boolean hasPermissionLevel(int p_211513_1_)
public boolean shouldReceiveFeedback()
shouldReceiveFeedback
in interface ICommandSource
public boolean shouldReceiveErrors()
shouldReceiveErrors
in interface ICommandSource
public boolean allowLogging()
allowLogging
in interface ICommandSource
public void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
public double getSubmergedHeight()
public void canUpdate(boolean value)
canUpdate
in interface IForgeEntity
public boolean canUpdate()
canUpdate
in interface IForgeEntity
public java.util.Collection<EntityItem> captureDrops()
captureDrops
in interface IForgeEntity
public java.util.Collection<EntityItem> captureDrops(java.util.Collection<EntityItem> value)
captureDrops
in interface IForgeEntity
public NBTTagCompound getEntityData()
IForgeEntity
getEntityData
in interface IForgeEntity
public boolean canTrample(IBlockState state, BlockPos pos, float fallDistance)
IForgeEntity
Entity
can trample a Block
.canTrample
in interface IForgeEntity
pos
- The block posfallDistance
- The fall distancetrue
if this entity can trample, false
otherwisepublic final boolean isAddedToWorld()
IForgeEntity
World#onEntityAdded(Entity)
and
World#onEntityRemoved(Entity)
.isAddedToWorld
in interface IForgeEntity
public void onAddedToWorld()
IForgeEntity
onAddedToWorld
in interface IForgeEntity
public void onRemovedFromWorld()
IForgeEntity
onRemovedFromWorld
in interface IForgeEntity
public void revive()
IForgeEntity
revive
in interface IForgeEntity