Package net.minecraft.world.entity
Class LivingEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
- All Implemented Interfaces:
- CommandSource,- SyncedDataHolder,- Attackable,- EntityAccess,- Nameable,- ScoreHolder,- IAttachmentHolder,- IEntityExtension,- ILivingEntityExtension,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- ArmorStand,- EntityRendererEventsTest.MyEntity,- Mob,- Player
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate floatprivate final Map<Holder<MobEffect>, MobEffectInstance> private final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>> protected floatprotected floatprotected floatstatic final intstatic final intfloatprotected intprivate final AttributeMapstatic final Stringprotected floatprotected ItemStackprotected intstatic final floatstatic final intprotected Brain<?> private final CombatTrackerprivate static final intprivate static final EntityDataAccessor<Integer> private static final EntityDataAccessor<Boolean> private static final EntityDataAccessor<List<ParticleOptions>> private static final EntityDataAccessor<Float> protected static final EntityDataAccessor<Byte> private static final EntityDataAccessor<Integer> protected booleanstatic final intprotected intintstatic final floatstatic final doubleprivate booleanprivate booleanstatic final intstatic final floatprotected intprivate static final intstatic final intintintfinal intprivate static final floatprotected booleanprivate final NonNullList<ItemStack> private ItemStackprivate DamageSourceprivate longprivate final NonNullList<ItemStack> protected floatprivate LivingEntityprivate intprotected Playerprotected intprivate LivingEntityprivate intprivate BlockPosprotected intprotected intprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected static final intprotected static final intprotected static final intprivate static final org.slf4j.Loggerprivate static final doublestatic final doubleprotected intprivate intfloatprotected floatprivate static final intstatic final intintintfinal floatprotected floatprotected floatprivate booleanprotected static final EntityDimensionsprivate static final EntityDataAccessor<Optional<BlockPos>> private floatprivate static final ResourceLocationprivate static final AttributeModifierprivate static final ResourceLocationprivate floatprivate floatstatic final intbooleanintprivate static final Stringprivate static final intfinal floatstatic final intprotected ItemStackprotected intfinal WalkAnimationStatefloatfloatfloatfloatfloatfloatfloatFields inherited from class net.minecraft.world.entity.EntityBASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.commands.CommandSourceNULLFields inherited from interface net.minecraft.world.scores.ScoreHolderWILDCARD, WILDCARD_NAME
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLivingEntity(EntityType<? extends LivingEntity> p_20966_, Level p_20967_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidactuallyHurt(DamageSource p_21240_, float p_21241_) voidaddAdditionalSaveData(CompoundTag p_21145_) private voidaddEatEffect(FoodProperties p_335472_) final booleanaddEffect(MobEffectInstance p_21165_) booleanaddEffect(MobEffectInstance p_147208_, Entity p_147209_) voidaiStep()voidanimateHurt(float p_265265_) static booleanareAllEffectsAmbient(Collection<MobEffectInstance> p_21180_) booleanvoidbaseTick()protected voidblockedByShield(LivingEntity p_21246_) protected voidblockUsingShield(LivingEntity p_21200_) protected Brain.Provider<?> private voidvoidcalculateEntityAnimation(boolean p_268129_) protected intcalculateFallDamage(float p_21237_, float p_21238_) booleancanAttack(LivingEntity p_21171_) booleancanAttack(LivingEntity p_21041_, TargetingConditions p_21042_) booleancanAttackType(EntityType<?> p_21032_) booleancanBeAffected(MobEffectInstance p_21197_) Deprecated.booleanbooleanfinal booleanDeprecated.booleanbooleanbooleancanStandOnFluid(FluidState p_204042_) booleancanTakeItem(ItemStack p_21249_) booleancanUsePortal(boolean p_352946_) booleancanUseSlot(EquipmentSlot p_326058_) booleancauseFallDamage(float p_147187_, float p_147188_, DamageSource p_147189_) protected voidcheckAutoSpinAttack(AABB p_21072_, AABB p_21073_) private booleanprotected voidcheckFallDamage(double p_20990_, boolean p_20991_, BlockState p_20992_, BlockPos p_20993_) private booleancheckTotemDeathProtection(DamageSource p_21263_) voidprivate Map<EquipmentSlot, ItemStack> protected voidprivate static SlotAccesscreateEquipmentSlotAccess(LivingEntity p_147196_, EquipmentSlot p_147197_) static AttributeSupplier.Builderprotected voidcreateWitherRose(LivingEntity p_21269_) protected intdecreaseAirSupply(int p_21303_) protected voiddefineSynchedData(SynchedEntityData.Builder p_326178_) private voidvoiddie(DamageSource p_21014_) private voiddismountVehicle(Entity p_21029_) protected voiddoAutoAttackOnTouch(LivingEntity p_21277_) protected booleandoesEmitEquipEvent(EquipmentSlot p_217035_) protected voiddoHurtEquipment(DamageSource p_330843_, float p_330394_, EquipmentSlot... p_331314_) booleandoHurtTarget(Entity p_20970_) protected voidprotected voiddropAllDeathLoot(ServerLevel p_348524_, DamageSource p_21192_) protected voiddropCustomDeathLoot(ServerLevel p_348639_, DamageSource p_21018_, boolean p_21020_) protected voidprotected voiddropExperience(Entity p_345346_) protected voiddropFromLootTable(DamageSource p_21021_, boolean p_21022_) final ItemStackeat(Level p_347678_, ItemStack p_347507_, FoodProperties p_347707_) private static byteentityEventForEquipmentBreak(EquipmentSlot p_21267_) booleanequipmentHasChanged(ItemStack p_252265_, ItemStack p_251043_) voidforceAddEffect(MobEffectInstance p_147216_, Entity p_147217_) floatfloatfloatintfinal intfloatgetAttackAnim(float p_21325_) getAttribute(Holder<Attribute> p_316333_) doublegetAttributeBaseValue(Holder<Attribute> p_248605_) doublegetAttributeValue(Holder<Attribute> p_251296_) protected intprotected floatBrain<?> getBrain()protected final intgetComfortableFallDistance(float p_326294_) private intprotected floatgetDamageAfterArmorAbsorb(DamageSource p_21162_, float p_21163_) protected floatgetDamageAfterMagicAbsorb(DamageSource p_21193_, float p_21194_) protected SoundEventprotected EntityDimensionsgetDefaultDimensions(Pose p_316700_) protected doublefinal EntityDimensionsgetDimensions(Pose p_21047_) com.google.common.collect.ImmutableList<Pose> protected SoundEventgetDrinkingSound(ItemStack p_21174_) getEatingSound(ItemStack p_21202_) private static EquipmentSlotgetEquipmentSlot(int p_147212_) getEquipmentSlotForItem(ItemStack p_147234_) final intgetExperienceReward(ServerLevel p_345212_, Entity p_345512_) private SoundEventgetFallDamageSound(int p_21313_) intgetFluidFallingAdjustedMovement(double p_20995_, boolean p_20996_, Vec3 p_20997_) protected floatprivate floatgetFrictionInfluencedSpeed(float p_21331_) floatprotected AABBfloatprotected SoundEventgetHurtSound(DamageSource p_21239_) abstract ItemStackgetItemBySlot(EquipmentSlot p_21127_) getItemInHand(InteractionHand p_21121_) floatprotected floatprotected floatgetJumpPower(float p_326107_) protected floatgetKnockback(Entity p_344813_, DamageSource p_344976_) private ItemStackgetLastArmorItem(EquipmentSlot p_21199_) private ItemStackgetLastHandItem(EquipmentSlot p_21245_) intintgetLocalBoundsForPose(Pose p_21271_) longabstract HumanoidArmfinal floatintprotected floatfinal floatintgetPassengerRidingPosition(Entity p_295664_) floatgetPreciseBodyRotation(float p_352089_) getProjectile(ItemStack p_21272_) getRelativePortalPosition(Direction.Axis p_21085_, BlockUtil.FoundRectangle p_21086_) protected Vec3getRiddenInput(Player p_278326_, Vec3 p_275300_) protected floatgetRiddenSpeed(Player p_278286_) floatgetScale()getSlot(int p_147238_) static EquipmentSlotgetSlotForHand(InteractionHand p_320526_) protected floatfloatgetSpeed()final intfloatgetSwimAmount(float p_20999_) intintfloatgetViewYRot(float p_21286_) doublegetVisibilityPercent(Entity p_20969_) floatfloatprotected floatfloatprotected voidDeprecated.voidhandleDamageEvent(DamageSource p_270229_) voidhandleEntityEvent(byte p_20975_) private voidhandleEquipmentChanges(Map<EquipmentSlot, ItemStack> p_21143_) private voidhandleHandSwap(Map<EquipmentSlot, ItemStack> p_21092_) private Vec3handleOnClimbable(Vec3 p_21298_) handleRelativeFrictionAndCalculateMovement(Vec3 p_21075_, float p_21076_) booleanbooleanbooleanhasItemInSlot(EquipmentSlot p_21034_) booleanbooleanhasLineOfSight(Entity p_147185_) voidheal(float p_21116_) booleanhurt(DamageSource p_21016_, float p_21017_) protected voidhurtArmor(DamageSource p_21122_, float p_21123_) protected voidhurtCurrentlyUsedShield(float p_21316_) protected voidhurtHelmet(DamageSource p_147213_, float p_147214_) voidigniteForTicks(int p_319861_) protected intincreaseAirSupply(int p_21307_) voidindicateDamage(double p_270514_, double p_270826_) protected voidinternalSetAbsorptionAmount(float p_295258_) protected booleanbooleanbooleanisAlive()protected booleanbooleanbooleanisBaby()booleanbooleanbooleanisDamageSourceBlocked(DamageSource p_21276_) booleanbooleanbooleanbooleanprotected booleanbooleanbooleanisInvulnerableTo(DamageSource p_345073_) booleanisInWall()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidprotected voidjumpInLiquid(TagKey<Fluid> p_204043_) Deprecated.voidkill()voidknockback(double p_147241_, double p_147242_, double p_147243_) protected voidlerpHeadRotationStep(int p_296134_, double p_296397_) voidlerpHeadTo(float p_21005_, int p_21006_) doublefloatdoublefloatdoublevoidlerpTo(double p_20977_, double p_20978_, double p_20979_, float p_20980_, float p_20981_, int p_20982_) voidlookAt(EntityAnchorArgument.Anchor p_21078_, Vec3 p_21079_) protected Brain<?> makeBrain(com.mojang.serialization.Dynamic<?> p_21069_) private voidvoidmakeSound(SoundEvent p_320810_) floatprivate voidonAttributeUpdated(Holder<Attribute> p_316778_) protected voidprotected voidonChangedBlock(ServerLevel p_345126_, BlockPos p_21175_) booleanprotected voidonEffectAdded(MobEffectInstance p_147190_, Entity p_147191_) protected voidonEffectRemoved(MobEffectInstance p_21126_) protected voidonEffectUpdated(MobEffectInstance p_147192_, boolean p_147193_, Entity p_147194_) voidvoidonEquipItem(EquipmentSlot p_238393_, ItemStack p_238394_, ItemStack p_238395_) voidonEquippedItemBroken(Item p_348620_, EquipmentSlot p_348655_) voidonItemPickup(ItemEntity p_21054_) voidvoidonSyncedDataUpdated(EntityDataAccessor<?> p_21104_) protected voidprotected voidplayHurtSound(DamageSource p_21160_) voidprotected voidbooleanrandomTeleport(double p_20985_, double p_20986_, double p_20987_, boolean p_20988_) voidreadAdditionalSaveData(CompoundTag p_21096_) voidrecreateFromPacket(ClientboundAddEntityPacket p_217037_) private voidvoidvoidremove(Entity.RemovalReason p_276115_) booleanbooleanremoveEffect(Holder<MobEffect> p_316570_) removeEffectNoUpdate(Holder<MobEffect> p_316233_) protected voidbooleanRemoves all potion effects that have the givenEffectCurein their set of curesprotected voidstatic Vec3voidrideTick()protected floatsanitizeScale(float p_320290_) voidsendEffectToPassengers(MobEffectInstance p_289695_) protected voidfinal voidsetAbsorptionAmount(float p_21328_) final voidsetArrowCount(int p_21318_) voidsetDiscardFriction(boolean p_147245_) voidsetHealth(float p_21154_) voidsetItemInHand(InteractionHand p_21009_, ItemStack p_21010_) abstract voidsetItemSlot(EquipmentSlot p_21036_, ItemStack p_21037_) voidsetJumping(boolean p_21314_) private voidsetLastArmorItem(EquipmentSlot p_21129_, ItemStack p_21130_) private voidsetLastHandItem(EquipmentSlot p_21169_, ItemStack p_21170_) voidsetLastHurtByMob(LivingEntity p_21039_) voidsetLastHurtByPlayer(Player p_21248_) voidsetLastHurtMob(Entity p_21336_) protected voidsetLivingEntityFlag(int p_21156_, boolean p_21157_) voidsetNoActionTime(int p_21311_) private voidsetPosToBed(BlockPos p_21081_) voidsetRecordPlayingNearby(BlockPos p_21082_, boolean p_21083_) voidsetSleepingPos(BlockPos p_21251_) voidsetSpeed(float p_21320_) voidsetSprinting(boolean p_21284_) final voidsetStingerCount(int p_21322_) voidsetYBodyRot(float p_21309_) voidsetYHeadRot(float p_21306_) booleanbooleanprotected booleanbooleanshouldRiderFaceForward(Player player) Returns true if the entity's rider (EntityPlayer) should face forward when mounted.booleanprivate booleanvoidprivate voidspawnItemParticles(ItemStack p_21061_, int p_21062_) voidstartSleeping(BlockPos p_21141_) voidstartUsingItem(InteractionHand p_21159_) voidvoidvoidprivate voidvoidswing(InteractionHand p_21007_) voidswing(InteractionHand p_21012_, boolean p_21013_) voidvoidtick()protected voidprotected voidprotected floattickHeadTurn(float p_21260_, float p_21261_) protected voidtickRidden(Player p_278262_, Vec3 p_275242_) private booleantrapdoorUsableAsLadder(BlockPos p_21177_, BlockState p_21178_) voidprivate voidtravelRidden(Player p_278244_, Vec3 p_278231_) protected voidtriggerItemUseEffects(ItemStack p_21138_, int p_21139_) protected voidtriggerOnDeathMobEffects(Entity.RemovalReason p_350496_) protected voidprotected voidprivate voidprivate voidprotected voidprivate voidprotected voidprivate voidprotected voidupdateUsingItem(ItemStack p_147201_) protected voidupdateWalkAnimation(float p_268283_) private voidprotected voidverifyEquippedItem(ItemStack p_181123_) booleanprotected booleanwouldNotSuffocateAtTargetPose(Pose p_294977_) Methods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderdeserializeAttachments, getData, getExistingData, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtensioncanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, sendPairingData, serializeNBT, shouldRiderSitMethods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtensioncanDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraft.world.scores.ScoreHoldergetFeedbackDisplayName
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
TAG_ACTIVE_EFFECTS- See Also:
 
- 
SPEED_MODIFIER_POWDER_SNOW_ID
- 
SPRINTING_MODIFIER_ID
- 
SPEED_MODIFIER_SPRINTING
- 
HAND_SLOTSpublic static final int HAND_SLOTS- See Also:
 
- 
ARMOR_SLOTSpublic static final int ARMOR_SLOTS- See Also:
 
- 
EQUIPMENT_SLOT_OFFSETpublic static final int EQUIPMENT_SLOT_OFFSET- See Also:
 
- 
ARMOR_SLOT_OFFSETpublic static final int ARMOR_SLOT_OFFSET- See Also:
 
- 
BODY_ARMOR_OFFSETpublic static final int BODY_ARMOR_OFFSET- See Also:
 
- 
SWING_DURATIONpublic static final int SWING_DURATION- See Also:
 
- 
PLAYER_HURT_EXPERIENCE_TIMEpublic static final int PLAYER_HURT_EXPERIENCE_TIME- See Also:
 
- 
DAMAGE_SOURCE_TIMEOUTprivate static final int DAMAGE_SOURCE_TIMEOUT- See Also:
 
- 
MIN_MOVEMENT_DISTANCEpublic static final double MIN_MOVEMENT_DISTANCE- See Also:
 
- 
DEFAULT_BASE_GRAVITYpublic static final double DEFAULT_BASE_GRAVITY- See Also:
 
- 
DEATH_DURATIONpublic static final int DEATH_DURATION- See Also:
 
- 
TICKS_PER_ELYTRA_FREE_FALL_EVENTprivate static final int TICKS_PER_ELYTRA_FREE_FALL_EVENT- See Also:
 
- 
FREE_FALL_EVENTS_PER_ELYTRA_BREAKprivate static final int FREE_FALL_EVENTS_PER_ELYTRA_BREAK- See Also:
 
- 
USE_ITEM_INTERVALpublic static final int USE_ITEM_INTERVAL- See Also:
 
- 
BASE_JUMP_POWERpublic static final float BASE_JUMP_POWER- See Also:
 
- 
MAX_LINE_OF_SIGHT_TEST_RANGEprivate static final double MAX_LINE_OF_SIGHT_TEST_RANGE- See Also:
 
- 
LIVING_ENTITY_FLAG_IS_USINGprotected static final int LIVING_ENTITY_FLAG_IS_USING- See Also:
 
- 
LIVING_ENTITY_FLAG_OFF_HANDprotected static final int LIVING_ENTITY_FLAG_OFF_HAND- See Also:
 
- 
LIVING_ENTITY_FLAG_SPIN_ATTACKprotected static final int LIVING_ENTITY_FLAG_SPIN_ATTACK- See Also:
 
- 
DATA_LIVING_ENTITY_FLAGS
- 
DATA_HEALTH_ID
- 
DATA_EFFECT_PARTICLES
- 
DATA_EFFECT_AMBIENCE_ID
- 
DATA_ARROW_COUNT_ID
- 
DATA_STINGER_COUNT_ID
- 
SLEEPING_POS_ID
- 
PARTICLE_FREQUENCY_WHEN_INVISIBLEprivate static final int PARTICLE_FREQUENCY_WHEN_INVISIBLE- See Also:
 
- 
SLEEPING_DIMENSIONS
- 
EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HATpublic static final float EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT- See Also:
 
- 
DEFAULT_BABY_SCALEpublic static final float DEFAULT_BABY_SCALE- See Also:
 
- 
ITEM_USE_EFFECT_START_FRACTIONprivate static final float ITEM_USE_EFFECT_START_FRACTION- See Also:
 
- 
ATTRIBUTES_FIELD- See Also:
 
- 
attributes
- 
combatTracker
- 
activeEffects
- 
lastHandItemStacks
- 
lastArmorItemStacks
- 
lastBodyItemStack
- 
swingingpublic boolean swinging
- 
discardFrictionprivate boolean discardFriction
- 
swingingArm
- 
swingTimepublic int swingTime
- 
removeArrowTimepublic int removeArrowTime
- 
removeStingerTimepublic int removeStingerTime
- 
hurtTimepublic int hurtTime
- 
hurtDurationpublic int hurtDuration
- 
deathTimepublic int deathTime
- 
oAttackAnimpublic float oAttackAnim
- 
attackAnimpublic float attackAnim
- 
attackStrengthTickerprotected int attackStrengthTicker
- 
walkAnimation
- 
invulnerableDurationpublic final int invulnerableDuration- See Also:
 
- 
timeOffspublic final float timeOffs
- 
rotApublic final float rotA
- 
yBodyRotpublic float yBodyRot
- 
yBodyRotOpublic float yBodyRotO
- 
yHeadRotpublic float yHeadRot
- 
yHeadRotOpublic float yHeadRotO
- 
lastHurtByPlayer
- 
lastHurtByPlayerTimeprotected int lastHurtByPlayerTime
- 
deadprotected boolean dead
- 
noActionTimeprotected int noActionTime
- 
oRunprotected float oRun
- 
runprotected float run
- 
animStepprotected float animStep
- 
animStepOprotected float animStepO
- 
rotOffsprotected float rotOffs
- 
deathScoreprotected int deathScore
- 
lastHurtprotected float lastHurt
- 
jumpingprotected boolean jumping
- 
xxapublic float xxa
- 
yyapublic float yya
- 
zzapublic float zza
- 
lerpStepsprotected int lerpSteps
- 
lerpXprotected double lerpX
- 
lerpYprotected double lerpY
- 
lerpZprotected double lerpZ
- 
lerpYRotprotected double lerpYRot
- 
lerpXRotprotected double lerpXRot
- 
lerpYHeadRotprotected double lerpYHeadRot
- 
lerpHeadStepsprotected int lerpHeadSteps
- 
effectsDirtyprivate boolean effectsDirty
- 
lastHurtByMob
- 
lastHurtByMobTimestampprivate int lastHurtByMobTimestamp
- 
lastHurtMob
- 
lastHurtMobTimestampprivate int lastHurtMobTimestamp
- 
speedprivate float speed
- 
noJumpDelayprivate int noJumpDelay
- 
absorptionAmountprivate float absorptionAmount
- 
useItem
- 
useItemRemainingprotected int useItemRemaining
- 
fallFlyTicksprotected int fallFlyTicks
- 
lastPos
- 
lastClimbablePos
- 
lastDamageSource
- 
lastDamageStampprivate long lastDamageStamp
- 
autoSpinAttackTicksprotected int autoSpinAttackTicks
- 
autoSpinAttackDmgprotected float autoSpinAttackDmg
- 
autoSpinAttackItemStack
- 
swimAmountprivate float swimAmount
- 
swimAmountOprivate float swimAmountO
- 
brain
- 
skipDropExperienceprivate boolean skipDropExperience
- 
activeLocationDependentEnchantmentsprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enchantment,Set<EnchantmentLocationBasedEffect>> activeLocationDependentEnchantments
- 
appliedScaleprotected float appliedScale
 
- 
- 
Constructor Details- 
LivingEntity
 
- 
- 
Method Details- 
getBrain
- 
brainProvider
- 
makeBrain
- 
killpublic void kill()
- 
canAttackType
- 
defineSynchedData- Specified by:
- defineSynchedDatain class- Entity
 
- 
createLivingAttributes
- 
checkFallDamageprotected void checkFallDamage(double p_20990_, boolean p_20991_, BlockState p_20992_, BlockPos p_20993_) - Overrides:
- checkFallDamagein class- Entity
 
- 
canBreatheUnderwaterDeprecated.
- 
getSwimAmountpublic float getSwimAmount(float p_20999_) 
- 
hasLandedInLiquidpublic boolean hasLandedInLiquid()
- 
baseTickpublic void baseTick()
- 
getBlockSpeedFactorprotected float getBlockSpeedFactor()- Overrides:
- getBlockSpeedFactorin class- Entity
 
- 
removeFrostprotected void removeFrost()
- 
tryAddFrostprotected void tryAddFrost()
- 
onChangedBlock
- 
isBabypublic boolean isBaby()
- 
getAgeScalepublic float getAgeScale()
- 
getScalepublic float getScale()
- 
sanitizeScaleprotected float sanitizeScale(float p_320290_) 
- 
isAffectedByFluidsprotected boolean isAffectedByFluids()
- 
tickDeathprotected void tickDeath()
- 
shouldDropExperiencepublic boolean shouldDropExperience()
- 
shouldDropLootprotected boolean shouldDropLoot()
- 
decreaseAirSupplyprotected int decreaseAirSupply(int p_21303_) 
- 
increaseAirSupplyprotected int increaseAirSupply(int p_21307_) 
- 
getExperienceReward
- 
getBaseExperienceRewardprotected int getBaseExperienceReward()
- 
isAlwaysExperienceDropperprotected boolean isAlwaysExperienceDropper()
- 
getLastHurtByMob
- 
getLastAttacker- Specified by:
- getLastAttackerin interface- Attackable
 
- 
getLastHurtByMobTimestamppublic int getLastHurtByMobTimestamp()
- 
setLastHurtByPlayer
- 
setLastHurtByMob
- 
getLastHurtMob
- 
getLastHurtMobTimestamppublic int getLastHurtMobTimestamp()
- 
setLastHurtMob
- 
getNoActionTimepublic int getNoActionTime()
- 
setNoActionTimepublic void setNoActionTime(int p_21311_) 
- 
shouldDiscardFrictionpublic boolean shouldDiscardFriction()
- 
setDiscardFrictionpublic void setDiscardFriction(boolean p_147245_) 
- 
doesEmitEquipEvent
- 
onEquipItem
- 
remove
- 
triggerOnDeathMobEffects
- 
addAdditionalSaveData- Specified by:
- addAdditionalSaveDatain class- Entity
 
- 
readAdditionalSaveData- Specified by:
- readAdditionalSaveDatain class- Entity
 
- 
tickEffectsprotected void tickEffects()
- 
updateInvisibilityStatusprotected void updateInvisibilityStatus()
- 
updateSynchronizedMobEffectParticlesprivate void updateSynchronizedMobEffectParticles()
- 
updateGlowingStatusprivate void updateGlowingStatus()
- 
getVisibilityPercent
- 
canAttack
- 
canAttack
- 
canBeSeenAsEnemypublic boolean canBeSeenAsEnemy()
- 
canBeSeenByAnyonepublic boolean canBeSeenByAnyone()
- 
areAllEffectsAmbient
- 
removeEffectParticlesprotected void removeEffectParticles()
- 
removeAllEffectspublic boolean removeAllEffects()
- 
getActiveEffects
- 
getActiveEffectsMap
- 
hasEffect
- 
getEffect
- 
addEffect
- 
addEffect
- 
canBeAffectedDeprecated.Neo: Override-Only. Call viaCommonHooks.canMobEffectBeApplied(LivingEntity, MobEffectInstance)- Parameters:
- p_21197_- A mob effect instance
- Returns:
- If the mob effect instance can be applied to this entity
 
- 
forceAddEffect
- 
isInvertedHealAndHarmpublic boolean isInvertedHealAndHarm()
- 
removeEffectNoUpdate
- 
removeEffect
- 
onEffectAdded
- 
sendEffectToPassengers
- 
onEffectUpdatedprotected void onEffectUpdated(MobEffectInstance p_147192_, boolean p_147193_, @Nullable Entity p_147194_) 
- 
onEffectRemoved
- 
refreshDirtyAttributesprivate void refreshDirtyAttributes()
- 
onAttributeUpdated
- 
healpublic void heal(float p_21116_) 
- 
getHealthpublic float getHealth()
- 
setHealthpublic void setHealth(float p_21154_) 
- 
isDeadOrDyingpublic boolean isDeadOrDying()
- 
hurt
- 
blockUsingShield
- 
blockedByShield
- 
checkTotemDeathProtection
- 
getLastDamageSource
- 
playHurtSound
- 
makeSound
- 
isDamageSourceBlocked
- 
breakItem
- 
die
- 
createWitherRose
- 
dropAllDeathLoot
- 
dropEquipmentprotected void dropEquipment()
- 
dropExperience
- 
dropCustomDeathLoot
- 
getLootTable
- 
getLootTableSeedpublic long getLootTableSeed()
- 
getKnockback
- 
dropFromLootTable
- 
knockbackpublic void knockback(double p_147241_, double p_147242_, double p_147243_) 
- 
indicateDamagepublic void indicateDamage(double p_270514_, double p_270826_) 
- 
getHurtSound
- 
getDeathSound
- 
getFallDamageSound
- 
skipDropExperiencepublic void skipDropExperience()
- 
wasExperienceConsumedpublic boolean wasExperienceConsumed()
- 
getHurtDirpublic float getHurtDir()
- 
getHitbox
- 
activeLocationDependentEnchantments
- 
getFallSounds
- 
getDrinkingSound
- 
getEatingSound
- 
getLastClimbablePos
- 
onClimbablepublic boolean onClimbable()
- 
trapdoorUsableAsLadder
- 
isAlivepublic boolean isAlive()
- 
getMaxFallDistancepublic int getMaxFallDistance()- Overrides:
- getMaxFallDistancein class- Entity
 
- 
getComfortableFallDistanceprotected final int getComfortableFallDistance(float p_326294_) 
- 
causeFallDamage- Overrides:
- causeFallDamagein class- Entity
 
- 
calculateFallDamageprotected int calculateFallDamage(float p_21237_, float p_21238_) 
- 
playBlockFallSoundprotected void playBlockFallSound()
- 
animateHurtpublic void animateHurt(float p_265265_) - Overrides:
- animateHurtin class- Entity
 
- 
getArmorValuepublic int getArmorValue()
- 
hurtArmor
- 
hurtHelmet
- 
hurtCurrentlyUsedShieldprotected void hurtCurrentlyUsedShield(float p_21316_) 
- 
doHurtEquipment
- 
getDamageAfterArmorAbsorb
- 
getDamageAfterMagicAbsorb
- 
actuallyHurt
- 
getCombatTracker
- 
getKillCredit
- 
getMaxHealthpublic final float getMaxHealth()
- 
getMaxAbsorptionpublic final float getMaxAbsorption()
- 
getArrowCountpublic final int getArrowCount()
- 
setArrowCountpublic final void setArrowCount(int p_21318_) 
- 
getStingerCountpublic final int getStingerCount()
- 
setStingerCountpublic final void setStingerCount(int p_21322_) 
- 
getCurrentSwingDurationprivate int getCurrentSwingDuration()
- 
swing
- 
swing
- 
handleDamageEvent- Overrides:
- handleDamageEventin class- Entity
 
- 
handleEntityEventpublic void handleEntityEvent(byte p_20975_) - Overrides:
- handleEntityEventin class- Entity
 
- 
makePoofParticlesprivate void makePoofParticles()
- 
swapHandItemsprivate void swapHandItems()
- 
onBelowWorldprotected void onBelowWorld()- Overrides:
- onBelowWorldin class- Entity
 
- 
updateSwingTimeprotected void updateSwingTime()
- 
getAttribute
- 
getAttributeValue
- 
getAttributeBaseValue
- 
getAttributes
- 
getMainHandItem
- 
getOffhandItem
- 
getWeaponItem- Overrides:
- getWeaponItemin class- Entity
 
- 
isHolding
- 
isHolding
- 
getItemInHand
- 
setItemInHand
- 
hasItemInSlot
- 
canUseSlot
- 
getArmorSlots
- 
getItemBySlot
- 
setItemSlot
- 
getHandSlots
- 
getArmorAndBodyArmorSlots
- 
getAllSlots
- 
verifyEquippedItem
- 
getArmorCoverPercentagepublic float getArmorCoverPercentage()
- 
setSprintingpublic void setSprinting(boolean p_21284_) - Overrides:
- setSprintingin class- Entity
 
- 
getSoundVolumeprotected float getSoundVolume()
- 
getVoicePitchpublic float getVoicePitch()
- 
isImmobileprotected boolean isImmobile()
- 
push
- 
dismountVehicle
- 
shouldShowNamepublic boolean shouldShowName()- Overrides:
- shouldShowNamein class- Entity
 
- 
getJumpPowerprotected float getJumpPower()
- 
getJumpPowerprotected float getJumpPower(float p_326107_) 
- 
getJumpBoostPowerpublic float getJumpBoostPower()
- 
jumpFromGroundpublic void jumpFromGround()
- 
goDownInWaterDeprecated.
- 
jumpInLiquidDeprecated.
- 
getWaterSlowDownprotected float getWaterSlowDown()
- 
canStandOnFluid
- 
getDefaultGravityprotected double getDefaultGravity()- Overrides:
- getDefaultGravityin class- Entity
 
- 
travel
- 
travelRidden
- 
tickRidden
- 
getRiddenInput
- 
getRiddenSpeed
- 
calculateEntityAnimationpublic void calculateEntityAnimation(boolean p_268129_) 
- 
updateWalkAnimationprotected void updateWalkAnimation(float p_268283_) 
- 
handleRelativeFrictionAndCalculateMovement
- 
getFluidFallingAdjustedMovement
- 
handleOnClimbable
- 
getFrictionInfluencedSpeedprivate float getFrictionInfluencedSpeed(float p_21331_) 
- 
getFlyingSpeedprotected float getFlyingSpeed()
- 
getSpeedpublic float getSpeed()
- 
setSpeedpublic void setSpeed(float p_21320_) 
- 
doHurtTarget
- 
tickpublic void tick()
- 
detectEquipmentUpdatesprivate void detectEquipmentUpdates()
- 
collectEquipmentChanges
- 
equipmentHasChanged
- 
handleHandSwap
- 
handleEquipmentChanges
- 
getLastArmorItem
- 
setLastArmorItem
- 
getLastHandItem
- 
setLastHandItem
- 
tickHeadTurnprotected float tickHeadTurn(float p_21260_, float p_21261_) 
- 
getMaxHeadRotationRelativeToBodyprotected float getMaxHeadRotationRelativeToBody()
- 
aiSteppublic void aiStep()
- 
isSensitiveToWaterpublic boolean isSensitiveToWater()
- 
updateFallFlyingprivate void updateFallFlying()
- 
serverAiStepprotected void serverAiStep()
- 
pushEntitiesprotected void pushEntities()
- 
checkAutoSpinAttack
- 
doPush
- 
doAutoAttackOnTouch
- 
isAutoSpinAttackpublic boolean isAutoSpinAttack()
- 
stopRidingpublic void stopRiding()- Overrides:
- stopRidingin class- Entity
 
- 
rideTickpublic void rideTick()
- 
lerpTopublic void lerpTo(double p_20977_, double p_20978_, double p_20979_, float p_20980_, float p_20981_, int p_20982_) 
- 
lerpTargetXpublic double lerpTargetX()- Overrides:
- lerpTargetXin class- Entity
 
- 
lerpTargetYpublic double lerpTargetY()- Overrides:
- lerpTargetYin class- Entity
 
- 
lerpTargetZpublic double lerpTargetZ()- Overrides:
- lerpTargetZin class- Entity
 
- 
lerpTargetXRotpublic float lerpTargetXRot()- Overrides:
- lerpTargetXRotin class- Entity
 
- 
lerpTargetYRotpublic float lerpTargetYRot()- Overrides:
- lerpTargetYRotin class- Entity
 
- 
lerpHeadTopublic void lerpHeadTo(float p_21005_, int p_21006_) - Overrides:
- lerpHeadToin class- Entity
 
- 
setJumpingpublic void setJumping(boolean p_21314_) 
- 
onItemPickup
- 
take
- 
hasLineOfSight
- 
getViewYRotpublic float getViewYRot(float p_21286_) - Overrides:
- getViewYRotin class- Entity
 
- 
getAttackAnimpublic float getAttackAnim(float p_21325_) 
- 
isPickablepublic boolean isPickable()- Overrides:
- isPickablein class- Entity
 
- 
isPushablepublic boolean isPushable()- Overrides:
- isPushablein class- Entity
 
- 
getYHeadRotpublic float getYHeadRot()- Overrides:
- getYHeadRotin class- Entity
 
- 
setYHeadRotpublic void setYHeadRot(float p_21306_) - Overrides:
- setYHeadRotin class- Entity
 
- 
setYBodyRotpublic void setYBodyRot(float p_21309_) - Overrides:
- setYBodyRotin class- Entity
 
- 
getRelativePortalPosition- Overrides:
- getRelativePortalPositionin class- Entity
 
- 
resetForwardDirectionOfRelativePortalPosition
- 
getAbsorptionAmountpublic float getAbsorptionAmount()
- 
setAbsorptionAmountpublic final void setAbsorptionAmount(float p_21328_) 
- 
internalSetAbsorptionAmountprotected void internalSetAbsorptionAmount(float p_295258_) 
- 
onEnterCombatpublic void onEnterCombat()
- 
onLeaveCombatpublic void onLeaveCombat()
- 
updateEffectVisibilityprotected void updateEffectVisibility()
- 
getMainArm
- 
isUsingItempublic boolean isUsingItem()
- 
getUsedItemHand
- 
updatingUsingItemprivate void updatingUsingItem()
- 
updateUsingItem
- 
shouldTriggerItemUseEffectsprivate boolean shouldTriggerItemUseEffects()
- 
updateSwimAmountprivate void updateSwimAmount()
- 
setLivingEntityFlagprotected void setLivingEntityFlag(int p_21156_, boolean p_21157_) 
- 
startUsingItem
- 
onSyncedDataUpdated- Specified by:
- onSyncedDataUpdatedin interface- SyncedDataHolder
- Overrides:
- onSyncedDataUpdatedin class- Entity
 
- 
lookAt
- 
getPreciseBodyRotationpublic float getPreciseBodyRotation(float p_352089_) - Overrides:
- getPreciseBodyRotationin class- Entity
 
- 
triggerItemUseEffects
- 
spawnItemParticles
- 
completeUsingItemprotected void completeUsingItem()
- 
getUseItem
- 
getUseItemRemainingTickspublic int getUseItemRemainingTicks()
- 
getTicksUsingItempublic int getTicksUsingItem()
- 
releaseUsingItempublic void releaseUsingItem()
- 
stopUsingItempublic void stopUsingItem()
- 
isBlockingpublic boolean isBlocking()
- 
isSuppressingSlidingDownLadderpublic boolean isSuppressingSlidingDownLadder()
- 
isFallFlyingpublic boolean isFallFlying()
- 
isVisuallySwimmingpublic boolean isVisuallySwimming()- Overrides:
- isVisuallySwimmingin class- Entity
 
- 
getFallFlyingTickspublic int getFallFlyingTicks()
- 
randomTeleportpublic boolean randomTeleport(double p_20985_, double p_20986_, double p_20987_, boolean p_20988_) 
- 
isAffectedByPotionspublic boolean isAffectedByPotions()
- 
attackablepublic boolean attackable()
- 
setRecordPlayingNearby
- 
canTakeItem
- 
getDimensions- Overrides:
- getDimensionsin class- Entity
 
- 
getDefaultDimensions
- 
getDismountPoses
- 
getLocalBoundsForPose
- 
wouldNotSuffocateAtTargetPose
- 
canUsePortalpublic boolean canUsePortal(boolean p_352946_) - Overrides:
- canUsePortalin class- Entity
 
- 
getSleepingPos
- 
setSleepingPos
- 
clearSleepingPospublic void clearSleepingPos()
- 
isSleepingpublic boolean isSleeping()
- 
startSleeping
- 
setPosToBed
- 
checkBedExistsprivate boolean checkBedExists()
- 
stopSleepingpublic void stopSleeping()
- 
getBedOrientation
- 
isInWallpublic boolean isInWall()
- 
getProjectile
- 
eat
- 
eat
- 
addEatEffect
- 
entityEventForEquipmentBreak
- 
onEquippedItemBroken
- 
getSlotForHand
- 
removeEffectsCuredByRemoves all potion effects that have the givenEffectCurein their set of cures- Parameters:
- cure- the EffectCure being used
 
- 
shouldRiderFaceForwardReturns 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.
 
- 
getBoundingBoxForCulling- Overrides:
- getBoundingBoxForCullingin class- Entity
 
- 
getEquipmentSlotForItem
- 
createEquipmentSlotAccessprivate static SlotAccess createEquipmentSlotAccess(LivingEntity p_147196_, EquipmentSlot p_147197_) 
- 
getEquipmentSlot
- 
getSlot
- 
canFreezepublic boolean canFreeze()
- 
isCurrentlyGlowingpublic boolean isCurrentlyGlowing()- Overrides:
- isCurrentlyGlowingin class- Entity
 
- 
getVisualRotationYInDegreespublic float getVisualRotationYInDegrees()- Overrides:
- getVisualRotationYInDegreesin class- Entity
 
- 
recreateFromPacket- Overrides:
- recreateFromPacketin class- Entity
 
- 
canDisableShieldpublic boolean canDisableShield()
- 
maxUpSteppublic float maxUpStep()
- 
getPassengerRidingPosition- Overrides:
- getPassengerRidingPositionin class- Entity
 
- 
lerpHeadRotationStepprotected void lerpHeadRotationStep(int p_296134_, double p_296397_) 
- 
igniteForTickspublic void igniteForTicks(int p_319861_) - Overrides:
- igniteForTicksin class- Entity
 
- 
hasInfiniteMaterialspublic boolean hasInfiniteMaterials()
- 
isInvulnerableTo- Overrides:
- isInvulnerableToin class- Entity
 
 
-