类 Player
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.player.Player
- 所有已实现的接口:
SyncedDataHolder
,Attackable
,EntityAccess
,Nameable
,ScoreHolder
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,IForgePlayer
,INBTSerializable<CompoundTag>
- 直接已知子类:
AbstractClientPlayer
,ServerPlayer
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private final Abilities
float
static final int
private boolean
protected int
private final ItemCooldowns
static final int
static final float
private static final int
private int
private static final EntityDataAccessor
<Float> protected static final EntityDataAccessor
<Byte> protected static final EntityDataAccessor
<Byte> private static final EntityDataAccessor
<Integer> protected static final EntityDataAccessor
<CompoundTag> protected static final EntityDataAccessor
<CompoundTag> static final float
static final float
static final float
static final HumanoidArm
static final int
static final Vec3
protected final float
private Component
protected int
static final int
protected PlayerEnderChestContainer
int
float
protected FoodData
private Pose
private final com.mojang.authlib.GameProfile
static final int
protected float
private boolean
(专用程序包) final Inventory
final InventoryMenu
protected int
private ItemStack
private int
private static final org.slf4j.Logger
static final int
float
private final LazyOptional
<IItemHandler> private final LazyOptional
<IItemHandler> private final LazyOptional
<IItemHandler> private static final Map
<Pose, EntityDimensions> private final Collection
<MutableComponent> private boolean
static final int
private int
static final EntityDimensions
private final Collection
<MutableComponent> static final float
static final float
int
private long
int
static final int
protected boolean
double
double
double
double
double
double
从类继承的字段 net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
从类继承的字段 net.minecraft.world.entity.Entity
BASE_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, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
actuallyHurt
(ServerLevel p_365751_, DamageSource p_36312_, float p_36313_) void
addAdditionalSaveData
(CompoundTag p_36265_) boolean
void
aiStep()
void
animateHurt
(float p_265280_) void
int
awardRecipes
(Collection<RecipeHolder<?>> p_36213_) void
awardRecipesByKey
(List<ResourceKey<Recipe<?>>> p_312830_) void
awardStat
(ResourceLocation p_36221_) void
awardStat
(ResourceLocation p_36223_, int p_36224_) void
void
boolean
blockActionRestricted
(Level p_36188_, BlockPos p_36189_, GameType p_36190_) double
protected void
blockUsingShield
(LivingEntity p_36295_) boolean
boolean
boolean
boolean
canEat
(boolean p_36392_) private boolean
canFallAtLeast
(double p_333341_, double p_331138_, float p_333865_) protected boolean
canGlide()
boolean
canHarmPlayer
(Player p_36169_) boolean
canInteractWithBlock
(BlockPos p_331132_, double p_328439_) boolean
canInteractWithEntity
(Entity p_333619_, double p_330803_) boolean
canInteractWithEntity
(AABB p_329456_, double p_332906_) protected boolean
canPlayerFitWithinBlocksAndEntitiesWhen
(Pose p_297636_) boolean
boolean
boolean
canUseSlot
(EquipmentSlot p_333717_) boolean
causeFallDamage
(float p_150093_, float p_150094_, DamageSource p_150095_) void
causeFoodExhaustion
(float p_36400_) void
static AttributeSupplier.Builder
protected ItemCooldowns
void
private MutableComponent
decorateDisplayNameComponent
(MutableComponent p_36219_) protected void
defineSynchedData
(SynchedEntityData.Builder p_335298_) protected void
void
die
(DamageSource p_36152_) void
disableShield
(ItemStack p_367821_) void
displayClientMessage
(Component p_36216_, boolean p_36217_) protected void
doAutoAttackOnTouch
(LivingEntity p_36355_) protected void
protected boolean
doesEmitEquipEvent
(EquipmentSlot p_219741_) protected void
protected void
dropEquipment
(ServerLevel p_369623_) double
protected boolean
float
float
getAttackStrengthScale
(float p_36404_) protected int
getBaseExperienceReward
(ServerLevel p_361105_) protected float
<T> LazyOptional
<T> getCapability
(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.float
protected SoundEvent
getDefaultDimensions
(Pose p_36166_) float
getDestroySpeed
(BlockState p_36282_) 已过时。float
getDestroySpeed
(BlockState p_36282_, BlockPos pos) int
com.google.common.collect.ImmutableList
<Pose> protected float
getEnchantedDamage
(Entity p_344881_, float p_345044_, DamageSource p_343261_) int
protected int
protected float
com.mojang.authlib.GameProfile
float
protected SoundEvent
getHurtSound
(DamageSource p_36310_) getItemBySlot
(EquipmentSlot p_36257_) float
getLuck()
protected float
protected Entity.MovementEmission
getName()
int
getProjectile
(ItemStack p_36349_) getRopeHoldPosition
(float p_36374_) int
getScore()
int
getSlot
(int p_150112_) float
getSpeed()
protected SoundEvent
protected SoundEvent
protected SoundEvent
int
void
giveExperienceLevels
(int p_36276_) void
giveExperiencePoints
(int p_36291_) void
handleCreativeModeItemDrop
(ItemStack p_369068_) void
handleEntityEvent
(byte p_36120_) boolean
boolean
boolean
hasCorrectToolForDrops
(BlockState p_36299_) boolean
boolean
hasPermissions
(int p_370047_) protected void
hurtArmor
(DamageSource p_36251_, float p_36252_) protected void
hurtCurrentlyUsedShield
(float p_36383_) protected void
hurtHelmet
(DamageSource p_150103_, float p_150104_) boolean
hurtServer
(ServerLevel p_369360_, DamageSource p_364544_, float p_368576_) void
increaseScore
(int p_36402_) interactOn
(Entity p_36158_, InteractionHand p_36159_) protected void
internalSetAbsorptionAmount
(float p_301235_) private boolean
isAboveGround
(float p_328745_) boolean
protected boolean
boolean
boolean
abstract boolean
private boolean
isEquipped
(Item p_365145_) boolean
isHurt()
boolean
protected boolean
boolean
isInvulnerableTo
(ServerLevel p_360775_, DamageSource p_36249_) boolean
boolean
isModelPartShown
(PlayerModelPart p_36171_) boolean
boolean
boolean
boolean
boolean
abstract boolean
protected boolean
boolean
boolean
boolean
killedEntity
(ServerLevel p_219735_, LivingEntity p_219736_) void
void
makeStuckInBlock
(BlockState p_36196_, Vec3 p_36197_) protected Vec3
maybeBackOffFromEdge
(Vec3 p_36201_, MoverType p_36202_) boolean
mayBuild()
boolean
mayUseItemAt
(BlockPos p_36205_, Direction p_36206_, ItemStack p_36207_) private void
void
onAboveBubbleCol
(boolean p_364259_) boolean
void
onEnchantmentPerformed
(ItemStack p_36172_, int p_36173_) void
onInsideBubbleColumn
(boolean p_369072_) void
void
openCommandBlock
(CommandBlockEntity p_36191_) void
openHorseInventory
(AbstractHorse p_36167_, Container p_36168_) void
openItemGui
(ItemStack p_36174_, InteractionHand p_36175_) void
openJigsawBlock
(JigsawBlockEntity p_36192_) openMenu
(MenuProvider p_36150_) void
openMinecartCommandBlock
(BaseCommandBlock p_36182_) void
openStructureBlock
(StructureBlockEntity p_36194_) void
openTextEdit
(SignBlockEntity p_36193_, boolean p_277837_) void
playNotifySound
(SoundEvent p_36140_, SoundSource p_36141_, float p_36142_, float p_36143_) private void
playShoulderEntityAmbientSound
(CompoundTag p_36368_) void
playSound
(SoundEvent p_36137_, float p_36138_, float p_36139_) protected void
playStepSound
(BlockPos p_282121_, BlockState p_282194_) void
readAdditionalSaveData
(CompoundTag p_36215_) void
Force the displayed name to refresh, by firingPlayerEvent.NameFormat
, using the real player name as event parameter.void
remove
(Entity.RemovalReason p_150097_) protected void
void
void
void
int
resetRecipes
(Collection<RecipeHolder<?>> p_36263_) void
void
respawn()
private void
respawnEntityOnShoulder
(CompoundTag p_36371_) void
rideTick()
void
sendMerchantOffers
(int p_36121_, MerchantOffers p_36122_, int p_36123_, int p_36124_, boolean p_36125_, boolean p_36126_) protected void
void
setClientLoaded
(boolean p_377570_) boolean
setEntityOnShoulder
(CompoundTag p_36361_) void
setForcedPose
(Pose pose) Force a pose for the player.void
setIgnoreFallDamageFromCurrentImpulse
(boolean p_344459_) void
setItemSlot
(EquipmentSlot p_36161_, ItemStack p_36162_) void
setLastDeathLocation
(Optional<GlobalPos> p_219750_) void
setMainArm
(HumanoidArm p_36164_) void
setReducedDebugInfo
(boolean p_36394_) void
setRemainingFireTicks
(int p_36353_) void
setScore
(int p_36398_) protected void
setShoulderEntityLeft
(CompoundTag p_36363_) protected void
setShoulderEntityRight
(CompoundTag p_36365_) boolean
boolean
boolean
void
startAutoSpinAttack
(int p_204080_, float p_344736_, ItemStack p_343326_) void
com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> startSleepInBed
(BlockPos p_36203_) void
void
stopSleepInBed
(boolean p_36226_, boolean p_36227_) void
void
void
tick()
void
protected void
private void
void
void
triggerRecipeCrafted
(RecipeHolder<?> p_298309_, List<ItemStack> p_283609_) void
boolean
private void
protected boolean
protected void
void
void
updateTutorialInventoryAction
(ItemStack p_150098_, ItemStack p_150099_, ClickAction p_150100_) protected boolean
从类继承的方法 net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttackType, canBeAffected, canBeNameTagged, canBeSeenByAnyone, canBreatheUnderwater, cancelLerp, canDisableShield, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getEffect, getEffectiveGravity, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getItemBlockingWith, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayerTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlotForHand, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, igniteForTicks, increaseAirSupply, indicateDamage, invalidateCaps, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isLookingAtMe, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makePoofParticles, makeSound, maxUpStep, onAttributeUpdated, onBelowWorld, onChangedBlock, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onSyncedDataUpdated, playBlockFallSound, playHurtSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, reviveCaps, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, skipDropExperience, spawnItemParticles, startSleeping, startUsingItem, stopRiding, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickHeadTurn, tickRidden, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canTeleport, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, checkBelowWorld, checkDespawn, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRotationVector, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterOrSwimmable, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, markHurt, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAddedToWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onPassengerTurned, onRemoval, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从接口继承的方法 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, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluid
从接口继承的方法 net.minecraftforge.common.extensions.IForgePlayer
isCloseEnough
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_MAIN_HAND
-
DEFAULT_MODEL_CUSTOMIZATION
public static final int DEFAULT_MODEL_CUSTOMIZATION- 另请参阅:
-
MAX_HEALTH
public static final int MAX_HEALTH- 另请参阅:
-
SLEEP_DURATION
public static final int SLEEP_DURATION- 另请参阅:
-
WAKE_UP_DURATION
public static final int WAKE_UP_DURATION- 另请参阅:
-
ENDER_SLOT_OFFSET
public static final int ENDER_SLOT_OFFSET- 另请参阅:
-
HELD_ITEM_SLOT
public static final int HELD_ITEM_SLOT- 另请参阅:
-
CRAFTING_SLOT_OFFSET
public static final int CRAFTING_SLOT_OFFSET- 另请参阅:
-
DEFAULT_BLOCK_INTERACTION_RANGE
public static final float DEFAULT_BLOCK_INTERACTION_RANGE- 另请参阅:
-
DEFAULT_ENTITY_INTERACTION_RANGE
public static final float DEFAULT_ENTITY_INTERACTION_RANGE- 另请参阅:
-
CROUCH_BB_HEIGHT
public static final float CROUCH_BB_HEIGHT- 另请参阅:
-
SWIMMING_BB_WIDTH
public static final float SWIMMING_BB_WIDTH- 另请参阅:
-
SWIMMING_BB_HEIGHT
public static final float SWIMMING_BB_HEIGHT- 另请参阅:
-
DEFAULT_EYE_HEIGHT
public static final float DEFAULT_EYE_HEIGHT- 另请参阅:
-
CURRENT_IMPULSE_CONTEXT_RESET_GRACE_TIME_TICKS
private static final int CURRENT_IMPULSE_CONTEXT_RESET_GRACE_TIME_TICKS- 另请参阅:
-
DEFAULT_VEHICLE_ATTACHMENT
-
STANDING_DIMENSIONS
-
POSES
-
DATA_PLAYER_ABSORPTION_ID
-
DATA_SCORE_ID
-
DATA_PLAYER_MODE_CUSTOMISATION
-
DATA_PLAYER_MAIN_HAND
-
DATA_SHOULDER_LEFT
-
DATA_SHOULDER_RIGHT
-
CLIENT_LOADED_TIMEOUT_TIME
public static final int CLIENT_LOADED_TIMEOUT_TIME- 另请参阅:
-
timeEntitySatOnShoulder
private long timeEntitySatOnShoulder -
inventory
-
enderChestInventory
-
inventoryMenu
-
containerMenu
-
foodData
-
jumpTriggerTime
protected int jumpTriggerTime -
clientLoaded
private boolean clientLoaded -
clientLoadedTimeoutTimer
protected int clientLoadedTimeoutTimer -
oBob
public float oBob -
bob
public float bob -
takeXpDelay
public int takeXpDelay -
xCloakO
public double xCloakO -
yCloakO
public double yCloakO -
zCloakO
public double zCloakO -
xCloak
public double xCloak -
yCloak
public double yCloak -
zCloak
public double zCloak -
sleepCounter
private int sleepCounter -
wasUnderwater
protected boolean wasUnderwater -
abilities
-
experienceLevel
public int experienceLevel -
totalExperience
public int totalExperience -
experienceProgress
public float experienceProgress -
enchantmentSeed
protected int enchantmentSeed -
defaultFlySpeed
protected final float defaultFlySpeed- 另请参阅:
-
lastLevelUpTime
private int lastLevelUpTime -
gameProfile
private final com.mojang.authlib.GameProfile gameProfile -
reducedDebugInfo
private boolean reducedDebugInfo -
lastItemInMainHand
-
cooldowns
-
lastDeathLocation
-
fishing
-
hurtDir
protected float hurtDir -
currentImpulseImpactPos
-
currentExplosionCause
-
ignoreFallDamageFromCurrentImpulse
private boolean ignoreFallDamageFromCurrentImpulse -
currentImpulseContextResetGraceTime
private int currentImpulseContextResetGraceTime -
prefixes
-
suffixes
-
forcedPose
-
displayname
-
playerMainHandler
-
playerEquipmentHandler
-
playerJoinedHandler
-
-
构造器详细资料
-
Player
-
-
方法详细资料
-
blockActionRestricted
-
createAttributes
-
defineSynchedData
- 覆盖:
defineSynchedData
在类中LivingEntity
-
tick
public void tick()- 覆盖:
tick
在类中LivingEntity
-
getMaxHeadRotationRelativeToBody
protected float getMaxHeadRotationRelativeToBody() -
isSecondaryUseActive
public boolean isSecondaryUseActive() -
wantsToStopRiding
protected boolean wantsToStopRiding() -
isStayingOnGroundSurface
protected boolean isStayingOnGroundSurface() -
updateIsUnderwater
protected boolean updateIsUnderwater() -
onAboveBubbleCol
public void onAboveBubbleCol(boolean p_364259_) - 覆盖:
onAboveBubbleCol
在类中Entity
-
onInsideBubbleColumn
public void onInsideBubbleColumn(boolean p_369072_) - 覆盖:
onInsideBubbleColumn
在类中Entity
-
turtleHelmetTick
private void turtleHelmetTick() -
isEquipped
-
createItemCooldowns
-
moveCloak
private void moveCloak() -
updatePlayerPose
protected void updatePlayerPose() -
canPlayerFitWithinBlocksAndEntitiesWhen
-
getSwimSound
- 覆盖:
getSwimSound
在类中Entity
-
getSwimSplashSound
- 覆盖:
getSwimSplashSound
在类中Entity
-
getSwimHighSpeedSplashSound
- 覆盖:
getSwimHighSpeedSplashSound
在类中Entity
-
getDimensionChangingDelay
public int getDimensionChangingDelay()- 覆盖:
getDimensionChangingDelay
在类中Entity
-
playSound
-
playNotifySound
public void playNotifySound(SoundEvent p_36140_, SoundSource p_36141_, float p_36142_, float p_36143_) -
getSoundSource
- 覆盖:
getSoundSource
在类中Entity
-
getFireImmuneTicks
protected int getFireImmuneTicks()- 覆盖:
getFireImmuneTicks
在类中Entity
-
handleEntityEvent
public void handleEntityEvent(byte p_36120_) - 覆盖:
handleEntityEvent
在类中LivingEntity
-
closeContainer
public void closeContainer() -
doCloseContainer
protected void doCloseContainer() -
rideTick
public void rideTick()- 覆盖:
rideTick
在类中LivingEntity
-
serverAiStep
protected void serverAiStep()- 覆盖:
serverAiStep
在类中LivingEntity
-
aiStep
public void aiStep()- 覆盖:
aiStep
在类中LivingEntity
-
tickRegeneration
protected void tickRegeneration() -
playShoulderEntityAmbientSound
-
touch
-
getScore
public int getScore() -
setScore
public void setScore(int p_36398_) -
increaseScore
public void increaseScore(int p_36402_) -
startAutoSpinAttack
-
getWeaponItem
- 覆盖:
getWeaponItem
在类中LivingEntity
-
die
- 覆盖:
die
在类中LivingEntity
-
dropEquipment
- 覆盖:
dropEquipment
在类中LivingEntity
-
destroyVanishingCursedItems
protected void destroyVanishingCursedItems() -
getHurtSound
- 覆盖:
getHurtSound
在类中LivingEntity
-
getDeathSound
- 覆盖:
getDeathSound
在类中LivingEntity
-
handleCreativeModeItemDrop
-
drop
-
drop
-
getDestroySpeed
已过时。Use无效输入:''
-
getDestroySpeed
-
hasCorrectToolForDrops
-
readAdditionalSaveData
- 覆盖:
readAdditionalSaveData
在类中LivingEntity
-
addAdditionalSaveData
- 覆盖:
addAdditionalSaveData
在类中LivingEntity
-
isInvulnerableTo
- 覆盖:
isInvulnerableTo
在类中LivingEntity
-
hurtServer
- 覆盖:
hurtServer
在类中LivingEntity
-
blockUsingShield
- 覆盖:
blockUsingShield
在类中LivingEntity
-
canBeSeenAsEnemy
public boolean canBeSeenAsEnemy()- 覆盖:
canBeSeenAsEnemy
在类中LivingEntity
-
canHarmPlayer
-
hurtArmor
- 覆盖:
hurtArmor
在类中LivingEntity
-
hurtHelmet
- 覆盖:
hurtHelmet
在类中LivingEntity
-
hurtCurrentlyUsedShield
protected void hurtCurrentlyUsedShield(float p_36383_) - 覆盖:
hurtCurrentlyUsedShield
在类中LivingEntity
-
actuallyHurt
- 覆盖:
actuallyHurt
在类中LivingEntity
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled() -
openTextEdit
-
openMinecartCommandBlock
-
openCommandBlock
-
openStructureBlock
-
openJigsawBlock
-
openHorseInventory
-
openMenu
-
sendMerchantOffers
public void sendMerchantOffers(int p_36121_, MerchantOffers p_36122_, int p_36123_, int p_36124_, boolean p_36125_, boolean p_36126_) -
openItemGui
-
interactOn
-
removeVehicle
public void removeVehicle()- 覆盖:
removeVehicle
在类中Entity
-
isImmobile
protected boolean isImmobile()- 覆盖:
isImmobile
在类中LivingEntity
-
isAffectedByFluids
public boolean isAffectedByFluids()- 覆盖:
isAffectedByFluids
在类中LivingEntity
-
maybeBackOffFromEdge
- 覆盖:
maybeBackOffFromEdge
在类中Entity
-
isAboveGround
private boolean isAboveGround(float p_328745_) -
canFallAtLeast
private boolean canFallAtLeast(double p_333341_, double p_331138_, float p_333865_) -
attack
-
getEnchantedDamage
-
doAutoAttackOnTouch
- 覆盖:
doAutoAttackOnTouch
在类中LivingEntity
-
disableShield
-
crit
-
magicCrit
-
sweepAttack
public void sweepAttack() -
respawn
public void respawn() -
remove
- 覆盖:
remove
在类中LivingEntity
-
isLocalPlayer
public boolean isLocalPlayer() -
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile() -
getInventory
-
getAbilities
-
hasInfiniteMaterials
public boolean hasInfiniteMaterials()- 覆盖:
hasInfiniteMaterials
在类中LivingEntity
-
updateTutorialInventoryAction
public void updateTutorialInventoryAction(ItemStack p_150098_, ItemStack p_150099_, ClickAction p_150100_) -
hasContainerOpen
public boolean hasContainerOpen() -
canDropItems
public boolean canDropItems() -
startSleepInBed
public com.mojang.datafixers.util.Either<Player.BedSleepingProblem,Unit> startSleepInBed(BlockPos p_36203_) -
stopSleepInBed
public void stopSleepInBed(boolean p_36226_, boolean p_36227_) -
stopSleeping
public void stopSleeping()- 覆盖:
stopSleeping
在类中LivingEntity
-
isSleepingLongEnough
public boolean isSleepingLongEnough() -
getSleepTimer
public int getSleepTimer() -
displayClientMessage
-
awardStat
-
awardStat
-
awardStat
-
awardStat
-
resetStat
-
awardRecipes
-
triggerRecipeCrafted
-
awardRecipesByKey
-
resetRecipes
-
travel
- 覆盖:
travel
在类中LivingEntity
-
canGlide
protected boolean canGlide()- 覆盖:
canGlide
在类中LivingEntity
-
updateSwimming
public void updateSwimming()- 覆盖:
updateSwimming
在类中Entity
-
freeAt
-
getSpeed
public float getSpeed()- 覆盖:
getSpeed
在类中LivingEntity
-
causeFallDamage
- 覆盖:
causeFallDamage
在类中LivingEntity
-
tryToStartFallFlying
public boolean tryToStartFallFlying() -
startFallFlying
public void startFallFlying() -
stopFallFlying
public void stopFallFlying() -
doWaterSplashEffect
protected void doWaterSplashEffect()- 覆盖:
doWaterSplashEffect
在类中Entity
-
playStepSound
- 覆盖:
playStepSound
在类中Entity
-
getFallSounds
- 覆盖:
getFallSounds
在类中LivingEntity
-
killedEntity
- 覆盖:
killedEntity
在类中Entity
-
makeStuckInBlock
- 覆盖:
makeStuckInBlock
在类中Entity
-
giveExperiencePoints
public void giveExperiencePoints(int p_36291_) -
getEnchantmentSeed
public int getEnchantmentSeed() -
onEnchantmentPerformed
-
giveExperienceLevels
public void giveExperienceLevels(int p_36276_) -
getXpNeededForNextLevel
public int getXpNeededForNextLevel() -
causeFoodExhaustion
public void causeFoodExhaustion(float p_36400_) -
getWardenSpawnTracker
-
getFoodData
-
canEat
public boolean canEat(boolean p_36392_) -
isHurt
public boolean isHurt() -
mayBuild
public boolean mayBuild() -
mayUseItemAt
-
getBaseExperienceReward
- 覆盖:
getBaseExperienceReward
在类中LivingEntity
-
isAlwaysExperienceDropper
protected boolean isAlwaysExperienceDropper() -
shouldShowName
public boolean shouldShowName()- 覆盖:
shouldShowName
在类中LivingEntity
-
getMovementEmission
- 覆盖:
getMovementEmission
在类中Entity
-
onUpdateAbilities
public void onUpdateAbilities() -
getName
-
getEnderChestInventory
-
getItemBySlot
- 指定者:
getItemBySlot
在类中LivingEntity
-
doesEmitEquipEvent
- 覆盖:
doesEmitEquipEvent
在类中LivingEntity
-
setItemSlot
- 指定者:
setItemSlot
在类中LivingEntity
-
addItem
-
getHandSlots
- 覆盖:
getHandSlots
在类中LivingEntity
-
getArmorSlots
- 指定者:
getArmorSlots
在类中LivingEntity
-
canUseSlot
- 覆盖:
canUseSlot
在类中LivingEntity
-
setEntityOnShoulder
-
removeEntitiesOnShoulder
protected void removeEntitiesOnShoulder() -
respawnEntityOnShoulder
-
isSpectator
public abstract boolean isSpectator()- 覆盖:
isSpectator
在类中Entity
-
canBeHitByProjectile
public boolean canBeHitByProjectile()- 覆盖:
canBeHitByProjectile
在类中Entity
-
isSwimming
public boolean isSwimming()- 覆盖:
isSwimming
在类中Entity
-
isCreative
public abstract boolean isCreative() -
isPushedByFluid
public boolean isPushedByFluid()- 覆盖:
isPushedByFluid
在类中Entity
-
getScoreboard
-
getDisplayName
- 指定者:
getDisplayName
在接口中Nameable
- 指定者:
getDisplayName
在接口中ScoreHolder
- 覆盖:
getDisplayName
在类中Entity
-
decorateDisplayNameComponent
-
getScoreboardName
- 指定者:
getScoreboardName
在接口中ScoreHolder
- 覆盖:
getScoreboardName
在类中Entity
-
internalSetAbsorptionAmount
protected void internalSetAbsorptionAmount(float p_301235_) -
getAbsorptionAmount
public float getAbsorptionAmount()- 覆盖:
getAbsorptionAmount
在类中LivingEntity
-
isModelPartShown
-
getSlot
- 覆盖:
getSlot
在类中LivingEntity
-
isReducedDebugInfo
public boolean isReducedDebugInfo() -
setReducedDebugInfo
public void setReducedDebugInfo(boolean p_36394_) -
setRemainingFireTicks
public void setRemainingFireTicks(int p_36353_) - 覆盖:
setRemainingFireTicks
在类中Entity
-
getMainArm
- 指定者:
getMainArm
在类中LivingEntity
-
setMainArm
-
getShoulderEntityLeft
-
setShoulderEntityLeft
-
getShoulderEntityRight
-
setShoulderEntityRight
-
getCurrentItemAttackStrengthDelay
public float getCurrentItemAttackStrengthDelay() -
getAttackStrengthScale
public float getAttackStrengthScale(float p_36404_) -
resetAttackStrengthTicker
public void resetAttackStrengthTicker() -
getCooldowns
-
getBlockSpeedFactor
protected float getBlockSpeedFactor()- 覆盖:
getBlockSpeedFactor
在类中LivingEntity
-
getLuck
public float getLuck() -
canUseGameMasterBlocks
public boolean canUseGameMasterBlocks() -
getPermissionLevel
public int getPermissionLevel() -
hasPermissions
public boolean hasPermissions(int p_370047_) -
getDefaultDimensions
- 覆盖:
getDefaultDimensions
在类中LivingEntity
-
getDismountPoses
- 覆盖:
getDismountPoses
在类中LivingEntity
-
getProjectile
- 覆盖:
getProjectile
在类中LivingEntity
-
getRopeHoldPosition
- 覆盖:
getRopeHoldPosition
在类中Entity
-
isAlwaysTicking
public boolean isAlwaysTicking()- 指定者:
isAlwaysTicking
在接口中EntityAccess
- 覆盖:
isAlwaysTicking
在类中Entity
-
isScoping
public boolean isScoping() -
shouldBeSaved
public boolean shouldBeSaved()- 指定者:
shouldBeSaved
在接口中EntityAccess
- 覆盖:
shouldBeSaved
在类中Entity
-
getLastDeathLocation
-
setLastDeathLocation
-
getHurtDir
public float getHurtDir()- 覆盖:
getHurtDir
在类中LivingEntity
-
animateHurt
public void animateHurt(float p_265280_) - 覆盖:
animateHurt
在类中LivingEntity
-
canSprint
public boolean canSprint() -
getFlyingSpeed
protected float getFlyingSpeed()- 覆盖:
getFlyingSpeed
在类中LivingEntity
-
hasClientLoaded
public boolean hasClientLoaded() -
tickClientLoadTimeout
public void tickClientLoadTimeout() -
setClientLoaded
public void setClientLoaded(boolean p_377570_) -
blockInteractionRange
public double blockInteractionRange() -
entityInteractionRange
public double entityInteractionRange() -
canInteractWithEntity
-
canInteractWithEntity
-
canInteractWithBlock
-
setIgnoreFallDamageFromCurrentImpulse
public void setIgnoreFallDamageFromCurrentImpulse(boolean p_344459_) -
isIgnoringFallDamageFromCurrentImpulse
public boolean isIgnoringFallDamageFromCurrentImpulse() -
tryResetCurrentImpulseContext
public void tryResetCurrentImpulseContext() -
resetCurrentImpulseContext
public void resetCurrentImpulseContext() -
getPrefixes
-
getSuffixes
-
refreshDisplayName
public void refreshDisplayName()Force the displayed name to refresh, by firingPlayerEvent.NameFormat
, using the real player name as event parameter. -
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
在类中LivingEntity
- 参数:
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.
-
setForcedPose
Force a pose for the player. If set, the vanilla pose determination and clearance check is skipped. Make sure the pose is clear yourself (e.g. in PlayerTick). This has to be set just once, do not set it every tick. Make sure to clear (null) the pose if not required anymore and only use if necessary. -
getForcedPose
- 返回:
- The forced pose if set, null otherwise
-
shouldRotateWithMinecart
public boolean shouldRotateWithMinecart() -
isControlledByClient
public boolean isControlledByClient()- 覆盖:
isControlledByClient
在类中Entity
-
onClimbable
public boolean onClimbable()- 覆盖:
onClimbable
在类中LivingEntity
-
无效输入:''