类 LivingEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
- 所有已实现的接口:
CommandSource
,Attackable
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
ArmorStand
,Mob
,Player
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private float
private final Map<MobEffect,
MobEffectInstance> protected float
protected float
static final int
static final int
float
protected int
private final AttributeMap
protected int
private static final float
protected Brain<?>
private final CombatTracker
private static final int
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Boolean>
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Float>
protected static final EntityDataAccessor<Byte>
private static final EntityDataAccessor<Integer>
protected boolean
static final int
protected int
int
static final double
protected static final float
private boolean
private boolean
static final int
static final float
protected int
private static final int
static final int
private LazyOptional<?>[]
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 Player
protected int
private LivingEntity
private int
private BlockPos
protected int
protected int
protected double
protected double
protected double
protected double
protected double
protected static final int
protected static final int
protected static final int
private static final org.slf4j.Logger
protected double
private static final int
private static final double
static final double
protected int
private int
float
protected float
static final int
int
int
final float
protected float
protected float
private boolean
protected static final EntityDimensions
private static final EntityDataAccessor<Optional<BlockPos>>
private static final AttributeModifier
private static final UUID
private float
private static final UUID
private static final UUID
private static final AttributeModifier
private static final UUID
private float
private float
static final int
boolean
int
private static final int
final float
static final int
protected ItemStack
protected int
private static final int
final WalkAnimationState
float
float
float
float
float
float
float
从类继承的字段 net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, 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, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, 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, zOld
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
actuallyHurt
(DamageSource pDamageSource, float pDamageAmount) void
addAdditionalSaveData
(CompoundTag pCompound) private void
addEatEffect
(ItemStack pFood, Level pLevel, LivingEntity pLivingEntity) final boolean
addEffect
(MobEffectInstance pEffectInstance) boolean
addEffect
(MobEffectInstance pEffectInstance, Entity pEntity) void
aiStep()
void
animateHurt
(float pYaw) static boolean
areAllEffectsAmbient
(Collection<MobEffectInstance> pPotionEffects) boolean
void
baseTick()
protected void
blockedByShield
(LivingEntity pDefender) protected void
blockUsingShield
(LivingEntity pAttacker) protected Brain.Provider<?>
private void
void
broadcastBreakEvent
(EquipmentSlot pSlot) void
void
calculateEntityAnimation
(boolean pIncludeHeight) protected int
calculateFallDamage
(float pFallDistance, float pDamageMultiplier) boolean
canAttack
(LivingEntity pTarget) boolean
canAttack
(LivingEntity pLivingentity, TargetingConditions pCondition) boolean
canAttackType
(EntityType<?> pEntityType) boolean
canBeAffected
(MobEffectInstance pEffectInstance) boolean
boolean
boolean
已过时。boolean
boolean
boolean
boolean
boolean
canStandOnFluid
(FluidState pFluidState) boolean
canTakeItem
(ItemStack pStack) boolean
causeFallDamage
(float pFallDistance, float pMultiplier, DamageSource pSource) protected void
checkAutoSpinAttack
(AABB pBoundingBoxBeforeSpin, AABB pBoundingBoxAfterSpin) private boolean
protected void
checkFallDamage
(double pY, boolean pOnGround, BlockState pState, BlockPos pPos) private boolean
checkTotemDeathProtection
(DamageSource pDamageSource) void
private Map<EquipmentSlot,
ItemStack> protected void
private static SlotAccess
createEquipmentSlotAccess
(LivingEntity pEntity, EquipmentSlot pSlot) static AttributeSupplier.Builder
protected void
createWitherRose
(LivingEntity pEntitySource) boolean
curePotionEffects
(ItemStack curativeItem) Removes all potion effects that have curativeItem as a curative item for its effectprotected int
decreaseAirSupply
(int pCurrentAir) protected void
private void
void
die
(DamageSource pDamageSource) private void
dismountVehicle
(Entity pVehicle) protected void
doAutoAttackOnTouch
(LivingEntity pTarget) protected boolean
doesEmitEquipEvent
(EquipmentSlot pSlot) boolean
doHurtTarget
(Entity pTarget) protected void
protected void
dropAllDeathLoot
(DamageSource pDamageSource) protected void
dropCustomDeathLoot
(DamageSource pDamageSource, int pLooting, boolean pHitByPlayer) protected void
protected void
protected void
dropFromLootTable
(DamageSource pDamageSource, boolean pHitByPlayer) private static byte
boolean
equipmentHasChanged
(ItemStack pOldItem, ItemStack pNewItem) void
forceAddEffect
(MobEffectInstance pInstance, Entity pEntity) float
float
int
final int
float
getAttackAnim
(float pPartialTick) getAttribute
(Attribute pAttribute) double
getAttributeBaseValue
(Holder<Attribute> pAttribute) double
getAttributeBaseValue
(Attribute pAttribute) double
getAttributeValue
(Holder<Attribute> pAttribute) double
getAttributeValue
(Attribute pAttribute) 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 pDamageSource, float pDamageAmount) protected float
getDamageAfterMagicAbsorb
(DamageSource pDamageSource, float pDamageAmount) protected SoundEvent
getDimensions
(Pose pPose) com.google.common.collect.ImmutableList<Pose>
protected SoundEvent
getDrinkingSound
(ItemStack pStack) getEatingSound
(ItemStack pStack) private static EquipmentSlot
getEquipmentSlot
(int pIndex) static EquipmentSlot
getEquipmentSlotForItem
(ItemStack pItem) int
protected final float
getEyeHeight
(Pose pPose, EntityDimensions pSize) private SoundEvent
getFallDamageSound
(int pHeight) int
getFluidFallingAdjustedMovement
(double pGravity, boolean pIsFalling, Vec3 pDeltaMovement) protected float
private float
getFrictionInfluencedSpeed
(float pFriction) float
float
protected SoundEvent
getHurtSound
(DamageSource pDamageSource) abstract ItemStack
getItemBySlot
(EquipmentSlot pSlot) getItemInHand
(InteractionHand pHand) float
protected float
private ItemStack
getLastArmorItem
(EquipmentSlot pSlot) private ItemStack
getLastHandItem
(EquipmentSlot pSlot) int
int
getLocalBoundsForPose
(Pose pPose) long
abstract HumanoidArm
final float
protected Vec3
int
getProjectile
(ItemStack pWeaponStack) protected Vec3
getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) protected Vec3
getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
getRiddenSpeed
(Player pPlayer) float
getScale()
getSlot
(int pSlot) protected float
float
getSpeed()
protected float
getStandingEyeHeight
(Pose pPose, EntityDimensions pDimensions) final int
float
getSwimAmount
(float pPartialTicks) int
int
float
getViewYRot
(float pPartialTicks) double
getVisibilityPercent
(Entity pLookingEntity) float
float
protected float
float
protected void
已过时。void
handleDamageEvent
(DamageSource pDamageSource) void
handleEntityEvent
(byte pId) private void
handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> pEquipments) private void
handleHandSwap
(Map<EquipmentSlot, ItemStack> pHands) private Vec3
handleOnClimbable
(Vec3 pDeltaMovement) handleRelativeFrictionAndCalculateMovement
(Vec3 pDeltaMovement, float pFriction) boolean
boolean
hasItemInSlot
(EquipmentSlot pSlot) boolean
hasLineOfSight
(Entity pEntity) void
heal
(float pHealAmount) boolean
hurt
(DamageSource pSource, float pAmount) protected void
hurtArmor
(DamageSource pDamageSource, float pDamageAmount) protected void
hurtCurrentlyUsedShield
(float pDamageAmount) protected void
hurtHelmet
(DamageSource pDamageSource, float pDamageAmount) protected int
increaseAirSupply
(int pCurrentAir) void
indicateDamage
(double pXDistance, double pZDistance) void
protected boolean
boolean
boolean
isAlive()
protected boolean
boolean
boolean
isBaby()
boolean
boolean
boolean
isDamageSourceBlocked
(DamageSource pDamageSource) boolean
boolean
boolean
boolean
protected boolean
boolean
boolean
isInWall()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
protected void
protected void
jumpInLiquid
(TagKey<Fluid> pFluidTag) 已过时。void
kill()
void
knockback
(double pStrength, double pX, double pZ) void
lerpHeadTo
(float pYaw, int pPitch) void
lerpTo
(double pX, double pY, double pZ, float pYaw, float pPitch, int pPosRotationIncrements, boolean pTeleport) void
lookAt
(EntityAnchorArgument.Anchor pAnchor, Vec3 pTarget) protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> pDynamic) private void
float
已过时。protected void
protected void
onChangedBlock
(BlockPos pPos) boolean
protected void
onEffectAdded
(MobEffectInstance pEffectInstance, Entity pEntity) protected void
onEffectRemoved
(MobEffectInstance pEffectInstance) protected void
onEffectUpdated
(MobEffectInstance pEffectInstance, boolean pForced, Entity pEntity) void
void
onEquipItem
(EquipmentSlot pSlot, ItemStack pOldItem, ItemStack pNewItem) void
onItemPickup
(ItemEntity pItemEntity) void
protected boolean
void
onSyncedDataUpdated
(EntityDataAccessor<?> pKey) protected void
protected void
playHurtSound
(DamageSource pSource) void
protected void
boolean
randomTeleport
(double pX, double pY, double pZ, boolean pBroadcastTeleport) void
readAdditionalSaveData
(CompoundTag pCompound) void
void
void
remove
(Entity.RemovalReason pReason) boolean
boolean
removeEffect
(MobEffect pEffect) removeEffectNoUpdate
(MobEffect pEffect) protected void
protected void
protected void
static Vec3
resetForwardDirectionOfRelativePortalPosition
(Vec3 pRelativePortalPosition) void
void
rideTick()
void
sendEffectToPassengers
(MobEffectInstance pEffectInstance) protected void
void
setAbsorptionAmount
(float pAbsorptionAmount) final void
setArrowCount
(int pCount) void
setDiscardFriction
(boolean pDiscardFriction) void
setHealth
(float pHealth) void
setItemInHand
(InteractionHand pHand, ItemStack pStack) abstract void
setItemSlot
(EquipmentSlot pSlot, ItemStack pStack) void
setJumping
(boolean pJumping) private void
setLastArmorItem
(EquipmentSlot pSlot, ItemStack pStack) private void
setLastHandItem
(EquipmentSlot pSlot, ItemStack pStack) void
setLastHurtByMob
(LivingEntity pLivingEntity) void
setLastHurtByPlayer
(Player pPlayer) void
setLastHurtMob
(Entity pEntity) protected void
setLivingEntityFlag
(int pKey, boolean pValue) void
setNoActionTime
(int pIdleTime) private void
setPosToBed
(BlockPos p_21081_) void
setRecordPlayingNearby
(BlockPos pJukebox, boolean pPartyParrot) void
setSleepingPos
(BlockPos pPos) void
setSpeed
(float pSpeed) void
setSprinting
(boolean pSprinting) final void
setStingerCount
(int pStingerCount) void
setYBodyRot
(float pOffset) void
setYHeadRot
(float pRotation) boolean
boolean
protected boolean
protected boolean
shouldRemoveSoulSpeed
(BlockState pState) boolean
shouldRiderFaceForward
(Player player) Returns true if the entity's rider (EntityPlayer) should face forward when mounted.boolean
private boolean
void
private void
spawnItemParticles
(ItemStack pStack, int pAmount) protected void
void
startSleeping
(BlockPos pPos) void
startUsingItem
(InteractionHand pHand) void
void
void
private void
void
swing
(InteractionHand pHand) void
swing
(InteractionHand pHand, boolean pUpdateSelf) void
void
tick()
protected void
protected void
protected float
tickHeadTurn
(float pYRot, float pAnimStep) protected void
tickRidden
(Player pPlayer, Vec3 pTravelVector) private boolean
trapdoorUsableAsLadder
(BlockPos pPos, BlockState pState) void
private void
travelRidden
(Player pPlayer, Vec3 pTravelVector) protected void
triggerItemUseEffects
(ItemStack pStack, int pAmount) protected void
protected void
protected void
private void
private void
protected void
private void
protected void
protected void
updateUsingItem
(ItemStack pUsingItem) protected void
updateWalkAnimation
(float pPartialTick) private void
protected void
verifyEquippedItem
(ItemStack pStack) boolean
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, 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, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, 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, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, 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, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, 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, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluid
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SPEED_MODIFIER_SPRINTING_UUID
-
SPEED_MODIFIER_SOUL_SPEED_UUID
-
SPEED_MODIFIER_POWDER_SNOW_UUID
-
SLOW_FALLING_ID
-
SPEED_MODIFIER_SPRINTING
-
SLOW_FALLING
-
HAND_SLOTS
public static final int HAND_SLOTS- 另请参阅:
-
ARMOR_SLOTS
public static final int ARMOR_SLOTS- 另请参阅:
-
EQUIPMENT_SLOT_OFFSET
public static final int EQUIPMENT_SLOT_OFFSET- 另请参阅:
-
ARMOR_SLOT_OFFSET
public static final int ARMOR_SLOT_OFFSET- 另请参阅:
-
SWING_DURATION
public static final int SWING_DURATION- 另请参阅:
-
PLAYER_HURT_EXPERIENCE_TIME
public static final int PLAYER_HURT_EXPERIENCE_TIME- 另请参阅:
-
DAMAGE_SOURCE_TIMEOUT
private static final int DAMAGE_SOURCE_TIMEOUT- 另请参阅:
-
MIN_MOVEMENT_DISTANCE
public static final double MIN_MOVEMENT_DISTANCE- 另请参阅:
-
DEFAULT_BASE_GRAVITY
public static final double DEFAULT_BASE_GRAVITY- 另请参阅:
-
DEATH_DURATION
public static final int DEATH_DURATION- 另请参阅:
-
WAIT_TICKS_BEFORE_ITEM_USE_EFFECTS
private static final int WAIT_TICKS_BEFORE_ITEM_USE_EFFECTS- 另请参阅:
-
TICKS_PER_ELYTRA_FREE_FALL_EVENT
private static final int TICKS_PER_ELYTRA_FREE_FALL_EVENT- 另请参阅:
-
FREE_FALL_EVENTS_PER_ELYTRA_BREAK
private static final int FREE_FALL_EVENTS_PER_ELYTRA_BREAK- 另请参阅:
-
USE_ITEM_INTERVAL
public static final int USE_ITEM_INTERVAL- 另请参阅:
-
BASE_JUMP_POWER
private static final float BASE_JUMP_POWER- 另请参阅:
-
MAX_LINE_OF_SIGHT_TEST_RANGE
private static final double MAX_LINE_OF_SIGHT_TEST_RANGE- 另请参阅:
-
LIVING_ENTITY_FLAG_IS_USING
protected static final int LIVING_ENTITY_FLAG_IS_USING- 另请参阅:
-
LIVING_ENTITY_FLAG_OFF_HAND
protected static final int LIVING_ENTITY_FLAG_OFF_HAND- 另请参阅:
-
LIVING_ENTITY_FLAG_SPIN_ATTACK
protected static final int LIVING_ENTITY_FLAG_SPIN_ATTACK- 另请参阅:
-
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
-
DEFAULT_EYE_HEIGHT
protected static final float DEFAULT_EYE_HEIGHT- 另请参阅:
-
SLEEPING_DIMENSIONS
-
EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT
public static final float EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT- 另请参阅:
-
MAX_HEAD_ROTATION_RELATIVE_TO_BODY
private static final int MAX_HEAD_ROTATION_RELATIVE_TO_BODY- 另请参阅:
-
attributes
-
combatTracker
-
activeEffects
-
lastHandItemStacks
-
lastArmorItemStacks
-
swinging
public boolean swinging -
discardFriction
private boolean discardFriction -
swingingArm
-
swingTime
public int swingTime -
removeArrowTime
public int removeArrowTime -
removeStingerTime
public int removeStingerTime -
hurtTime
public int hurtTime -
hurtDuration
public int hurtDuration -
deathTime
public int deathTime -
oAttackAnim
public float oAttackAnim -
attackAnim
public float attackAnim -
attackStrengthTicker
protected int attackStrengthTicker -
walkAnimation
-
invulnerableDuration
public final int invulnerableDuration- 另请参阅:
-
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 -
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
-
skipDropExperience
private boolean skipDropExperience -
handlers
-
-
构造器详细资料
-
LivingEntity
-
-
方法详细资料
-
getBrain
-
brainProvider
-
makeBrain
-
kill
public void kill() -
canAttackType
-
defineSynchedData
protected void defineSynchedData()- 指定者:
defineSynchedData
在类中Entity
-
createLivingAttributes
-
checkFallDamage
- 覆盖:
checkFallDamage
在类中Entity
-
canBreatheUnderwater
已过时。 -
getSwimAmount
public float getSwimAmount(float pPartialTicks) -
baseTick
public void baseTick() -
canSpawnSoulSpeedParticle
public boolean canSpawnSoulSpeedParticle() -
spawnSoulSpeedParticle
protected void spawnSoulSpeedParticle() -
onSoulSpeedBlock
protected boolean onSoulSpeedBlock() -
getBlockSpeedFactor
protected float getBlockSpeedFactor()- 覆盖:
getBlockSpeedFactor
在类中Entity
-
shouldRemoveSoulSpeed
-
removeSoulSpeed
protected void removeSoulSpeed() -
tryAddSoulSpeed
protected void tryAddSoulSpeed() -
removeFrost
protected void removeFrost() -
tryAddFrost
protected void tryAddFrost() -
onChangedBlock
-
isBaby
public boolean isBaby() -
getScale
public float getScale() -
isAffectedByFluids
protected boolean isAffectedByFluids() -
tickDeath
protected void tickDeath() -
shouldDropExperience
public boolean shouldDropExperience() -
shouldDropLoot
protected boolean shouldDropLoot() -
decreaseAirSupply
protected int decreaseAirSupply(int pCurrentAir) -
increaseAirSupply
protected int increaseAirSupply(int pCurrentAir) -
getExperienceReward
public int getExperienceReward() -
isAlwaysExperienceDropper
protected boolean isAlwaysExperienceDropper() -
getRandom
-
getLastHurtByMob
-
getLastAttacker
- 指定者:
getLastAttacker
在接口中Attackable
-
getLastHurtByMobTimestamp
public int getLastHurtByMobTimestamp() -
setLastHurtByPlayer
-
setLastHurtByMob
-
getLastHurtMob
-
getLastHurtMobTimestamp
public int getLastHurtMobTimestamp() -
setLastHurtMob
-
getNoActionTime
public int getNoActionTime() -
setNoActionTime
public void setNoActionTime(int pIdleTime) -
shouldDiscardFriction
public boolean shouldDiscardFriction() -
setDiscardFriction
public void setDiscardFriction(boolean pDiscardFriction) -
doesEmitEquipEvent
-
onEquipItem
-
remove
-
addAdditionalSaveData
- 指定者:
addAdditionalSaveData
在类中Entity
-
readAdditionalSaveData
- 指定者:
readAdditionalSaveData
在类中Entity
-
tickEffects
protected void tickEffects() -
updateInvisibilityStatus
protected void updateInvisibilityStatus() -
updateGlowingStatus
private void updateGlowingStatus() -
getVisibilityPercent
-
canAttack
-
canAttack
-
canBeSeenAsEnemy
public boolean canBeSeenAsEnemy() -
canBeSeenByAnyone
public boolean canBeSeenByAnyone() -
areAllEffectsAmbient
-
removeEffectParticles
protected void removeEffectParticles() -
removeAllEffects
public boolean removeAllEffects() -
getActiveEffects
-
getActiveEffectsMap
-
hasEffect
-
getEffect
-
addEffect
-
addEffect
-
canBeAffected
-
forceAddEffect
-
isInvertedHealAndHarm
public boolean isInvertedHealAndHarm() -
removeEffectNoUpdate
-
removeEffect
-
onEffectAdded
-
sendEffectToPassengers
-
onEffectUpdated
protected void onEffectUpdated(MobEffectInstance pEffectInstance, boolean pForced, @Nullable Entity pEntity) -
onEffectRemoved
-
heal
public void heal(float pHealAmount) -
getHealth
public float getHealth() -
setHealth
public void setHealth(float pHealth) -
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
-
getLootTableSeed
public long getLootTableSeed() -
dropFromLootTable
-
knockback
public void knockback(double pStrength, double pX, double pZ) -
indicateDamage
public void indicateDamage(double pXDistance, double pZDistance) -
getHurtSound
-
getDeathSound
-
getFallDamageSound
-
skipDropExperience
public void skipDropExperience() -
wasExperienceConsumed
public boolean wasExperienceConsumed() -
getMeleeAttackReferencePosition
-
getHurtDir
public float getHurtDir() -
getFallSounds
-
getDrinkingSound
-
getEatingSound
-
getLastClimbablePos
-
onClimbable
public boolean onClimbable() -
trapdoorUsableAsLadder
-
isAlive
public boolean isAlive() -
causeFallDamage
- 覆盖:
causeFallDamage
在类中Entity
-
calculateFallDamage
protected int calculateFallDamage(float pFallDistance, float pDamageMultiplier) -
playBlockFallSound
protected void playBlockFallSound() -
animateHurt
public void animateHurt(float pYaw) - 覆盖:
animateHurt
在类中Entity
-
getArmorValue
public int getArmorValue() -
hurtArmor
-
hurtHelmet
-
hurtCurrentlyUsedShield
protected void hurtCurrentlyUsedShield(float pDamageAmount) -
getDamageAfterArmorAbsorb
-
getDamageAfterMagicAbsorb
-
actuallyHurt
-
getCombatTracker
-
getKillCredit
-
getMaxHealth
public final float getMaxHealth() -
getArrowCount
public final int getArrowCount() -
setArrowCount
public final void setArrowCount(int pCount) -
getStingerCount
public final int getStingerCount() -
setStingerCount
public final void setStingerCount(int pStingerCount) -
getCurrentSwingDuration
private int getCurrentSwingDuration() -
swing
-
swing
-
handleDamageEvent
- 覆盖:
handleDamageEvent
在类中Entity
-
handleEntityEvent
public void handleEntityEvent(byte pId) - 覆盖:
handleEntityEvent
在类中Entity
-
makePoofParticles
private void makePoofParticles() -
swapHandItems
private void swapHandItems() -
onBelowWorld
protected void onBelowWorld()- 覆盖:
onBelowWorld
在类中Entity
-
updateSwingTime
protected void updateSwingTime() -
getAttribute
-
getAttributeValue
-
getAttributeValue
-
getAttributeBaseValue
-
getAttributeBaseValue
-
getAttributes
-
getMobType
-
getMainHandItem
-
getOffhandItem
-
isHolding
-
isHolding
-
getItemInHand
-
setItemInHand
-
hasItemInSlot
-
getArmorSlots
- 覆盖:
getArmorSlots
在类中Entity
-
getItemBySlot
-
setItemSlot
- 覆盖:
setItemSlot
在类中Entity
-
verifyEquippedItem
-
getArmorCoverPercentage
public float getArmorCoverPercentage() -
setSprinting
public void setSprinting(boolean pSprinting) - 覆盖:
setSprinting
在类中Entity
-
getSoundVolume
protected float getSoundVolume() -
getVoicePitch
public float getVoicePitch() -
isImmobile
protected boolean isImmobile() -
push
-
dismountVehicle
-
shouldShowName
public boolean shouldShowName()- 覆盖:
shouldShowName
在类中Entity
-
getJumpPower
protected float getJumpPower() -
getJumpBoostPower
public float getJumpBoostPower() -
jumpFromGround
protected void jumpFromGround() -
goDownInWater
已过时。 -
jumpInLiquid
已过时。 -
getWaterSlowDown
protected float getWaterSlowDown() -
canStandOnFluid
-
travel
-
travelRidden
-
tickRidden
-
getRiddenInput
-
getRiddenSpeed
-
calculateEntityAnimation
public void calculateEntityAnimation(boolean pIncludeHeight) -
updateWalkAnimation
protected void updateWalkAnimation(float pPartialTick) -
handleRelativeFrictionAndCalculateMovement
-
getFluidFallingAdjustedMovement
-
handleOnClimbable
-
getFrictionInfluencedSpeed
private float getFrictionInfluencedSpeed(float pFriction) -
getFlyingSpeed
protected float getFlyingSpeed() -
getSpeed
public float getSpeed() -
setSpeed
public void setSpeed(float pSpeed) -
doHurtTarget
-
tick
public void tick() -
detectEquipmentUpdates
private void detectEquipmentUpdates() -
collectEquipmentChanges
-
equipmentHasChanged
-
handleHandSwap
-
handleEquipmentChanges
-
getLastArmorItem
-
setLastArmorItem
-
getLastHandItem
-
setLastHandItem
-
tickHeadTurn
protected float tickHeadTurn(float pYRot, float pAnimStep) -
aiStep
public void aiStep() -
isSensitiveToWater
public boolean isSensitiveToWater() -
updateFallFlying
private void updateFallFlying() -
serverAiStep
protected void serverAiStep() -
pushEntities
protected void pushEntities() -
checkAutoSpinAttack
-
doPush
-
doAutoAttackOnTouch
-
isAutoSpinAttack
public boolean isAutoSpinAttack() -
stopRiding
public void stopRiding()- 覆盖:
stopRiding
在类中Entity
-
rideTick
public void rideTick() -
lerpTo
public void lerpTo(double pX, double pY, double pZ, float pYaw, float pPitch, int pPosRotationIncrements, boolean pTeleport) -
lerpHeadTo
public void lerpHeadTo(float pYaw, int pPitch) - 覆盖:
lerpHeadTo
在类中Entity
-
setJumping
public void setJumping(boolean pJumping) -
onItemPickup
-
take
-
hasLineOfSight
-
getViewYRot
public float getViewYRot(float pPartialTicks) - 覆盖:
getViewYRot
在类中Entity
-
getAttackAnim
public float getAttackAnim(float pPartialTick) -
isPickable
public boolean isPickable()- 覆盖:
isPickable
在类中Entity
-
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中Entity
-
getYHeadRot
public float getYHeadRot()- 覆盖:
getYHeadRot
在类中Entity
-
setYHeadRot
public void setYHeadRot(float pRotation) - 覆盖:
setYHeadRot
在类中Entity
-
setYBodyRot
public void setYBodyRot(float pOffset) - 覆盖:
setYBodyRot
在类中Entity
-
getRelativePortalPosition
- 覆盖:
getRelativePortalPosition
在类中Entity
-
resetForwardDirectionOfRelativePortalPosition
-
getAbsorptionAmount
public float getAbsorptionAmount() -
setAbsorptionAmount
public void setAbsorptionAmount(float pAbsorptionAmount) -
onEnterCombat
public void onEnterCombat() -
onLeaveCombat
public void onLeaveCombat() -
updateEffectVisibility
protected void updateEffectVisibility() -
getMainArm
-
isUsingItem
public boolean isUsingItem() -
getUsedItemHand
-
updatingUsingItem
private void updatingUsingItem() -
updateUsingItem
-
shouldTriggerItemUseEffects
private boolean shouldTriggerItemUseEffects() -
updateSwimAmount
private void updateSwimAmount() -
setLivingEntityFlag
protected void setLivingEntityFlag(int pKey, boolean pValue) -
startUsingItem
-
onSyncedDataUpdated
- 覆盖:
onSyncedDataUpdated
在类中Entity
-
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()- 覆盖:
isVisuallySwimming
在类中Entity
-
getFallFlyingTicks
public int getFallFlyingTicks() -
randomTeleport
public boolean randomTeleport(double pX, double pY, double pZ, boolean pBroadcastTeleport) -
isAffectedByPotions
public boolean isAffectedByPotions() -
attackable
public boolean attackable() -
setRecordPlayingNearby
-
canTakeItem
-
getDimensions
- 覆盖:
getDimensions
在类中Entity
-
getDismountPoses
-
getLocalBoundsForPose
-
canChangeDimensions
public boolean canChangeDimensions()- 覆盖:
canChangeDimensions
在类中Entity
-
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
- 覆盖:
getEyeHeight
在类中Entity
-
getStandingEyeHeight
-
getProjectile
-
eat
-
addEatEffect
-
entityEventForEquipmentBreak
-
broadcastBreakEvent
-
broadcastBreakEvent
-
curePotionEffects
Removes all potion effects that have curativeItem as a curative item for its effect- 参数:
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.- 参数:
player
- The player who is riding the entity.- 返回:
- If the player should orient the same direction as this entity.
-
getCapability
从接口复制的说明: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.- 指定者:
getCapability
在接口中ICapabilityProvider
- 覆盖:
getCapability
在类中CapabilityProvider<Entity>
- 参数:
capability
- The capability to checkfacing
- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'- 返回:
- The requested an optional holding the requested capability.
-
invalidateCaps
public void invalidateCaps()- 指定者:
invalidateCaps
在接口中ICapabilityProviderImpl<Entity>
- 覆盖:
invalidateCaps
在类中CapabilityProvider<Entity>
-
reviveCaps
public void reviveCaps()- 指定者:
reviveCaps
在接口中ICapabilityProviderImpl<Entity>
- 覆盖:
reviveCaps
在类中CapabilityProvider<Entity>
-
getBoundingBoxForCulling
- 覆盖:
getBoundingBoxForCulling
在类中Entity
-
getEquipmentSlotForItem
-
createEquipmentSlotAccess
-
getEquipmentSlot
-
getSlot
-
canFreeze
public boolean canFreeze() -
isCurrentlyGlowing
public boolean isCurrentlyGlowing()- 覆盖:
isCurrentlyGlowing
在类中Entity
-
getVisualRotationYInDegrees
public float getVisualRotationYInDegrees()- 覆盖:
getVisualRotationYInDegrees
在类中Entity
-
recreateFromPacket
- 覆盖:
recreateFromPacket
在类中Entity
-
canDisableShield
public boolean canDisableShield() -
maxUpStep
已过时。UseIForgeEntity.getStepHeight()
to get the real step height value.Gets the value of the legacymaxUpStep()
field.
-
IForgeEntity.getStepHeight()
to get the real step height value.