net.minecraft.entity.player

public abstract class PlayerEntity

extends PlayerLikeEntity implements ContainerUser

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, ContainerUser

net.minecraft.world.entity.player.Player
net.minecraft.class_1657
net.minecraft.entity.player.PlayerEntity

Field summary

Modifier and TypeField
public static final int
MAX_HEALTH
field_30644
MAX_HEALTH
public static final int
SLEEP_DURATION
field_30645
SLEEP_DURATION
public static final int
WAKE_UP_DURATION
field_30646
WAKE_UP_DURATION
public static final int
ENDER_SLOT_OFFSET
field_30647
ENDER_SLOT_OFFSET
public static final int
HELD_ITEM_SLOT
field_49734
HELD_ITEM_SLOT_OFFSET
public static final int
CRAFTING_SLOT_OFFSET
field_49735
CRAFTING_SLOT_OFFSET
public static final float
DEFAULT_BLOCK_INTERACTION_RANGE
field_47819
BLOCK_INTERACTION_RANGE
public static final float
DEFAULT_ENTITY_INTERACTION_RANGE
field_47820
ENTITY_INTERACTION_RANGE
private static final TrackedData<Float>
DATA_PLAYER_ABSORPTION_ID
field_7491
ABSORPTION_AMOUNT
private static final TrackedData<Integer>
DATA_SCORE_ID
field_7511
SCORE
private static final TrackedData<OptionalInt>
DATA_SHOULDER_PARROT_LEFT
field_62530
LEFT_SHOULDER_PARROT_VARIANT_ID
private static final TrackedData<OptionalInt>
DATA_SHOULDER_PARROT_RIGHT
field_62531
RIGHT_SHOULDER_PARROT_VARIANT_ID
private static final short
DEFAULT_SLEEP_TIMER
field_57725
field_57725
private static final float
DEFAULT_EXPERIENCE_PROGRESS
field_57726
field_57726
private static final int
DEFAULT_EXPERIENCE_LEVEL
field_57727
field_57727
private static final int
DEFAULT_TOTAL_EXPERIENCE
field_57728
field_57728
private static final int
NO_ENCHANTMENT_SEED
field_57729
field_57729
private static final int
DEFAULT_SELECTED_SLOT
field_57730
field_57730
private static final int
DEFAULT_SCORE
field_57731
field_57731
public static final float
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_VALUE
field_64686
field_64686
private final PlayerInventory
inventory
field_7514
inventory
protected EnderChestInventory
enderChestInventory
field_7486
enderChestInventory
public final PlayerScreenHandler
inventoryMenu
field_7498
playerScreenHandler
public ScreenHandler
containerMenu
field_7512
currentScreenHandler
protected HungerManager
foodData
field_7493
hungerManager
protected int
jumpTriggerTime
field_7489
abilityResyncCountdown
public int
takeXpDelay
field_7504
experiencePickUpDelay
private int
sleepCounter
field_7487
sleepTimer
protected boolean
wasUnderwater
field_7490
isSubmergedInWater
private final PlayerAbilities
abilities
field_7503
abilities
public int
experienceLevel
field_7520
experienceLevel
public int
totalExperience
field_7495
totalExperience
public float
experienceProgress
field_7510
experienceProgress
protected int
enchantmentSeed
field_7494
enchantingTableSeed
protected final float
defaultFlySpeed
field_7509
baseFlySpeed
private int
lastLevelUpTime
field_7508
lastPlayedLevelUpSoundTime
private final com.mojang.authlib.GameProfile
gameProfile
field_7507
gameProfile
private boolean
reducedDebugInfo
field_7523
reducedDebugInfo
private ItemStack
lastItemInMainHand
field_7525
selectedItem
private final ItemCooldownManager
cooldowns
field_7484
itemCooldownManager
private Optional<GlobalPos>
lastDeathLocation
field_39445
lastDeathPos
public FishingBobberEntity
fishing
field_7513
fishHook
protected float
hurtDir
field_41765
damageTiltYaw

Constructor summary

ModifierConstructor
public (World world, com.mojang.authlib.GameProfile profile)

Method summary

