类 Player

所有已实现的接口:
SyncedDataHolder, Attackable, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, IForgePlayer, INBTSerializable<CompoundTag>
直接已知子类:
AbstractClientPlayer, ServerPlayer

public abstract class Player extends LivingEntity implements IForgePlayer
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DEFAULT_MAIN_HAND

      public static final HumanoidArm 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

      public static final Vec3 DEFAULT_VEHICLE_ATTACHMENT
    • STANDING_DIMENSIONS

      public static final EntityDimensions STANDING_DIMENSIONS
    • POSES

      private static final Map<Pose,EntityDimensions> POSES
    • DATA_PLAYER_ABSORPTION_ID

      private static final EntityDataAccessor<Float> DATA_PLAYER_ABSORPTION_ID
    • DATA_SCORE_ID

      private static final EntityDataAccessor<Integer> DATA_SCORE_ID
    • DATA_PLAYER_MODE_CUSTOMISATION

      protected static final EntityDataAccessor<Byte> DATA_PLAYER_MODE_CUSTOMISATION
    • DATA_PLAYER_MAIN_HAND

      protected static final EntityDataAccessor<Byte> DATA_PLAYER_MAIN_HAND
    • DATA_SHOULDER_LEFT

      protected static final EntityDataAccessor<CompoundTag> DATA_SHOULDER_LEFT
    • DATA_SHOULDER_RIGHT

      protected static final EntityDataAccessor<CompoundTag> DATA_SHOULDER_RIGHT
    • CLIENT_LOADED_TIMEOUT_TIME

      public static final int CLIENT_LOADED_TIMEOUT_TIME
      另请参阅:
    • timeEntitySatOnShoulder

      private long timeEntitySatOnShoulder
    • inventory

      final Inventory inventory
    • enderChestInventory

      protected PlayerEnderChestContainer enderChestInventory
    • inventoryMenu

      public final InventoryMenu inventoryMenu
    • containerMenu

      public AbstractContainerMenu containerMenu
    • foodData

      protected FoodData 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

      private final Abilities 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

      private ItemStack lastItemInMainHand
    • cooldowns

      private final ItemCooldowns cooldowns
    • lastDeathLocation

      private Optional<GlobalPos> lastDeathLocation
    • fishing

      @Nullable public FishingHook fishing
    • hurtDir

      protected float hurtDir
    • currentImpulseImpactPos

      @Nullable public Vec3 currentImpulseImpactPos
    • currentExplosionCause

      @Nullable public Entity currentExplosionCause
    • ignoreFallDamageFromCurrentImpulse

      private boolean ignoreFallDamageFromCurrentImpulse
    • currentImpulseContextResetGraceTime

      private int currentImpulseContextResetGraceTime
    • prefixes

      private final Collection<MutableComponent> prefixes
    • suffixes

      private final Collection<MutableComponent> suffixes
    • forcedPose

      @Nullable private Pose forcedPose
    • displayname

      private Component displayname
    • playerMainHandler

      private final LazyOptional<IItemHandler> playerMainHandler
    • playerEquipmentHandler

      private final LazyOptional<IItemHandler> playerEquipmentHandler
    • playerJoinedHandler

      private final LazyOptional<IItemHandler> playerJoinedHandler
  • 构造器详细资料

    • Player

      public Player(Level p_250508_, BlockPos p_250289_, float p_251702_, com.mojang.authlib.GameProfile p_252153_)
  • 方法详细资料

    • blockActionRestricted

      public boolean blockActionRestricted(Level p_36188_, BlockPos p_36189_, GameType p_36190_)
    • createAttributes

      public static AttributeSupplier.Builder createAttributes()
    • defineSynchedData

      protected void defineSynchedData(SynchedEntityData.Builder p_335298_)
      覆盖:
      defineSynchedData 在类中 LivingEntity
    • tick

      public void tick()
      覆盖:
      tick 在类中 LivingEntity
    • getMaxHeadRotationRelativeToBody

      protected float getMaxHeadRotationRelativeToBody()
      覆盖:
      getMaxHeadRotationRelativeToBody 在类中 LivingEntity
    • 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

      private boolean isEquipped(Item p_365145_)
    • createItemCooldowns

      protected ItemCooldowns createItemCooldowns()
    • moveCloak

      private void moveCloak()
    • updatePlayerPose

      protected void updatePlayerPose()
    • canPlayerFitWithinBlocksAndEntitiesWhen

      protected boolean canPlayerFitWithinBlocksAndEntitiesWhen(Pose p_297636_)
    • getSwimSound

      protected SoundEvent getSwimSound()
      覆盖:
      getSwimSound 在类中 Entity
    • getSwimSplashSound

      protected SoundEvent getSwimSplashSound()
      覆盖:
      getSwimSplashSound 在类中 Entity
    • getSwimHighSpeedSplashSound

      protected SoundEvent getSwimHighSpeedSplashSound()
      覆盖:
      getSwimHighSpeedSplashSound 在类中 Entity
    • getDimensionChangingDelay

      public int getDimensionChangingDelay()
      覆盖:
      getDimensionChangingDelay 在类中 Entity
    • playSound

      public void playSound(SoundEvent p_36137_, float p_36138_, float p_36139_)
      覆盖:
      playSound 在类中 Entity
    • playNotifySound

      public void playNotifySound(SoundEvent p_36140_, SoundSource p_36141_, float p_36142_, float p_36143_)
    • getSoundSource

      public SoundSource 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

      private void playShoulderEntityAmbientSound(@Nullable CompoundTag p_36368_)
    • touch

      private void touch(Entity p_36278_)
    • getScore

      public int getScore()
    • setScore

      public void setScore(int p_36398_)
    • increaseScore

      public void increaseScore(int p_36402_)
    • startAutoSpinAttack

      public void startAutoSpinAttack(int p_204080_, float p_344736_, ItemStack p_343326_)
    • getWeaponItem

      @Nonnull public ItemStack getWeaponItem()
      覆盖:
      getWeaponItem 在类中 LivingEntity
    • die

      public void die(DamageSource p_36152_)
      覆盖:
      die 在类中 LivingEntity
    • dropEquipment

      protected void dropEquipment(ServerLevel p_369623_)
      覆盖:
      dropEquipment 在类中 LivingEntity
    • destroyVanishingCursedItems

      protected void destroyVanishingCursedItems()
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource p_36310_)
      覆盖:
      getHurtSound 在类中 LivingEntity
    • getDeathSound

      protected SoundEvent getDeathSound()
      覆盖:
      getDeathSound 在类中 LivingEntity
    • handleCreativeModeItemDrop

      public void handleCreativeModeItemDrop(ItemStack p_369068_)
    • drop

      @Nullable public ItemEntity drop(ItemStack p_36177_, boolean p_36178_)
    • drop

      @Nullable public ItemEntity drop(ItemStack p_36179_, boolean p_36180_, boolean p_36181_)
    • getDestroySpeed

      public float getDestroySpeed(BlockState p_36282_)
      已过时。
    • getDestroySpeed

      public float getDestroySpeed(BlockState p_36282_, @Nullable BlockPos pos)
    • hasCorrectToolForDrops

      public boolean hasCorrectToolForDrops(BlockState p_36299_)
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag p_36215_)
      覆盖:
      readAdditionalSaveData 在类中 LivingEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag p_36265_)
      覆盖:
      addAdditionalSaveData 在类中 LivingEntity
    • isInvulnerableTo

      public boolean isInvulnerableTo(ServerLevel p_360775_, DamageSource p_36249_)
      覆盖:
      isInvulnerableTo 在类中 LivingEntity
    • hurtServer

      public boolean hurtServer(ServerLevel p_369360_, DamageSource p_364544_, float p_368576_)
      覆盖:
      hurtServer 在类中 LivingEntity
    • blockUsingShield

      protected void blockUsingShield(LivingEntity p_36295_)
      覆盖:
      blockUsingShield 在类中 LivingEntity
    • canBeSeenAsEnemy

      public boolean canBeSeenAsEnemy()
      覆盖:
      canBeSeenAsEnemy 在类中 LivingEntity
    • canHarmPlayer

      public boolean canHarmPlayer(Player p_36169_)
    • hurtArmor

      protected void hurtArmor(DamageSource p_36251_, float p_36252_)
      覆盖:
      hurtArmor 在类中 LivingEntity
    • hurtHelmet

      protected void hurtHelmet(DamageSource p_150103_, float p_150104_)
      覆盖:
      hurtHelmet 在类中 LivingEntity
    • hurtCurrentlyUsedShield

      protected void hurtCurrentlyUsedShield(float p_36383_)
      覆盖:
      hurtCurrentlyUsedShield 在类中 LivingEntity
    • actuallyHurt

      protected void actuallyHurt(ServerLevel p_365751_, DamageSource p_36312_, float p_36313_)
      覆盖:
      actuallyHurt 在类中 LivingEntity
    • isTextFilteringEnabled

      public boolean isTextFilteringEnabled()
    • openTextEdit

      public void openTextEdit(SignBlockEntity p_36193_, boolean p_277837_)
    • openMinecartCommandBlock

      public void openMinecartCommandBlock(BaseCommandBlock p_36182_)
    • openCommandBlock

      public void openCommandBlock(CommandBlockEntity p_36191_)
    • openStructureBlock

      public void openStructureBlock(StructureBlockEntity p_36194_)
    • openJigsawBlock

      public void openJigsawBlock(JigsawBlockEntity p_36192_)
    • openHorseInventory

      public void openHorseInventory(AbstractHorse p_36167_, Container p_36168_)
    • openMenu

      public OptionalInt openMenu(@Nullable MenuProvider p_36150_)
    • sendMerchantOffers

      public void sendMerchantOffers(int p_36121_, MerchantOffers p_36122_, int p_36123_, int p_36124_, boolean p_36125_, boolean p_36126_)
    • openItemGui

      public void openItemGui(ItemStack p_36174_, InteractionHand p_36175_)
    • interactOn

      public InteractionResult interactOn(Entity p_36158_, InteractionHand p_36159_)
    • removeVehicle

      public void removeVehicle()
      覆盖:
      removeVehicle 在类中 Entity
    • isImmobile

      protected boolean isImmobile()
      覆盖:
      isImmobile 在类中 LivingEntity
    • isAffectedByFluids

      public boolean isAffectedByFluids()
      覆盖:
      isAffectedByFluids 在类中 LivingEntity
    • maybeBackOffFromEdge

      protected Vec3 maybeBackOffFromEdge(Vec3 p_36201_, MoverType p_36202_)
      覆盖:
      maybeBackOffFromEdge 在类中 Entity
    • isAboveGround

      private boolean isAboveGround(float p_328745_)
    • canFallAtLeast

      private boolean canFallAtLeast(double p_333341_, double p_331138_, float p_333865_)
    • attack

      public void attack(Entity p_36347_)
    • getEnchantedDamage

      protected float getEnchantedDamage(Entity p_344881_, float p_345044_, DamageSource p_343261_)
    • doAutoAttackOnTouch

      protected void doAutoAttackOnTouch(LivingEntity p_36355_)
      覆盖:
      doAutoAttackOnTouch 在类中 LivingEntity
    • disableShield

      public void disableShield(ItemStack p_367821_)
    • crit

      public void crit(Entity p_36156_)
    • magicCrit

      public void magicCrit(Entity p_36253_)
    • sweepAttack

      public void sweepAttack()
    • respawn

      public void respawn()
    • remove

      public void remove(Entity.RemovalReason p_150097_)
      覆盖:
      remove 在类中 LivingEntity
    • isLocalPlayer

      public boolean isLocalPlayer()
    • getGameProfile

      public com.mojang.authlib.GameProfile getGameProfile()
    • getInventory

      public Inventory getInventory()
    • getAbilities

      public Abilities 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

      public void displayClientMessage(Component p_36216_, boolean p_36217_)
    • awardStat

      public void awardStat(ResourceLocation p_36221_)
    • awardStat

      public void awardStat(ResourceLocation p_36223_, int p_36224_)
    • awardStat

      public void awardStat(Stat<?> p_36247_)
    • awardStat

      public void awardStat(Stat<?> p_36145_, int p_36146_)
    • resetStat

      public void resetStat(Stat<?> p_36144_)
    • awardRecipes

      public int awardRecipes(Collection<RecipeHolder<?>> p_36213_)
    • triggerRecipeCrafted

      public void triggerRecipeCrafted(RecipeHolder<?> p_298309_, List<ItemStack> p_283609_)
    • awardRecipesByKey

      public void awardRecipesByKey(List<ResourceKey<Recipe<?>>> p_312830_)
    • resetRecipes

      public int resetRecipes(Collection<RecipeHolder<?>> p_36263_)
    • travel

      public void travel(Vec3 p_36359_)
      覆盖:
      travel 在类中 LivingEntity
    • canGlide

      protected boolean canGlide()
      覆盖:
      canGlide 在类中 LivingEntity
    • updateSwimming

      public void updateSwimming()
      覆盖:
      updateSwimming 在类中 Entity
    • freeAt

      protected boolean freeAt(BlockPos p_36351_)
    • getSpeed

      public float getSpeed()
      覆盖:
      getSpeed 在类中 LivingEntity
    • causeFallDamage

      public boolean causeFallDamage(float p_150093_, float p_150094_, DamageSource p_150095_)
      覆盖:
      causeFallDamage 在类中 LivingEntity
    • tryToStartFallFlying

      public boolean tryToStartFallFlying()
    • startFallFlying

      public void startFallFlying()
    • stopFallFlying

      public void stopFallFlying()
    • doWaterSplashEffect

      protected void doWaterSplashEffect()
      覆盖:
      doWaterSplashEffect 在类中 Entity
    • playStepSound

      protected void playStepSound(BlockPos p_282121_, BlockState p_282194_)
      覆盖:
      playStepSound 在类中 Entity
    • getFallSounds

      public LivingEntity.Fallsounds getFallSounds()
      覆盖:
      getFallSounds 在类中 LivingEntity
    • killedEntity

      public boolean killedEntity(ServerLevel p_219735_, LivingEntity p_219736_)
      覆盖:
      killedEntity 在类中 Entity
    • makeStuckInBlock

      public void makeStuckInBlock(BlockState p_36196_, Vec3 p_36197_)
      覆盖:
      makeStuckInBlock 在类中 Entity
    • giveExperiencePoints

      public void giveExperiencePoints(int p_36291_)
    • getEnchantmentSeed

      public int getEnchantmentSeed()
    • onEnchantmentPerformed

      public void onEnchantmentPerformed(ItemStack p_36172_, int p_36173_)
    • giveExperienceLevels

      public void giveExperienceLevels(int p_36276_)
    • getXpNeededForNextLevel

      public int getXpNeededForNextLevel()
    • causeFoodExhaustion

      public void causeFoodExhaustion(float p_36400_)
    • getWardenSpawnTracker

      public Optional<WardenSpawnTracker> getWardenSpawnTracker()
    • getFoodData

      public FoodData getFoodData()
    • canEat

      public boolean canEat(boolean p_36392_)
    • isHurt

      public boolean isHurt()
    • mayBuild

      public boolean mayBuild()
    • mayUseItemAt

      public boolean mayUseItemAt(BlockPos p_36205_, Direction p_36206_, ItemStack p_36207_)
    • getBaseExperienceReward

      protected int getBaseExperienceReward(ServerLevel p_361105_)
      覆盖:
      getBaseExperienceReward 在类中 LivingEntity
    • isAlwaysExperienceDropper

      protected boolean isAlwaysExperienceDropper()
      覆盖:
      isAlwaysExperienceDropper 在类中 LivingEntity
    • shouldShowName

      public boolean shouldShowName()
      覆盖:
      shouldShowName 在类中 LivingEntity
    • getMovementEmission

      protected Entity.MovementEmission getMovementEmission()
      覆盖:
      getMovementEmission 在类中 Entity
    • onUpdateAbilities

      public void onUpdateAbilities()
    • getName

      public Component getName()
      指定者:
      getName 在接口中 Nameable
      覆盖:
      getName 在类中 Entity
    • getEnderChestInventory

      public PlayerEnderChestContainer getEnderChestInventory()
    • getItemBySlot

      public ItemStack getItemBySlot(EquipmentSlot p_36257_)
      指定者:
      getItemBySlot 在类中 LivingEntity
    • doesEmitEquipEvent

      protected boolean doesEmitEquipEvent(EquipmentSlot p_219741_)
      覆盖:
      doesEmitEquipEvent 在类中 LivingEntity
    • setItemSlot

      public void setItemSlot(EquipmentSlot p_36161_, ItemStack p_36162_)
      指定者:
      setItemSlot 在类中 LivingEntity
    • addItem

      public boolean addItem(ItemStack p_36357_)
    • getHandSlots

      public Iterable<ItemStack> getHandSlots()
      覆盖:
      getHandSlots 在类中 LivingEntity
    • getArmorSlots

      public Iterable<ItemStack> getArmorSlots()
      指定者:
      getArmorSlots 在类中 LivingEntity
    • canUseSlot

      public boolean canUseSlot(EquipmentSlot p_333717_)
      覆盖:
      canUseSlot 在类中 LivingEntity
    • setEntityOnShoulder

      public boolean setEntityOnShoulder(CompoundTag p_36361_)
    • removeEntitiesOnShoulder

      protected void removeEntitiesOnShoulder()
    • respawnEntityOnShoulder

      private void respawnEntityOnShoulder(CompoundTag p_36371_)
    • 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

      public Scoreboard getScoreboard()
    • getDisplayName

      public Component getDisplayName()
      指定者:
      getDisplayName 在接口中 Nameable
      指定者:
      getDisplayName 在接口中 ScoreHolder
      覆盖:
      getDisplayName 在类中 Entity
    • decorateDisplayNameComponent

      private MutableComponent decorateDisplayNameComponent(MutableComponent p_36219_)
    • getScoreboardName

      public String getScoreboardName()
      指定者:
      getScoreboardName 在接口中 ScoreHolder
      覆盖:
      getScoreboardName 在类中 Entity
    • internalSetAbsorptionAmount

      protected void internalSetAbsorptionAmount(float p_301235_)
      覆盖:
      internalSetAbsorptionAmount 在类中 LivingEntity
    • getAbsorptionAmount

      public float getAbsorptionAmount()
      覆盖:
      getAbsorptionAmount 在类中 LivingEntity
    • isModelPartShown

      public boolean isModelPartShown(PlayerModelPart p_36171_)
    • getSlot

      public SlotAccess getSlot(int p_150112_)
      覆盖:
      getSlot 在类中 LivingEntity
    • isReducedDebugInfo

      public boolean isReducedDebugInfo()
    • setReducedDebugInfo

      public void setReducedDebugInfo(boolean p_36394_)
    • setRemainingFireTicks

      public void setRemainingFireTicks(int p_36353_)
      覆盖:
      setRemainingFireTicks 在类中 Entity
    • getMainArm

      public HumanoidArm getMainArm()
      指定者:
      getMainArm 在类中 LivingEntity
    • setMainArm

      public void setMainArm(HumanoidArm p_36164_)
    • getShoulderEntityLeft

      public CompoundTag getShoulderEntityLeft()
    • setShoulderEntityLeft

      protected void setShoulderEntityLeft(CompoundTag p_36363_)
    • getShoulderEntityRight

      public CompoundTag getShoulderEntityRight()
    • setShoulderEntityRight

      protected void setShoulderEntityRight(CompoundTag p_36365_)
    • getCurrentItemAttackStrengthDelay

      public float getCurrentItemAttackStrengthDelay()
    • getAttackStrengthScale

      public float getAttackStrengthScale(float p_36404_)
    • resetAttackStrengthTicker

      public void resetAttackStrengthTicker()
    • getCooldowns

      public ItemCooldowns 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

      public EntityDimensions getDefaultDimensions(Pose p_36166_)
      覆盖:
      getDefaultDimensions 在类中 LivingEntity
    • getDismountPoses

      public com.google.common.collect.ImmutableList<Pose> getDismountPoses()
      覆盖:
      getDismountPoses 在类中 LivingEntity
    • getProjectile

      public ItemStack getProjectile(ItemStack p_36349_)
      覆盖:
      getProjectile 在类中 LivingEntity
    • getRopeHoldPosition

      public Vec3 getRopeHoldPosition(float p_36374_)
      覆盖:
      getRopeHoldPosition 在类中 Entity
    • isAlwaysTicking

      public boolean isAlwaysTicking()
      指定者:
      isAlwaysTicking 在接口中 EntityAccess
      覆盖:
      isAlwaysTicking 在类中 Entity
    • isScoping

      public boolean isScoping()
    • shouldBeSaved

      public boolean shouldBeSaved()
      指定者:
      shouldBeSaved 在接口中 EntityAccess
      覆盖:
      shouldBeSaved 在类中 Entity
    • getLastDeathLocation

      public Optional<GlobalPos> getLastDeathLocation()
    • setLastDeathLocation

      public void setLastDeathLocation(Optional<GlobalPos> p_219750_)
    • getHurtDir

      public float getHurtDir()
      覆盖:
      getHurtDir 在类中 LivingEntity
    • animateHurt

      public void animateHurt(float p_265280_)
      覆盖:
      animateHurt 在类中 LivingEntity
    • canSprint

      public boolean canSprint()
      覆盖:
      canSprint 在类中 Entity
    • 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

      public boolean canInteractWithEntity(Entity p_333619_, double p_330803_)
    • canInteractWithEntity

      public boolean canInteractWithEntity(AABB p_329456_, double p_332906_)
    • canInteractWithBlock

      public boolean canInteractWithBlock(BlockPos p_331132_, double p_328439_)
    • setIgnoreFallDamageFromCurrentImpulse

      public void setIgnoreFallDamageFromCurrentImpulse(boolean p_344459_)
    • isIgnoringFallDamageFromCurrentImpulse

      public boolean isIgnoringFallDamageFromCurrentImpulse()
    • tryResetCurrentImpulseContext

      public void tryResetCurrentImpulseContext()
    • resetCurrentImpulseContext

      public void resetCurrentImpulseContext()
    • getPrefixes

      public Collection<MutableComponent> getPrefixes()
    • getSuffixes

      public Collection<MutableComponent> getSuffixes()
    • refreshDisplayName

      public void refreshDisplayName()
      Force the displayed name to refresh, by firing PlayerEvent.NameFormat, using the real player name as event parameter.
    • getCapability

      public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
      从接口复制的说明: 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 check
      facing - 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

      public void setForcedPose(@Nullable Pose pose)
      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

      @Nullable public Pose getForcedPose()
      返回:
      The forced pose if set, null otherwise
    • shouldRotateWithMinecart

      public boolean shouldRotateWithMinecart()
    • isControlledByClient

      public boolean isControlledByClient()
      覆盖:
      isControlledByClient 在类中 Entity
    • onClimbable

      public boolean onClimbable()
      覆盖:
      onClimbable 在类中 LivingEntity