Package net.minecraft.entity
Class LivingEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
ArmorStandEntity
,MobEntity
,PlayerEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private final Map<Effect,
EffectInstance> float
float
float
protected float
protected float
float
protected int
private final AttributeModifierManager
protected int
protected Brain<?>
private final CombatTracker
private static final DataParameter<Integer>
private static final DataParameter<Boolean>
private static final DataParameter<Integer>
private static final DataParameter<Float>
protected static final DataParameter<Byte>
private static final DataParameter<Integer>
protected boolean
protected int
int
private boolean
protected int
float
private final LazyOptional<?>[]
float
int
int
final int
protected boolean
private final NonNullList<ItemStack>
private DamageSource
private long
private final NonNullList<ItemStack>
protected float
private LivingEntity
private int
protected PlayerEntity
protected int
private LivingEntity
private int
private BlockPos
protected int
protected int
protected double
protected double
protected double
protected double
protected double
protected double
protected int
private int
float
protected float
int
int
final float
protected float
protected float
protected static final EntitySize
private static final DataParameter<Optional<BlockPos>>
private static final AttributeModifier
private static final UUID
private float
private static final UUID
private static final AttributeModifier
private static final UUID
private float
private float
boolean
int
final float
protected ItemStack
protected int
float
float
float
float
float
float
float
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ModifierConstructorDescriptionprotected
LivingEntity
(EntityType<? extends LivingEntity> p_i48577_1_, World p_i48577_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
actuallyHurt
(DamageSource p_70665_1_, float p_70665_2_) void
addAdditionalSaveData
(CompoundNBT p_213281_1_) private void
addEatEffect
(ItemStack p_213349_1_, World p_213349_2_, LivingEntity p_213349_3_) boolean
addEffect
(EffectInstance p_195064_1_) void
aiStep()
void
static boolean
areAllEffectsAmbient
(Collection<EffectInstance> p_184593_0_) boolean
void
baseTick()
protected void
blockedByShield
(LivingEntity p_213371_1_) protected void
blockUsingShield
(LivingEntity p_190629_1_) protected Brain.BrainCodec<?>
private void
void
broadcastBreakEvent
(EquipmentSlotType p_213361_1_) void
broadcastBreakEvent
(Hand p_213334_1_) void
calculateEntityAnimation
(LivingEntity p_233629_1_, boolean p_233629_2_) protected int
calculateFallDamage
(float p_225508_1_, float p_225508_2_) boolean
canAttack
(LivingEntity p_213336_1_) boolean
canAttack
(LivingEntity p_213344_1_, EntityPredicate p_213344_2_) boolean
canAttackType
(EntityType<?> p_213358_1_) boolean
canBeAffected
(EffectInstance p_70687_1_) boolean
boolean
boolean
boolean
canStandOnFluid
(Fluid p_230285_1_) boolean
canTakeItem
(ItemStack p_213365_1_) boolean
causeFallDamage
(float p_225503_1_, float p_225503_2_) protected void
checkAutoSpinAttack
(AxisAlignedBB p_204801_1_, AxisAlignedBB p_204801_2_) private boolean
protected void
checkFallDamage
(double p_184231_1_, boolean p_184231_3_, BlockState p_184231_4_, BlockPos p_184231_5_) private boolean
checkTotemDeathProtection
(DamageSource p_190628_1_) void
private Map<EquipmentSlotType,
ItemStack> protected void
protected LootContext.Builder
createLootContext
(boolean p_213363_1_, DamageSource p_213363_2_) protected void
createWitherRose
(LivingEntity p_226298_1_) boolean
curePotionEffects
(ItemStack curativeItem) Removes all potion effects that have curativeItem as a curative item for its effectprotected int
decreaseAirSupply
(int p_70682_1_) protected void
private void
void
die
(DamageSource p_70645_1_) private void
dismountVehicle
(Entity p_233628_1_) protected void
doAutoAttackOnTouch
(LivingEntity p_204804_1_) boolean
doHurtTarget
(Entity p_70652_1_) protected void
protected void
dropAllDeathLoot
(DamageSource p_213345_1_) protected void
dropCustomDeathLoot
(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_) protected void
protected void
protected void
dropFromLootTable
(DamageSource p_213354_1_, boolean p_213354_2_) private static byte
entityEventForEquipmentBreak
(EquipmentSlotType p_213350_0_) void
forceAddEffect
(EffectInstance p_233646_1_) float
IPacket<?>
float
int
final int
float
getAttackAnim
(float p_70678_1_) getAttribute
(Attribute p_110148_1_) double
getAttributeBaseValue
(Attribute p_233638_1_) double
getAttributeValue
(Attribute p_233637_1_) protected float
Brain<?>
getBrain()
<T> LazyOptional<T>
getCapability
(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.private int
protected float
getDamageAfterArmorAbsorb
(DamageSource p_70655_1_, float p_70655_2_) protected float
getDamageAfterMagicAbsorb
(DamageSource p_70672_1_, float p_70672_2_) protected SoundEvent
getDimensions
(Pose p_213305_1_) com.google.common.collect.ImmutableList<Pose>
protected SoundEvent
getDrinkingSound
(ItemStack p_213351_1_) getEatingSound
(ItemStack p_213353_1_) protected int
getExperienceReward
(PlayerEntity p_70693_1_) protected final float
getEyeHeight
(Pose p_213316_1_, EntitySize p_213316_2_) protected SoundEvent
getFallDamageSound
(int p_184588_1_) int
getFluidFallingAdjustedMovement
(double p_233626_1_, boolean p_233626_3_, Vector3d p_233626_4_) private float
getFrictionInfluencedSpeed
(float p_213335_1_) float
protected SoundEvent
getHurtSound
(DamageSource p_184601_1_) abstract ItemStack
getItemBySlot
(EquipmentSlotType p_184582_1_) getItemInHand
(Hand p_184586_1_) protected float
private ItemStack
getLastArmorItem
(EquipmentSlotType p_241346_1_) private ItemStack
getLastHandItem
(EquipmentSlotType p_241347_1_) int
int
getLocalBoundsForPose
(Pose p_233648_1_) abstract HandSide
final float
int
getProjectile
(ItemStack p_213356_1_) protected Vector3d
getRelativePortalPosition
(Direction.Axis p_241839_1_, TeleportationRepositioner.Result p_241839_2_) float
getScale()
protected float
float
getSpeed()
protected float
getStandingEyeHeight
(Pose p_213348_1_, EntitySize p_213348_2_) final int
float
getSwimAmount
(float p_205015_1_) int
int
float
getViewYRot
(float p_195046_1_) double
getVisibilityPercent
(Entity p_213340_1_) protected float
protected float
float
protected void
void
handleEntityEvent
(byte p_70103_1_) private void
handleEquipmentChanges
(Map<EquipmentSlotType, ItemStack> p_241344_1_) private void
handleHandSwap
(Map<EquipmentSlotType, ItemStack> p_241342_1_) private Vector3d
handleOnClimbable
(Vector3d p_213362_1_) handleRelativeFrictionAndCalculateMovement
(Vector3d p_233633_1_, float p_233633_2_) boolean
boolean
hasItemInSlot
(EquipmentSlotType p_190630_1_) void
heal
(float p_70691_1_) boolean
hurt
(DamageSource p_70097_1_, float p_70097_2_) protected void
hurtArmor
(DamageSource p_230294_1_, float p_230294_2_) protected void
hurtCurrentlyUsedShield
(float p_184590_1_) protected int
increaseAirSupply
(int p_207300_1_) protected void
protected boolean
boolean
boolean
isAlive()
protected boolean
boolean
boolean
isBaby()
boolean
private boolean
isDamageSourceBlocked
(DamageSource p_184583_1_) boolean
boolean
boolean
boolean
boolean
protected boolean
boolean
boolean
isInWall()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
protected void
protected void
jumpInLiquid
(ITag<Fluid> p_180466_1_) void
kill()
void
knockback
(float p_233627_1_, double p_233627_2_, double p_233627_4_) void
lerpHeadTo
(float p_208000_1_, int p_208000_2_) void
lerpTo
(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_) void
lookAt
(EntityAnchorArgument.Type p_200602_1_, Vector3d p_200602_2_) protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> p_213364_1_) protected void
markHurt()
protected void
onChangedBlock
(BlockPos p_184594_1_) boolean
protected void
onEffectAdded
(EffectInstance p_70670_1_) protected void
onEffectRemoved
(EffectInstance p_70688_1_) protected void
onEffectUpdated
(EffectInstance p_70695_1_, boolean p_70695_2_) void
void
onItemPickup
(ItemEntity p_233630_1_) void
protected boolean
void
onSyncedDataUpdated
(DataParameter<?> p_184206_1_) protected void
protected void
protected void
playEquipSound
(ItemStack p_184606_1_) protected void
playHurtSound
(DamageSource p_184581_1_) void
protected void
boolean
randomTeleport
(double p_213373_1_, double p_213373_3_, double p_213373_5_, boolean p_213373_7_) void
readAdditionalSaveData
(CompoundNBT p_70037_1_) void
boolean
boolean
removeEffect
(Effect p_195063_1_) removeEffectNoUpdate
(Effect p_184596_1_) protected void
protected void
static Vector3d
resetForwardDirectionOfRelativePortalPosition
(Vector3d p_242288_0_) boolean
void
rideTick()
protected void
void
setAbsorptionAmount
(float p_110149_1_) final void
setArrowCount
(int p_85034_1_) void
setHealth
(float p_70606_1_) void
setItemInHand
(Hand p_184611_1_, ItemStack p_184611_2_) abstract void
setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) void
setJumping
(boolean p_70637_1_) private void
setLastArmorItem
(EquipmentSlotType p_241343_1_, ItemStack p_241343_2_) private void
setLastHandItem
(EquipmentSlotType p_241345_1_, ItemStack p_241345_2_) void
setLastHurtByMob
(LivingEntity p_70604_1_) void
setLastHurtByPlayer
(PlayerEntity p_230246_1_) void
setLastHurtMob
(Entity p_130011_1_) protected void
setLivingEntityFlag
(int p_204802_1_, boolean p_204802_2_) void
setNoActionTime
(int p_213332_1_) void
setOnGround
(boolean p_230245_1_) private void
setPosToBed
(BlockPos p_213370_1_) void
setRecordPlayingNearby
(BlockPos p_191987_1_, boolean p_191987_2_) void
setSleepingPos
(BlockPos p_213369_1_) void
setSpeed
(float p_70659_1_) void
setSprinting
(boolean p_70031_1_) final void
setStingerCount
(int p_226300_1_) void
setYBodyRot
(float p_181013_1_) void
setYHeadRot
(float p_70034_1_) protected boolean
protected boolean
protected boolean
shouldRemoveSoulSpeed
(BlockState p_230295_1_) boolean
shouldRiderFaceForward
(PlayerEntity player) Returns true if the entity's rider (EntityPlayer) should face forward when mounted.boolean
private boolean
private void
spawnItemParticles
(ItemStack p_195062_1_, int p_195062_2_) protected void
void
startAutoSpinAttack
(int p_204803_1_) void
startSleeping
(BlockPos p_213342_1_) void
startUsingItem
(Hand p_184598_1_) void
void
void
private void
void
void
void
void
tick()
protected void
protected void
protected float
tickHeadTurn
(float p_110146_1_, float p_110146_2_) private boolean
trapdoorUsableAsLadder
(BlockPos p_184604_1_, BlockState p_184604_2_) void
protected void
triggerItemUseEffects
(ItemStack p_226293_1_, int p_226293_2_) protected void
protected void
private void
protected void
private void
protected void
private void
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
SPEED_MODIFIER_SPRINTING_UUID
-
SPEED_MODIFIER_SOUL_SPEED_UUID
-
SLOW_FALLING_ID
-
SPEED_MODIFIER_SPRINTING
-
SLOW_FALLING
-
DATA_LIVING_ENTITY_FLAGS
-
DATA_HEALTH_ID
-
DATA_EFFECT_COLOR_ID
-
DATA_EFFECT_AMBIENCE_ID
-
DATA_ARROW_COUNT_ID
-
DATA_STINGER_COUNT_ID
-
SLEEPING_POS_ID
-
SLEEPING_DIMENSIONS
-
attributes
-
combatTracker
-
activeEffects
-
lastHandItemStacks
-
lastArmorItemStacks
-
swinging
public boolean swinging -
swingingArm
-
swingTime
public int swingTime -
removeArrowTime
public int removeArrowTime -
removeStingerTime
public int removeStingerTime -
hurtTime
public int hurtTime -
hurtDuration
public int hurtDuration -
hurtDir
public float hurtDir -
deathTime
public int deathTime -
oAttackAnim
public float oAttackAnim -
attackAnim
public float attackAnim -
attackStrengthTicker
protected int attackStrengthTicker -
animationSpeedOld
public float animationSpeedOld -
animationSpeed
public float animationSpeed -
animationPosition
public float animationPosition -
invulnerableDuration
public final int invulnerableDuration- See Also:
-
timeOffs
public final float timeOffs -
rotA
public final float rotA -
yBodyRot
public float yBodyRot -
yBodyRotO
public float yBodyRotO -
yHeadRot
public float yHeadRot -
yHeadRotO
public float yHeadRotO -
flyingSpeed
public float flyingSpeed -
lastHurtByPlayer
-
lastHurtByPlayerTime
protected int lastHurtByPlayerTime -
dead
protected boolean dead -
noActionTime
protected int noActionTime -
oRun
protected float oRun -
run
protected float run -
animStep
protected float animStep -
animStepO
protected float animStepO -
rotOffs
protected float rotOffs -
deathScore
protected int deathScore -
lastHurt
protected float lastHurt -
jumping
protected boolean jumping -
xxa
public float xxa -
yya
public float yya -
zza
public float zza -
lerpSteps
protected int lerpSteps -
lerpX
protected double lerpX -
lerpY
protected double lerpY -
lerpZ
protected double lerpZ -
lerpYRot
protected double lerpYRot -
lerpXRot
protected double lerpXRot -
lyHeadRot
protected double lyHeadRot -
lerpHeadSteps
protected int lerpHeadSteps -
effectsDirty
private boolean effectsDirty -
lastHurtByMob
-
lastHurtByMobTimestamp
private int lastHurtByMobTimestamp -
lastHurtMob
-
lastHurtMobTimestamp
private int lastHurtMobTimestamp -
speed
private float speed -
noJumpDelay
private int noJumpDelay -
absorptionAmount
private float absorptionAmount -
useItem
-
useItemRemaining
protected int useItemRemaining -
fallFlyTicks
protected int fallFlyTicks -
lastPos
-
lastClimbablePos
-
lastDamageSource
-
lastDamageStamp
private long lastDamageStamp -
autoSpinAttackTicks
protected int autoSpinAttackTicks -
swimAmount
private float swimAmount -
swimAmountO
private float swimAmountO -
brain
-
handlers
-
-
Constructor Details
-
LivingEntity
-
-
Method Details
-
getBrain
-
brainProvider
-
makeBrain
-
kill
public void kill() -
canAttackType
-
defineSynchedData
protected void defineSynchedData()- Specified by:
defineSynchedData
in classEntity
-
createLivingAttributes
-
checkFallDamage
protected void checkFallDamage(double p_184231_1_, boolean p_184231_3_, BlockState p_184231_4_, BlockPos p_184231_5_) - Overrides:
checkFallDamage
in classEntity
-
canBreatheUnderwater
public boolean canBreatheUnderwater() -
getSwimAmount
public float getSwimAmount(float p_205015_1_) -
baseTick
public void baseTick() -
canSpawnSoulSpeedParticle
public boolean canSpawnSoulSpeedParticle() -
spawnSoulSpeedParticle
protected void spawnSoulSpeedParticle() -
onSoulSpeedBlock
protected boolean onSoulSpeedBlock() -
getBlockSpeedFactor
protected float getBlockSpeedFactor()- Overrides:
getBlockSpeedFactor
in classEntity
-
shouldRemoveSoulSpeed
-
removeSoulSpeed
protected void removeSoulSpeed() -
tryAddSoulSpeed
protected void tryAddSoulSpeed() -
onChangedBlock
-
isBaby
public boolean isBaby() -
getScale
public float getScale() -
isAffectedByFluids
protected boolean isAffectedByFluids() -
rideableUnderWater
public boolean rideableUnderWater()- Overrides:
rideableUnderWater
in classEntity
-
tickDeath
protected void tickDeath() -
shouldDropExperience
protected boolean shouldDropExperience() -
shouldDropLoot
protected boolean shouldDropLoot() -
decreaseAirSupply
protected int decreaseAirSupply(int p_70682_1_) -
increaseAirSupply
protected int increaseAirSupply(int p_207300_1_) -
getExperienceReward
-
isAlwaysExperienceDropper
protected boolean isAlwaysExperienceDropper() -
getRandom
-
getLastHurtByMob
-
getLastHurtByMobTimestamp
public int getLastHurtByMobTimestamp() -
setLastHurtByPlayer
-
setLastHurtByMob
-
getLastHurtMob
-
getLastHurtMobTimestamp
public int getLastHurtMobTimestamp() -
setLastHurtMob
-
getNoActionTime
public int getNoActionTime() -
setNoActionTime
public void setNoActionTime(int p_213332_1_) -
playEquipSound
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classEntity
-
readAdditionalSaveData
- Specified by:
readAdditionalSaveData
in classEntity
-
tickEffects
protected void tickEffects() -
updateInvisibilityStatus
protected void updateInvisibilityStatus() -
getVisibilityPercent
-
canAttack
-
canAttack
-
areAllEffectsAmbient
-
removeEffectParticles
protected void removeEffectParticles() -
removeAllEffects
public boolean removeAllEffects() -
getActiveEffects
-
getActiveEffectsMap
-
hasEffect
-
getEffect
-
addEffect
-
canBeAffected
-
forceAddEffect
-
isInvertedHealAndHarm
public boolean isInvertedHealAndHarm() -
removeEffectNoUpdate
-
removeEffect
-
onEffectAdded
-
onEffectUpdated
-
onEffectRemoved
-
heal
public void heal(float p_70691_1_) -
getHealth
public float getHealth() -
setHealth
public void setHealth(float p_70606_1_) -
isDeadOrDying
public boolean isDeadOrDying() -
hurt
-
blockUsingShield
-
blockedByShield
-
checkTotemDeathProtection
-
getLastDamageSource
-
playHurtSound
-
isDamageSourceBlocked
-
breakItem
-
die
-
createWitherRose
-
dropAllDeathLoot
-
dropEquipment
protected void dropEquipment() -
dropExperience
protected void dropExperience() -
dropCustomDeathLoot
-
getLootTable
-
dropFromLootTable
-
createLootContext
-
knockback
public void knockback(float p_233627_1_, double p_233627_2_, double p_233627_4_) -
getHurtSound
-
getDeathSound
-
getFallDamageSound
-
getDrinkingSound
-
getEatingSound
-
setOnGround
public void setOnGround(boolean p_230245_1_) - Overrides:
setOnGround
in classEntity
-
getLastClimbablePos
-
onClimbable
public boolean onClimbable() -
getFeetBlockState
-
trapdoorUsableAsLadder
-
isAlive
public boolean isAlive() -
causeFallDamage
public boolean causeFallDamage(float p_225503_1_, float p_225503_2_) - Overrides:
causeFallDamage
in classEntity
-
calculateFallDamage
protected int calculateFallDamage(float p_225508_1_, float p_225508_2_) -
playBlockFallSound
protected void playBlockFallSound() -
animateHurt
public void animateHurt()- Overrides:
animateHurt
in classEntity
-
getArmorValue
public int getArmorValue() -
hurtArmor
-
hurtCurrentlyUsedShield
protected void hurtCurrentlyUsedShield(float p_184590_1_) -
getDamageAfterArmorAbsorb
-
getDamageAfterMagicAbsorb
-
actuallyHurt
-
getCombatTracker
-
getKillCredit
-
getMaxHealth
public final float getMaxHealth() -
getArrowCount
public final int getArrowCount() -
setArrowCount
public final void setArrowCount(int p_85034_1_) -
getStingerCount
public final int getStingerCount() -
setStingerCount
public final void setStingerCount(int p_226300_1_) -
getCurrentSwingDuration
private int getCurrentSwingDuration() -
swing
-
swing
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEvent
in classEntity
-
swapHandItems
private void swapHandItems() -
outOfWorld
protected void outOfWorld()- Overrides:
outOfWorld
in classEntity
-
updateSwingTime
protected void updateSwingTime() -
getAttribute
-
getAttributeValue
-
getAttributeBaseValue
-
getAttributes
-
getMobType
-
getMainHandItem
-
getOffhandItem
-
isHolding
-
isHolding
-
getItemInHand
-
setItemInHand
-
hasItemInSlot
-
getArmorSlots
- Overrides:
getArmorSlots
in classEntity
-
getItemBySlot
-
setItemSlot
- Overrides:
setItemSlot
in classEntity
-
getArmorCoverPercentage
public float getArmorCoverPercentage() -
setSprinting
public void setSprinting(boolean p_70031_1_) - Overrides:
setSprinting
in classEntity
-
getSoundVolume
protected float getSoundVolume() -
getVoicePitch
protected float getVoicePitch() -
isImmobile
protected boolean isImmobile() -
push
-
dismountVehicle
-
shouldShowName
public boolean shouldShowName()- Overrides:
shouldShowName
in classEntity
-
getJumpPower
protected float getJumpPower() -
jumpFromGround
protected void jumpFromGround() -
goDownInWater
protected void goDownInWater() -
jumpInLiquid
-
getWaterSlowDown
protected float getWaterSlowDown() -
canStandOnFluid
-
travel
-
calculateEntityAnimation
-
handleRelativeFrictionAndCalculateMovement
-
getFluidFallingAdjustedMovement
-
handleOnClimbable
-
getFrictionInfluencedSpeed
private float getFrictionInfluencedSpeed(float p_213335_1_) -
getSpeed
public float getSpeed() -
setSpeed
public void setSpeed(float p_70659_1_) -
doHurtTarget
-
tick
public void tick() -
detectEquipmentUpdates
private void detectEquipmentUpdates() -
collectEquipmentChanges
-
handleHandSwap
-
handleEquipmentChanges
-
getLastArmorItem
-
setLastArmorItem
-
getLastHandItem
-
setLastHandItem
-
tickHeadTurn
protected float tickHeadTurn(float p_110146_1_, float p_110146_2_) -
aiStep
public void aiStep() -
isSensitiveToWater
public boolean isSensitiveToWater() -
updateFallFlying
private void updateFallFlying() -
serverAiStep
protected void serverAiStep() -
pushEntities
protected void pushEntities() -
checkAutoSpinAttack
-
doPush
-
doAutoAttackOnTouch
-
startAutoSpinAttack
public void startAutoSpinAttack(int p_204803_1_) -
isAutoSpinAttack
public boolean isAutoSpinAttack() -
stopRiding
public void stopRiding()- Overrides:
stopRiding
in classEntity
-
rideTick
public void rideTick() -
lerpTo
public void lerpTo(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_) -
lerpHeadTo
public void lerpHeadTo(float p_208000_1_, int p_208000_2_) - Overrides:
lerpHeadTo
in classEntity
-
setJumping
public void setJumping(boolean p_70637_1_) -
onItemPickup
-
take
-
canSee
-
getViewYRot
public float getViewYRot(float p_195046_1_) - Overrides:
getViewYRot
in classEntity
-
getAttackAnim
public float getAttackAnim(float p_70678_1_) -
isEffectiveAi
public boolean isEffectiveAi() -
isPickable
public boolean isPickable()- Overrides:
isPickable
in classEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classEntity
-
markHurt
protected void markHurt() -
getYHeadRot
public float getYHeadRot()- Overrides:
getYHeadRot
in classEntity
-
setYHeadRot
public void setYHeadRot(float p_70034_1_) - Overrides:
setYHeadRot
in classEntity
-
setYBodyRot
public void setYBodyRot(float p_181013_1_) - Overrides:
setYBodyRot
in classEntity
-
getRelativePortalPosition
protected Vector3d getRelativePortalPosition(Direction.Axis p_241839_1_, TeleportationRepositioner.Result p_241839_2_) - Overrides:
getRelativePortalPosition
in classEntity
-
resetForwardDirectionOfRelativePortalPosition
-
getAbsorptionAmount
public float getAbsorptionAmount() -
setAbsorptionAmount
public void setAbsorptionAmount(float p_110149_1_) -
onEnterCombat
public void onEnterCombat() -
onLeaveCombat
public void onLeaveCombat() -
updateEffectVisibility
protected void updateEffectVisibility() -
getMainArm
-
isUsingItem
public boolean isUsingItem() -
getUsedItemHand
-
updatingUsingItem
private void updatingUsingItem() -
shouldTriggerItemUseEffects
private boolean shouldTriggerItemUseEffects() -
updateSwimAmount
private void updateSwimAmount() -
setLivingEntityFlag
protected void setLivingEntityFlag(int p_204802_1_, boolean p_204802_2_) -
startUsingItem
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdated
in classEntity
-
lookAt
-
triggerItemUseEffects
-
spawnItemParticles
-
completeUsingItem
protected void completeUsingItem() -
getUseItem
-
getUseItemRemainingTicks
public int getUseItemRemainingTicks() -
getTicksUsingItem
public int getTicksUsingItem() -
releaseUsingItem
public void releaseUsingItem() -
stopUsingItem
public void stopUsingItem() -
isBlocking
public boolean isBlocking() -
isSuppressingSlidingDownLadder
public boolean isSuppressingSlidingDownLadder() -
isFallFlying
public boolean isFallFlying() -
isVisuallySwimming
public boolean isVisuallySwimming()- Overrides:
isVisuallySwimming
in classEntity
-
getFallFlyingTicks
public int getFallFlyingTicks() -
randomTeleport
public boolean randomTeleport(double p_213373_1_, double p_213373_3_, double p_213373_5_, boolean p_213373_7_) -
isAffectedByPotions
public boolean isAffectedByPotions() -
attackable
public boolean attackable() -
setRecordPlayingNearby
-
canTakeItem
-
getAddEntityPacket
- Specified by:
getAddEntityPacket
in classEntity
-
getDimensions
- Overrides:
getDimensions
in classEntity
-
getDismountPoses
-
getLocalBoundsForPose
-
getSleepingPos
-
setSleepingPos
-
clearSleepingPos
public void clearSleepingPos() -
isSleeping
public boolean isSleeping() -
startSleeping
-
setPosToBed
-
checkBedExists
private boolean checkBedExists() -
stopSleeping
public void stopSleeping() -
getBedOrientation
-
isInWall
public boolean isInWall() -
getEyeHeight
- Overrides:
getEyeHeight
in classEntity
-
getStandingEyeHeight
-
getProjectile
-
eat
-
addEatEffect
-
entityEventForEquipmentBreak
-
broadcastBreakEvent
-
broadcastBreakEvent
-
curePotionEffects
Removes all potion effects that have curativeItem as a curative item for its effect- Parameters:
curativeItem
- The itemstack we are using to cure potion effects
-
shouldRiderFaceForward
Returns true if the entity's rider (EntityPlayer) should face forward when mounted. currently only used in vanilla code by pigs.- Parameters:
player
- The player who is riding the entity.- Returns:
- If the player should orient the same direction as this entity.
-
getCapability
Description copied from interface:ICapabilityProvider
Retrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- Specified by:
getCapability
in interfaceICapabilityProvider
- Overrides:
getCapability
in classCapabilityProvider<Entity>
- Returns:
- The requested an optional holding the requested capability.
-
invalidateCaps
protected void invalidateCaps()- Overrides:
invalidateCaps
in classCapabilityProvider<Entity>
-
getBoundingBoxForCulling
- Overrides:
getBoundingBoxForCulling
in classEntity
-