public abstract class LivingEntity extends Entity
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
field_213139_a_
Modifier | Constructor and Description |
---|---|
protected |
LivingEntity(EntityType<? extends LivingEntity> type,
World p_i48577_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addPotionEffect(EffectInstance p_195064_1_) |
protected float |
applyArmorCalculations(DamageSource source,
float damage) |
void |
applyEntityCollision(Entity entityIn) |
protected float |
applyPotionDamageCalculations(DamageSource source,
float damage) |
static boolean |
areAllPotionsAmbient(java.util.Collection<EffectInstance> potionEffects) |
boolean |
attackable() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
attemptTeleport(double p_213373_1_,
double p_213373_3_,
double p_213373_5_,
boolean p_213373_7_) |
void |
baseTick() |
protected void |
blockUsingShield(LivingEntity p_190629_1_) |
boolean |
canAttack(EntityType<?> typeIn) |
boolean |
canAttack(LivingEntity target) |
boolean |
canBeCollidedWith() |
boolean |
canBeHitWithPotion() |
boolean |
canBePushed() |
boolean |
canBeRiddenInWater() |
boolean |
canBreatheUnderwater() |
protected boolean |
canDropLoot() |
boolean |
canEntityBeSeen(Entity entityIn) |
boolean |
clearActivePotions() |
void |
clearBedPosition() |
protected void |
collideWithEntity(Entity entityIn) |
protected void |
collideWithNearbyEntities() |
protected Brain<?> |
createBrain(com.mojang.datafixers.Dynamic<?> p_213364_1_) |
IPacket<?> |
createSpawnPacket() |
boolean |
curePotionEffects(ItemStack curativeItem)
Removes all potion effects that have curativeItem as a curative item for its effect
|
protected void |
damageArmor(float damage) |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
protected void |
damageShield(float damage) |
protected int |
decreaseAirSupply(int air) |
protected int |
determineNextAir(int currentAir) |
void |
dismountEntity(Entity entityIn) |
protected void |
dropInventory() |
protected void |
dropLoot(DamageSource p_213354_1_,
boolean p_213354_2_) |
protected void |
dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
void |
fall(float distance,
float damageMultiplier) |
ItemStack |
findAmmo(ItemStack shootable) |
protected void |
frostWalk(BlockPos pos) |
boolean |
func_213314_bj() |
float |
func_213343_cS() |
boolean |
func_213344_a(LivingEntity p_213344_1_,
EntityPredicate p_213344_2_) |
ResourceLocation |
func_213346_cF() |
protected LootContext.Builder |
func_213363_a(boolean p_213363_1_,
DamageSource p_213363_2_) |
boolean |
func_213365_e(ItemStack p_213365_1_) |
protected void |
func_213371_e(LivingEntity p_213371_1_) |
float |
getAbsorptionAmount() |
Hand |
getActiveHand() |
ItemStack |
getActiveItemStack() |
EffectInstance |
getActivePotionEffect(Effect potionIn) |
java.util.Collection<EffectInstance> |
getActivePotionEffects() |
java.util.Map<Effect,EffectInstance> |
getActivePotionMap() |
float |
getAIMoveSpeed() |
boolean |
getAlwaysRenderNameTagForRender() |
abstract java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
int |
getArrowCountInEntity() |
LivingEntity |
getAttackingEntity() |
IAttributeInstance |
getAttribute(IAttribute attribute) |
AbstractAttributeMap |
getAttributes() |
Direction |
getBedDirection() |
java.util.Optional<BlockPos> |
getBedPosition() |
BlockState |
getBlockState() |
Brain<?> |
getBrain() |
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
CombatTracker |
getCombatTracker() |
CreatureAttribute |
getCreatureAttribute() |
protected SoundEvent |
getDeathSound() |
protected SoundEvent |
getDrinkSound(ItemStack p_213351_1_) |
SoundEvent |
getEatSound(ItemStack itemStackIn) |
protected int |
getExperiencePoints(PlayerEntity player) |
protected float |
getEyeHeight(Pose p_213316_1_,
EntitySize p_213316_2_) |
protected SoundEvent |
getFallSound(int heightIn) |
float |
getHealth() |
ItemStack |
getHeldItem(Hand hand) |
ItemStack |
getHeldItemMainhand() |
ItemStack |
getHeldItemOffhand() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getIdleTime() |
int |
getItemInUseCount() |
int |
getItemInUseMaxCount() |
abstract ItemStack |
getItemStackFromSlot(EquipmentSlotType slotIn) |
protected float |
getJumpUpwardsMotion() |
LivingEntity |
getLastAttackedEntity() |
int |
getLastAttackedEntityTime() |
DamageSource |
getLastDamageSource() |
float |
getMaxHealth() |
abstract HandSide |
getPrimaryHand() |
float |
getRenderScale() |
LivingEntity |
getRevengeTarget() |
int |
getRevengeTimer() |
java.util.Random |
getRNG() |
float |
getRotationYawHead() |
EntitySize |
getSize(Pose poseIn) |
protected float |
getSoundPitch() |
protected float |
getSoundVolume() |
protected float |
getStandingEyeHeight(Pose poseIn,
EntitySize sizeIn) |
float |
getSwimAnimation(float partialTicks) |
float |
getSwingProgress(float partialTickTime) |
int |
getTicksElytraFlying() |
int |
getTotalArmorValue() |
double |
getVisibilityMultiplier(Entity lookingEntity) |
protected float |
getWaterSlowDown() |
float |
getYaw(float partialTicks) |
protected void |
handleFluidJump(Tag<Fluid> fluidTag) |
protected void |
handleFluidSneak() |
void |
handleStatusUpdate(byte id) |
boolean |
hasItemInSlot(EquipmentSlotType p_190630_1_) |
void |
heal(float healAmount) |
boolean |
isActiveItemStackBlocking() |
boolean |
isAlive() |
boolean |
isChild() |
boolean |
isElytraFlying() |
boolean |
isEntityInsideOpaqueBlock() |
boolean |
isEntityUndead() |
boolean |
isHandActive() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
protected boolean |
isPlayer() |
boolean |
isPotionActive(Effect potionIn) |
boolean |
isPotionApplicable(EffectInstance potioneffectIn) |
boolean |
isServerWorld() |
boolean |
isSleeping() |
boolean |
isSpinAttacking() |
protected void |
jump() |
void |
knockBack(Entity entityIn,
float strength,
double xRatio,
double zRatio) |
void |
livingTick() |
void |
lookAt(EntityAnchorArgument.Type p_200602_1_,
Vec3d p_200602_2_) |
protected void |
markPotionsDirty() |
protected void |
markVelocityChanged() |
void |
notifyDataManagerChange(DataParameter<?> key) |
protected void |
onChangedPotionEffect(EffectInstance id,
boolean p_70695_2_) |
void |
onDeath(DamageSource cause) |
protected void |
onDeathUpdate() |
protected void |
onFinishedPotionEffect(EffectInstance effect) |
ItemStack |
onFoodEaten(World p_213357_1_,
ItemStack p_213357_2_) |
void |
onItemPickup(Entity entityIn,
int quantity) |
protected void |
onItemUseFinish() |
void |
onKillCommand() |
protected void |
onNewPotionEffect(EffectInstance id) |
protected void |
outOfWorld() |
void |
performHurtAnimation() |
protected void |
playEquipSound(ItemStack stack) |
protected void |
playHurtSound(DamageSource source) |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerAttributes() |
protected void |
registerData() |
void |
remove(boolean keepData) |
EffectInstance |
removeActivePotionEffect(Effect potioneffectin) |
boolean |
removePotionEffect(Effect p_195063_1_) |
void |
resetActiveHand() |
protected void |
resetPotionEffectMetadata() |
void |
sendBreakAnimation(EquipmentSlotType p_213361_1_) |
void |
sendBreakAnimation(Hand p_213334_1_) |
void |
sendEndCombat() |
void |
sendEnterCombat() |
void |
setAbsorptionAmount(float amount) |
void |
setActiveHand(Hand hand) |
void |
setAIMoveSpeed(float speedIn) |
void |
setArrowCountInEntity(int count) |
void |
setBedPosition(BlockPos p_213369_1_) |
void |
setHeadRotation(float yaw,
int pitch) |
void |
setHealth(float health) |
void |
setHeldItem(Hand hand,
ItemStack stack) |
void |
setIdleTime(int idleTimeIn) |
abstract void |
setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
setJumping(boolean jumping) |
void |
setLastAttackedEntity(Entity entityIn) |
protected void |
setLivingFlag(int key,
boolean value) |
void |
setPartying(BlockPos pos,
boolean isPartying) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setRenderYawOffset(float offset) |
void |
setRevengeTarget(LivingEntity livingBase) |
void |
setRotationYawHead(float rotation) |
void |
setSprinting(boolean sprinting) |
boolean |
shouldRiderFaceForward(PlayerEntity player)
Returns true if the entity's rider (EntityPlayer) should face forward when mounted.
|
protected void |
spawnDrops(DamageSource p_213345_1_) |
protected void |
spinAttack(LivingEntity p_204804_1_) |
void |
startSleeping(BlockPos p_213342_1_) |
void |
startSpinAttack(int p_204803_1_) |
void |
stopActiveHand() |
void |
stopRiding() |
void |
swingArm(Hand hand) |
void |
tick() |
void |
travel(Vec3d p_213352_1_) |
protected void |
updateArmSwingProgress() |
protected float |
updateDistance(float p_110146_1_,
float p_110146_2_) |
protected void |
updateEntityActionState() |
protected void |
updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos) |
protected void |
updateItemUse(ItemStack stack,
int eatingParticleCount) |
protected void |
updatePotionEffects() |
protected void |
updatePotionMetadata() |
void |
updateRidden() |
protected void |
updateSpinAttack(AxisAlignedBB p_204801_1_,
AxisAlignedBB p_204801_2_) |
void |
wakeUp() |
void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, getYOffset, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSwimming, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public static final IAttribute SWIM_SPEED
public static final IAttribute NAMETAG_DISTANCE
public static final IAttribute ENTITY_GRAVITY
protected static final DataParameter<java.lang.Byte> LIVING_FLAGS
protected static final EntitySize SLEEPING_SIZE
public boolean isSwingInProgress
public Hand swingingHand
public int swingProgressInt
public int arrowHitTimer
public int hurtTime
public int maxHurtTime
public float attackedAtYaw
public int deathTime
public float prevSwingProgress
public float swingProgress
protected int ticksSinceLastSwing
public float prevLimbSwingAmount
public float limbSwingAmount
public float limbSwing
public final int maxHurtResistantTime
public final float randomUnused2
public final float randomUnused1
public float renderYawOffset
public float prevRenderYawOffset
public float rotationYawHead
public float prevRotationYawHead
public float jumpMovementFactor
protected PlayerEntity attackingPlayer
protected int recentlyHit
protected boolean dead
protected int idleTime
protected float prevOnGroundSpeedFactor
protected float onGroundSpeedFactor
protected float movedDistance
protected float prevMovedDistance
protected float unused180
protected int scoreValue
protected float lastDamage
protected boolean isJumping
public float moveStrafing
public float moveVertical
public float moveForward
public float randomYawVelocity
protected int newPosRotationIncrements
protected double interpTargetX
protected double interpTargetY
protected double interpTargetZ
protected double interpTargetYaw
protected double interpTargetPitch
protected double interpTargetHeadYaw
protected int interpTicksHead
protected ItemStack activeItemStack
protected int activeItemStackUseCount
protected int ticksElytraFlying
protected int spinAttackDuration
protected Brain<?> brain
protected LivingEntity(EntityType<? extends LivingEntity> type, World p_i48577_2_)
public Brain<?> getBrain()
protected Brain<?> createBrain(com.mojang.datafixers.Dynamic<?> p_213364_1_)
public void onKillCommand()
onKillCommand
in class Entity
public boolean canAttack(EntityType<?> typeIn)
protected void registerData()
registerData
in class Entity
protected void registerAttributes()
protected void updateFallState(double y, boolean onGroundIn, BlockState state, BlockPos pos)
updateFallState
in class Entity
public boolean canBreatheUnderwater()
public float getSwimAnimation(float partialTicks)
protected void frostWalk(BlockPos pos)
public boolean isChild()
public float getRenderScale()
public boolean canBeRiddenInWater()
canBeRiddenInWater
in class Entity
protected void onDeathUpdate()
protected boolean canDropLoot()
protected int decreaseAirSupply(int air)
protected int determineNextAir(int currentAir)
protected int getExperiencePoints(PlayerEntity player)
protected boolean isPlayer()
public java.util.Random getRNG()
@Nullable public LivingEntity getRevengeTarget()
public int getRevengeTimer()
public void setRevengeTarget(@Nullable LivingEntity livingBase)
@Nullable public LivingEntity getLastAttackedEntity()
public int getLastAttackedEntityTime()
public void setLastAttackedEntity(Entity entityIn)
public int getIdleTime()
public void setIdleTime(int idleTimeIn)
protected void playEquipSound(ItemStack stack)
public void writeAdditional(CompoundNBT compound)
writeAdditional
in class Entity
public void readAdditional(CompoundNBT compound)
readAdditional
in class Entity
protected void updatePotionEffects()
protected void updatePotionMetadata()
public double getVisibilityMultiplier(@Nullable Entity lookingEntity)
public boolean canAttack(LivingEntity target)
public boolean func_213344_a(LivingEntity p_213344_1_, EntityPredicate p_213344_2_)
public static boolean areAllPotionsAmbient(java.util.Collection<EffectInstance> potionEffects)
protected void resetPotionEffectMetadata()
public boolean clearActivePotions()
public java.util.Collection<EffectInstance> getActivePotionEffects()
public java.util.Map<Effect,EffectInstance> getActivePotionMap()
public boolean isPotionActive(Effect potionIn)
@Nullable public EffectInstance getActivePotionEffect(Effect potionIn)
public boolean addPotionEffect(EffectInstance p_195064_1_)
public boolean isPotionApplicable(EffectInstance potioneffectIn)
public boolean isEntityUndead()
@Nullable public EffectInstance removeActivePotionEffect(@Nullable Effect potioneffectin)
public boolean removePotionEffect(Effect p_195063_1_)
protected void onNewPotionEffect(EffectInstance id)
protected void onChangedPotionEffect(EffectInstance id, boolean p_70695_2_)
protected void onFinishedPotionEffect(EffectInstance effect)
public void heal(float healAmount)
public float getHealth()
public void setHealth(float health)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class Entity
protected void blockUsingShield(LivingEntity p_190629_1_)
protected void func_213371_e(LivingEntity p_213371_1_)
@Nullable public DamageSource getLastDamageSource()
protected void playHurtSound(DamageSource source)
public void onDeath(DamageSource cause)
protected void spawnDrops(DamageSource p_213345_1_)
protected void dropInventory()
protected void dropSpecialItems(DamageSource source, int looting, boolean recentlyHitIn)
public ResourceLocation func_213346_cF()
protected void dropLoot(DamageSource p_213354_1_, boolean p_213354_2_)
protected LootContext.Builder func_213363_a(boolean p_213363_1_, DamageSource p_213363_2_)
public void knockBack(Entity entityIn, float strength, double xRatio, double zRatio)
@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
@Nullable protected SoundEvent getDeathSound()
protected SoundEvent getFallSound(int heightIn)
protected SoundEvent getDrinkSound(ItemStack p_213351_1_)
public SoundEvent getEatSound(ItemStack itemStackIn)
public boolean isOnLadder()
public BlockState getBlockState()
public void performHurtAnimation()
performHurtAnimation
in class Entity
public int getTotalArmorValue()
protected void damageArmor(float damage)
protected void damageShield(float damage)
protected float applyArmorCalculations(DamageSource source, float damage)
protected float applyPotionDamageCalculations(DamageSource source, float damage)
protected void damageEntity(DamageSource damageSrc, float damageAmount)
public CombatTracker getCombatTracker()
@Nullable public LivingEntity getAttackingEntity()
public final float getMaxHealth()
public final int getArrowCountInEntity()
public final void setArrowCountInEntity(int count)
public void swingArm(Hand hand)
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class Entity
protected void outOfWorld()
outOfWorld
in class Entity
protected void updateArmSwingProgress()
public IAttributeInstance getAttribute(IAttribute attribute)
public AbstractAttributeMap getAttributes()
public CreatureAttribute getCreatureAttribute()
public ItemStack getHeldItemMainhand()
public ItemStack getHeldItemOffhand()
public boolean hasItemInSlot(EquipmentSlotType p_190630_1_)
public abstract java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class Entity
public abstract ItemStack getItemStackFromSlot(EquipmentSlotType slotIn)
public abstract void setItemStackToSlot(EquipmentSlotType slotIn, ItemStack stack)
setItemStackToSlot
in class Entity
public float func_213343_cS()
public void setSprinting(boolean sprinting)
setSprinting
in class Entity
protected float getSoundVolume()
protected float getSoundPitch()
protected boolean isMovementBlocked()
public void applyEntityCollision(Entity entityIn)
applyEntityCollision
in class Entity
public void dismountEntity(Entity entityIn)
public boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender
in class Entity
protected float getJumpUpwardsMotion()
protected void jump()
protected void handleFluidSneak()
protected float getWaterSlowDown()
public void travel(Vec3d p_213352_1_)
public float getAIMoveSpeed()
public void setAIMoveSpeed(float speedIn)
public boolean attackEntityAsMob(Entity entityIn)
protected float updateDistance(float p_110146_1_, float p_110146_2_)
public void livingTick()
protected void updateEntityActionState()
protected void collideWithNearbyEntities()
protected void updateSpinAttack(AxisAlignedBB p_204801_1_, AxisAlignedBB p_204801_2_)
protected void collideWithEntity(Entity entityIn)
protected void spinAttack(LivingEntity p_204804_1_)
public void startSpinAttack(int p_204803_1_)
public boolean isSpinAttacking()
public void stopRiding()
stopRiding
in class Entity
public void updateRidden()
updateRidden
in class Entity
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
in class Entity
public void setHeadRotation(float yaw, int pitch)
setHeadRotation
in class Entity
public void setJumping(boolean jumping)
public void onItemPickup(Entity entityIn, int quantity)
public boolean canEntityBeSeen(Entity entityIn)
public float getSwingProgress(float partialTickTime)
public boolean isServerWorld()
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
protected void markVelocityChanged()
markVelocityChanged
in class Entity
public float getRotationYawHead()
getRotationYawHead
in class Entity
public void setRotationYawHead(float rotation)
setRotationYawHead
in class Entity
public void setRenderYawOffset(float offset)
setRenderYawOffset
in class Entity
public float getAbsorptionAmount()
public void setAbsorptionAmount(float amount)
public void sendEnterCombat()
public void sendEndCombat()
protected void markPotionsDirty()
public abstract HandSide getPrimaryHand()
public boolean isHandActive()
public Hand getActiveHand()
protected void setLivingFlag(int key, boolean value)
public void setActiveHand(Hand hand)
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
in class Entity
public void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
protected void updateItemUse(ItemStack stack, int eatingParticleCount)
protected void onItemUseFinish()
public ItemStack getActiveItemStack()
public int getItemInUseCount()
public int getItemInUseMaxCount()
public void stopActiveHand()
public void resetActiveHand()
public boolean isActiveItemStackBlocking()
public boolean isElytraFlying()
public boolean func_213314_bj()
func_213314_bj
in class Entity
public int getTicksElytraFlying()
public boolean attemptTeleport(double p_213373_1_, double p_213373_3_, double p_213373_5_, boolean p_213373_7_)
public boolean canBeHitWithPotion()
public boolean attackable()
public void setPartying(BlockPos pos, boolean isPartying)
public boolean func_213365_e(ItemStack p_213365_1_)
public IPacket<?> createSpawnPacket()
createSpawnPacket
in class Entity
public EntitySize getSize(Pose poseIn)
public java.util.Optional<BlockPos> getBedPosition()
public void setBedPosition(BlockPos p_213369_1_)
public void clearBedPosition()
public boolean isSleeping()
public void startSleeping(BlockPos p_213342_1_)
public void wakeUp()
@Nullable public Direction getBedDirection()
public boolean isEntityInsideOpaqueBlock()
isEntityInsideOpaqueBlock
in class Entity
protected final float getEyeHeight(Pose p_213316_1_, EntitySize p_213316_2_)
getEyeHeight
in class Entity
protected float getStandingEyeHeight(Pose poseIn, EntitySize sizeIn)
public void sendBreakAnimation(EquipmentSlotType p_213361_1_)
public void sendBreakAnimation(Hand p_213334_1_)
public boolean curePotionEffects(ItemStack curativeItem)
curativeItem
- The itemstack we are using to cure potion effectspublic boolean shouldRiderFaceForward(PlayerEntity player)
player
- The player who is riding the entity.public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class CapabilityProvider<Entity>