Modifier and TypeMethod
protected EntityEquipment
createEquipment()
method_67518()
createEquipment()
public boolean
blockActionRestricted(Level level, BlockPos pos, GameType gameType)
method_21701(class_1937 arg0, class_2338 arg1, class_1934 arg2)
isBlockBreakingRestricted(World world, BlockPos pos, GameMode gameMode)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26956()
createPlayerAttributes()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
tick()
method_5773()
tick()
protected float
getMaxHeadRotationRelativeToBody()
method_53964()
getMaxRelativeHeadRotation()
public boolean
isSecondaryUseActive()
method_21823()
shouldCancelInteraction()
protected boolean
wantsToStopRiding()
method_21824()
shouldDismount()
protected boolean
isStayingOnGroundSurface()
method_21825()
clipAtLedge()
protected boolean
updateIsUnderwater()
method_7295()
updateWaterSubmersionState()
public void
onAboveBubbleColumn(boolean dragDown, BlockPos pos)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean arg0, BlockPos arg1)
public void
onInsideBubbleColumn(boolean dragDown)
method_5764(boolean arg0)
onBubbleColumnCollision(boolean arg0)
private void
turtleHelmetTick()
method_7330()
updateTurtleHelmet()
private boolean
isEquipped(Item item)
method_64179(class_1792 arg0)
isEquipped(Item item)
protected ItemCooldownManager
createItemCooldowns()
method_7265()
createCooldownManager()
protected void
updatePlayerPose()
method_7318()
updatePose()
private EntityPose
getDesiredPose()
method_66325()
getExpectedPose()
protected boolean
canPlayerFitWithinBlocksAndEntitiesWhen(Pose newPose)
method_52558(class_4050 arg0)
canChangeIntoPose(EntityPose pose)
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getSwimHighSpeedSplashSound()
method_5672()
getHighSpeedSplashSound()
public int
getDimensionChangingDelay()
method_5806()
getDefaultPortalCooldown()
public void
playSound(SoundEvent sound, float volume, float pitch)
method_5783(class_3414 arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected int
getFireImmuneTicks()
method_5676()
getBurningDuration()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
closeContainer()
method_7346()
closeHandledScreen()
protected void
doCloseContainer()
method_14247()
onHandledScreenClosed()
public void
rideTick()
method_5842()
tickRiding()
public void
aiStep()
method_6007()
tickMovement()
protected void
tickRegeneration()
method_64400()
tickHunger()
public void
handleShoulderEntities()
method_74082()
handleShoulderEntities()
protected void
removeEntitiesOnShoulder()
method_7262()
dropShoulderEntities()
private void
touch(Entity entity)
method_7341(class_1297 arg0)
collideWithEntity(Entity entity)
public int
getScore()
method_7272()
getScore()
public void
setScore(int value)
method_7320(int arg0)
setScore(int score)
public void
increaseScore(int amount)
method_7285(int arg0)
addScore(int score)
public void
startAutoSpinAttack(int activationTicks, float dmg, ItemStack itemStackUsed)
method_40126(int arg0, float arg1, class_1799 arg2)
useRiptide(int riptideTicks, float riptideAttackDamage, ItemStack stack)
public ItemStack
getWeaponItem()
method_59958()
getWeaponStack()
public void
die(DamageSource source)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
protected void
dropEquipment(ServerLevel level)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
protected void
destroyVanishingCursedItems()
method_7293()
vanishCursedItems()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public void
handleCreativeModeItemDrop(ItemStack stack)
method_61499(class_1799 arg0)
dropCreativeStack(ItemStack stack)
public ItemEntity
drop(ItemStack itemStack, boolean thrownFromHand)
method_7328(class_1799 arg0, boolean arg1)
dropItem(ItemStack stack, boolean retainOwnership)
public float
getDestroySpeed(BlockState state)
method_7351(class_2680 arg0)
getBlockBreakingSpeed(BlockState block)
public boolean
hasCorrectToolForDrops(BlockState state)
method_7305(class_2680 arg0)
canHarvest(BlockState state)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public boolean
isInvulnerableTo(ServerLevel level, DamageSource source)
method_5679(class_3218 arg0, class_1282 arg1)
isInvulnerableTo(ServerWorld arg0, DamageSource arg1)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected void
blockUsingItem(ServerLevel level, LivingEntity attacker, DamageSource source, float damage)
method_6090(class_3218 arg0, class_1309 arg1, class_1282 arg2, float arg3)
takeShieldHit(ServerWorld arg0, LivingEntity arg1, DamageSource arg2, float arg3)
public boolean
canBeSeenAsEnemy()
method_33190()
canTakeDamage()
public boolean
canHarmPlayer(Player target)
method_7256(class_1657 arg0)
shouldDamagePlayer(PlayerEntity player)
protected void
hurtArmor(DamageSource damageSource, float damage)
method_6105(class_1282 arg0, float arg1)
damageArmor(DamageSource arg0, float arg1)
protected void
hurtHelmet(DamageSource damageSource, float damage)
method_36977(class_1282 arg0, float arg1)
damageHelmet(DamageSource arg0, float arg1)
protected void
actuallyHurt(ServerLevel level, DamageSource source, float dmg)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
public boolean
isTextFilteringEnabled()
method_33793()
shouldFilterText()
public void
openTextEdit(SignBlockEntity sign, boolean isFrontText)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity sign, boolean front)
public void
openMinecartCommandBlock(MinecartCommandBlock commandBlock)
method_7257(class_1697 arg0)
openCommandBlockMinecartScreen(CommandBlockMinecartEntity minecart)
public void
openCommandBlock(CommandBlockEntity commandBlock)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity commandBlock)
public void
openStructureBlock(StructureBlockEntity structureBlock)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity structureBlock)
public void
openTestBlock(TestBlockEntity testBlock)
method_66695(class_10637 arg0)
openTestBlockScreen(TestBlockEntity testBlock)
public void
openTestInstanceBlock(TestInstanceBlockEntity testInstanceBlock)
method_66696(class_10638 arg0)
openTestInstanceBlockScreen(TestInstanceBlockEntity testInstanceBlock)
public void
openJigsawBlock(JigsawBlockEntity jigsawBlock)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity jigsaw)
public void
openHorseInventory(AbstractHorse horse, Container container)
method_7291(class_1496 arg0, class_1263 arg1)
openHorseInventory(AbstractHorseEntity horse, Inventory inventory)
public void
openNautilusInventory(AbstractNautilus nautilus, Container container)
method_76575(class_12116 arg0, class_1263 arg1)
openNautilusInventory(AbstractNautilusEntity nautilus, Inventory inventory)
public OptionalInt
openMenu(MenuProvider provider)
method_17355(class_3908 arg0)
openHandledScreen(NamedScreenHandlerFactory factory)
public void
openDialog(Holder<Dialog> dialog)
method_71753(class_6880<class_11419> arg0)
openDialog(RegistryEntry<Dialog> dialog)
public void
sendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock)
method_17354(int arg0, class_1916 arg1, int arg2, int arg3, boolean arg4, boolean arg5)
sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable)
public void
openItemGui(ItemStack itemStack, InteractionHand hand)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack book, Hand hand)
public ActionResult
interactOn(Entity entity, InteractionHand hand, Vec3 location)
method_7287(class_1297 arg0, class_1268 arg1, class_243 arg2)
interact(Entity entity, Hand hand, Vec3d hitPos)
public void
removeVehicle()
method_29239()
dismountVehicle()
protected boolean
isImmobile()
method_6062()
isImmobile()
public boolean
isAffectedByFluids()
method_29920()
shouldSwimInFluids()
protected Vec3d
maybeBackOffFromEdge(Vec3 delta, MoverType moverType)
method_18796(class_243 arg0, class_1313 arg1)
adjustMovementForSneaking(Vec3d arg0, MovementType arg1)
private boolean
isAboveGround(float maxDownStep)
method_30263(float arg0)
isStandingOnSurface(float stepHeight)
private boolean
canFallAtLeast(double deltaX, double deltaZ, double minHeight)
method_59818(double arg0, double arg1, double arg2)
isSpaceAroundPlayerEmpty(double offsetX, double offsetZ, double stepHeight)
public void
attack(Entity entity)
method_7324(class_1297 arg0)
attack(Entity target)
private void
playServerSideSound(SoundEvent sound)
method_76457(class_3414 arg0)
playAttackSound(SoundEvent sound)
private DamageSource
createAttackSource(ItemStack attackingItemStack)
method_75204(class_1799 arg0)
getDamageSource(ItemStack stack)
private boolean
cannotAttack(Entity entity)
method_75195(class_1297 arg0)
cannotAttack(Entity target)
private boolean
deflectProjectile(Entity entity)
method_75196(class_1297 arg0)
tryDeflect(Entity entity)
private boolean
canCriticalAttack(Entity entity)
method_75197(class_1297 arg0)
isCriticalHit(Entity target)
private boolean
isSweepAttack(boolean fullStrengthAttack, boolean criticalAttack, boolean knockbackAttack)
method_75201(boolean arg0, boolean arg1, boolean arg2)
canUseSweepAttack(boolean cooldownPassed, boolean criticalHit, boolean knockback)
private void
attackVisualEffects(Entity entity, boolean criticalAttack, boolean sweepAttack, boolean fullStrengthAttack, boolean stabAttack, float magicBoost)
method_75200(class_1297 arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4, float arg5)
addAttackParticlesAndSounds(Entity target, boolean criticalHit, boolean sweeping, boolean cooldownPassed, boolean pierce, float enchantDamage)
private void
damageStatsAndHearts(Entity entity, float oldLivingEntityHealth)
method_75198(class_1297 arg0, float arg1)
handleAttackDamage(Entity target, float healthBeforeAttack)
private void
itemAttackInteraction(Entity entity, ItemStack attackingItemStack, DamageSource damageSource, boolean applyToTarget)
method_75199(class_1297 arg0, class_1799 arg1, class_1282 arg2, boolean arg3)
onTargetDamaged(Entity target, ItemStack stack, DamageSource damageSource, boolean runEnchantmentEffects)
public void
causeExtraKnockback(Entity entity, float knockbackAmount, Vec3 oldMovement, DamageSource damageSource, float damage, boolean comesFromEffect)
method_75122(class_1297 arg0, float arg1, class_243 arg2, class_1282 arg3, float arg4, boolean arg5)
knockbackTarget(Entity arg0, float arg1, Vec3d arg2, DamageSource arg3, float arg4, boolean arg5)
public float
getVoicePitch()
method_6017()
getSoundPitch()
private void
doSweepAttack(Entity entity, float baseDamage, DamageSource damageSource, float attackStrengthScale)
method_7263(class_1297 arg0, float arg1, class_1282 arg2, float arg3)
doSweepingAttack(Entity target, float damage, DamageSource damageSource, float cooldownProgress)
protected float
getEnchantedDamage(Entity entity, float dmg, DamageSource damageSource)
method_59903(class_1297 arg0, float arg1, class_1282 arg2)
getDamageAgainst(Entity target, float baseDamage, DamageSource damageSource)
protected void
doAutoAttackOnTouch(LivingEntity entity)
method_5997(class_1309 arg0)
attackLivingEntity(LivingEntity arg0)
public void
crit(Entity entity)
method_7277(class_1297 arg0)
addCritParticles(Entity target)
private float
baseDamageScaleFactor()
method_76459()
getAttackCooldownDamageModifier()
public boolean
stabAttack(EquipmentSlot slot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts)
method_75123(class_1304 arg0, class_1297 arg1, float arg2, boolean arg3, boolean arg4, boolean arg5)
pierce(EquipmentSlot arg0, Entity arg1, float arg2, boolean arg3, boolean arg4, boolean arg5)
public void
magicCrit(Entity entity)
method_7304(class_1297 arg0)
addEnchantedHitParticles(Entity target)
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
public boolean
isClientAuthoritative()
method_65038()
isControlledByPlayer()
protected boolean
isLocalClientAuthoritative()
method_66248()
isControlledByMainPlayer()
public boolean
isLocalPlayer()
method_7340()
isMainPlayer()
public boolean
canSimulateMovement()
method_66249()
canMoveVoluntarily()
public boolean
isEffectiveAi()
method_6034()
canActVoluntarily()
public com.mojang.authlib.GameProfile
getGameProfile()
method_7334()
getGameProfile()
public PlayerConfigEntry
nameAndId()
method_72498()
getPlayerConfigEntry()
public PlayerInventory
getInventory()
method_31548()
getInventory()
public PlayerAbilities
getAbilities()
method_31549()
getAbilities()
public boolean
hasInfiniteMaterials()
method_56992()
isInCreativeMode()
public boolean
preventsBlockDrops()
method_66324()
shouldSkipBlockDrops()
public void
updateTutorialInventoryAction(ItemStack itemCarried, ItemStack itemInSlot, ClickAction clickAction)
method_33592(class_1799 arg0, class_1799 arg1, class_5536 arg2)
onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
public boolean
hasContainerOpen()
method_45015()
shouldCloseHandledScreenOnRespawn()
public boolean
canDropItems()
method_64271()
canDropItems()
public com.mojang.datafixers.util.Either<PlayerEntity$SleepFailureReason, Unit>
startSleepInBed(BlockPos pos)
method_7269(class_2338 arg0)
trySleep(BlockPos pos)
public void
stopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList)
method_7358(boolean arg0, boolean arg1)
wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers)
public void
stopSleeping()
method_18400()
wakeUp()
public boolean
isSleepingLongEnough()
method_7276()
canResetTimeBySleeping()
public int
getSleepTimer()
method_7297()
getSleepTimer()
public void
sendSystemMessage(Component message)
method_64398(class_2561 arg0)
sendMessage(Text message)
public void
sendOverlayMessage(Component message)
method_7353(class_2561 arg0)
sendOverlayMessage(Text message)
public void
awardStat(Identifier location)
method_7281(class_2960 arg0)
incrementStat(Identifier stat)
public void
awardStat(Identifier location, int count)
method_7339(class_2960 arg0, int arg1)
increaseStat(Identifier stat, int amount)
public void
awardStat(Stat<?> stat)
method_7259(class_3445<?> arg0)
incrementStat(Stat<?> stat)
public void
awardStat(Stat<?> stat, int count)
method_7342(class_3445<?> arg0, int arg1)
increaseStat(Stat<?> stat, int amount)
public void
resetStat(Stat<?> stat)
method_7266(class_3445<?> arg0)
resetStat(Stat<?> stat)
public int
awardRecipes(Collection<RecipeHolder<?>> recipes)
method_7254(Collection<class_8786<?>> arg0)
unlockRecipes(Collection<RecipeEntry<?>> recipes)
public void
triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks)
method_51283(class_8786<?> arg0, List<class_1799> arg1)
onRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients)
public void
awardRecipesByKey(List<ResourceKey<Recipe<?>>> recipeIds)
method_7335(List<class_5321<class_1860<?>>> arg0)
unlockRecipes(List<RegistryKey<Recipe<?>>> recipes)
public int
resetRecipes(Collection<RecipeHolder<?>> recipe)
method_7333(Collection<class_8786<?>> arg0)
lockRecipes(Collection<RecipeEntry<?>> recipes)
public void
travel(Vec3 input)
method_6091(class_243 arg0)
travel(Vec3d arg0)
protected boolean
canGlide()
method_63628()
canGlide()
public void
updateSwimming()
method_5790()
updateSwimming()
protected boolean
freeAt(BlockPos pos)
method_7326(class_2338 arg0)
doesNotSuffocate(BlockPos pos)
public float
getSpeed()
method_6029()
getMovementSpeed()
public boolean
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double arg0, float arg1, DamageSource arg2)
public boolean
tryToStartFallFlying()
method_23668()
checkGliding()
public void
startFallFlying()
method_23669()
startGliding()
protected void
doWaterSplashEffect()
method_5746()
onSwimmingStart()
protected void
playStepSound(BlockPos onPos, BlockState onState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public LivingEntity$FallSounds
getFallSounds()
method_39760()
getFallSounds()
public boolean
killedEntity(ServerLevel level, LivingEntity entity, DamageSource source)
method_5874(class_3218 arg0, class_1309 arg1, class_1282 arg2)
onKilledOther(ServerWorld arg0, LivingEntity arg1, DamageSource arg2)
public void
makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier)
method_5844(class_2680 arg0, class_243 arg1)
slowMovement(BlockState arg0, Vec3d arg1)
public void
giveExperiencePoints(int i)
method_7255(int arg0)
addExperience(int experience)
public int
getEnchantmentSeed()
method_7278()
getEnchantingTableSeed()
public void
onEnchantmentPerformed(ItemStack itemStack, int enchantmentCost)
method_7286(class_1799 arg0, int arg1)
applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)
public void
giveExperienceLevels(int amount)
method_7316(int arg0)
addExperienceLevels(int levels)
public int
getXpNeededForNextLevel()
method_7349()
getNextLevelExperience()
public void
causeFoodExhaustion(float amount)
method_7322(float arg0)
addExhaustion(float exhaustion)
protected boolean
hasEnoughFoodToDoExhaustiveManoeuvres()
method_76458()
canSprintOrFly()
public Optional<SculkShriekerWarningManager>
getWardenSpawnTracker()
method_42272()
getSculkShriekerWarningManager()
public HungerManager
getFoodData()
method_7344()
getHungerManager()
public boolean
canEat(boolean canAlwaysEat)
method_7332(boolean arg0)
canConsume(boolean ignoreHunger)
public boolean
isHurt()
method_7317()
canFoodHeal()
public boolean
mayBuild()
method_7294()
canModifyBlocks()
public boolean
mayUseItemAt(BlockPos pos, Direction direction, ItemStack itemStack)
method_7343(class_2338 arg0, class_2350 arg1, class_1799 arg2)
canPlaceOn(BlockPos pos, Direction facing, ItemStack stack)
protected int
getBaseExperienceReward(ServerLevel level)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
protected boolean
isAlwaysExperienceDropper()
method_6071()
shouldAlwaysDropExperience()
public boolean
shouldShowName()
method_5733()
shouldRenderName()
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
public void
onUpdateAbilities()
method_7355()
sendAbilitiesUpdate()
public Text
getName()
method_5477()
getName()
public String
getPlainTextName()
method_74861()
getStringifiedName()
public EnderChestInventory
getEnderChestInventory()
method_7274()
getEnderChestInventory()
protected boolean
doesEmitEquipEvent(EquipmentSlot slot)
method_44201(class_1304 arg0)
isArmorSlot(EquipmentSlot arg0)
public boolean
addItem(ItemStack itemStack)
method_7270(class_1799 arg0)
giveItemStack(ItemStack stack)
public abstract GameMode
gameMode()
method_68876()
getGameMode()
public boolean
isSpectator()
method_7325()
isSpectator()
public boolean
isPickable()
method_5863()
canHit()
public boolean
isSwimming()
method_5681()
isSwimming()
public boolean
isCreative()
method_68878()
isCreative()
public boolean
isPushedByFluid()
method_5675()
isPushedByFluids()
public Text
getDisplayName()
method_5476()
getDisplayName()
private MutableText
decorateDisplayNameComponent(MutableComponent nameComponent)
method_7299(class_5250 arg0)
addTellClickEvent(MutableText component)
public String
getScoreboardName()
method_5820()
getNameForScoreboard()
protected void
internalSetAbsorptionAmount(float absorptionAmount)
method_52544(float arg0)
setAbsorptionAmountUnclamped(float arg0)
public float
getAbsorptionAmount()
method_6067()
getAbsorptionAmount()
public StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public boolean
isReducedDebugInfo()
method_7302()
hasReducedDebugInfo()
public void
setReducedDebugInfo(boolean reducedDebugInfo)
method_7268(boolean arg0)
setReducedDebugInfo(boolean reducedDebugInfo)
public void
setRemainingFireTicks(int remainingTicks)
method_20803(int arg0)
setFireTicks(int arg0)
protected static Optional<ParrotEntity$Variant>
extractParrotVariant(CompoundTag tag)
method_74135(class_2487 arg0)
readParrotVariant(NbtCompound nbt)
protected static OptionalInt
convertParrotVariant(Optional<Parrot$Variant> variant)
method_74131(Optional<class_1453$class_7989> arg0)
mapParrotVariant(Optional<ParrotEntity$Variant> variant)
private static Optional<ParrotEntity$Variant>
convertParrotVariant(OptionalInt variant)
method_74132(OptionalInt arg0)
mapParrotVariantIfPresent(OptionalInt variantIndex)
public void
setShoulderParrotLeft(Optional<Parrot$Variant> variant)
method_74133(Optional<class_1453$class_7989> arg0)
setLeftShoulderParrotVariant(Optional<ParrotEntity$Variant> variant)
public Optional<ParrotEntity$Variant>
getShoulderParrotLeft()
method_74136()
getLeftShoulderParrotVariant()
public void
setShoulderParrotRight(Optional<Parrot$Variant> variant)
method_74134(Optional<class_1453$class_7989> arg0)
setRightShoulderParrotVariant(Optional<ParrotEntity$Variant> variant)
public Optional<ParrotEntity$Variant>
getShoulderParrotRight()
method_74137()
getRightShoulderParrotVariant()
public float
getCurrentItemAttackStrengthDelay()
method_7279()
getAttackCooldownProgressPerTick()
public boolean
cannotAttackWithItem(ItemStack itemStack, int tolerance)
method_75202(class_1799 arg0, int arg1)
isBelowMinimumAttackCharge(ItemStack stack, int baseTime)
public float
getAttackStrengthScale(float a)
method_7261(float arg0)
getAttackCooldownProgress(float baseTime)
public float
getItemSwapScale(float a)
method_75194(float arg0)
getHandEquippingProgress(float baseTime)
public void
resetAttackStrengthTicker()
method_7350()
resetTicksSince()
public void
onAttack()
method_75124()
beforePlayerAttack()
public void
resetOnlyAttackStrengthTicker()
method_75203()
resetTicksSinceLastAttack()
public ItemCooldownManager
getCooldowns()
method_7357()
getItemCooldownManager()
protected float
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
public float
getLuck()
method_7292()
getLuck()
public boolean
canUseGameMasterBlocks()
method_7338()
isCreativeLevelTwoOp()
public PermissionPredicate
permissions()
method_75004()
getPermissions()
public com.google.common.collect.ImmutableList<EntityPose>
getDismountPoses()
method_24831()
getPoses()
public ItemStack
getProjectile(ItemStack heldWeapon)
method_18808(class_1799 arg0)
getProjectileType(ItemStack arg0)
public Vec3d
getRopeHoldPosition(float partialTickTime)
method_30951(float arg0)
getLeashPos(float arg0)
public boolean
isAlwaysTicking()
method_31747()
isPlayer()
public boolean
isScoping()
method_31550()
isUsingSpyglass()
public boolean
shouldBeSaved()
method_31746()
shouldSave()
public Optional<GlobalPos>
getLastDeathLocation()
method_43122()
getLastDeathPos()
public void
setLastDeathLocation(Optional<GlobalPos> pos)
method_43120(Optional<class_4208> arg0)
setLastDeathPos(Optional<GlobalPos> lastDeathPos)
public float
getHurtDir()
method_48157()
getDamageTiltYaw()
public void
animateHurt(float yaw)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
isMobilityRestricted()
method_74025()
hasBlindnessEffect()
public boolean
canSprint()
method_48155()
canSprintAsVehicle()
protected float
getFlyingSpeed()
method_49484()
getOffGroundSpeed()
public boolean
hasContainerOpen(ContainerOpenersCounter container, BlockPos blockPos)
method_72380(class_5561 arg0, class_2338 arg1)
isViewingContainerAt(ViewerCountManager arg0, BlockPos arg1)
public double
getContainerInteractionRange()
method_72381()
getContainerInteractionRange()
public double
blockInteractionRange()
method_55754()
getBlockInteractionRange()
public double
entityInteractionRange()
method_55755()
getEntityInteractionRange()
public boolean
isWithinEntityInteractionRange(Entity entity, double buffer)
method_56094(class_1297 arg0, double arg1)
canInteractWithEntity(Entity entity, double additionalRange)
public boolean
isWithinEntityInteractionRange(AABB aabb, double buffer)
method_56092(class_238 arg0, double arg1)
canInteractWithEntityIn(Box box, double additionalRange)
public boolean
isWithinAttackRange(ItemStack weaponItem, AABB aabb, double buffer)
method_76729(class_1799 arg0, class_238 arg1, double arg2)
canAttackEntityIn(ItemStack weapon, Box box, double additionalRange)
public boolean
isWithinBlockInteractionRange(BlockPos pos, double buffer)
method_56093(class_2338 arg0, double arg1)
canInteractWithBlockAt(BlockPos pos, double additionalRange)
public boolean
shouldRotateWithMinecart()
method_61498()
shouldRotateWithMinecart()
public boolean
onClimbable()
method_6101()
isClimbing()
public String
debugInfo()
method_68877()
asString()
private static String
printPlayerPermissions(PermissionSet permissions)
method_1_2490(class_12096 arg0)
permissionAsString(PermissionPredicate premissions)
public ProfileComponent
getProfile()
method_74104()
getMannequinProfile()
public DamageSource
createDamageSource()
method_1_5407()
getAttackDamageSource()
private static OptionalInt
lambda$convertParrotVariant$0(Parrot$Variant arg0)
method_74130(class_1453$class_7989 arg0)
method_74130(ParrotEntity$Variant variant)
private Style
lambda$decorateDisplayNameComponent$0(String arg0, Style arg1)
method_7321(String arg0, class_2583 arg1)
method_7321(String arg0, Style style)
private static void
lambda$addAdditionalSaveData$0(ValueOutput arg0, GlobalPos arg1)
method_67360(class_11372 arg0, class_4208 arg1)
method_67360(WriteView arg0, GlobalPos pos)