Uses of Class
net.minecraft.world.entity.player.Player
Packages that use Player
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Player in net.minecraft.client.gui
Methods in net.minecraft.client.gui that return PlayerMethods in net.minecraft.client.gui with parameters of type PlayerModifier and TypeMethodDescription(package private) static Gui.HeartType
Returns theGui.HeartType
based on the player's status effects.private void
Gui.playAirBubblePoppedSound
(int pBubble, Player pPlayer, int pPitch) private void
Gui.renderAirBubbles
(GuiGraphics pGuiGraphics, Player pPlayer, int pVehicleMaxHealth, int pY, int pX) private static void
Gui.renderArmor
(GuiGraphics pGuiGraphics, Player pPlayer, int pY, int pHeartRows, int pHeight, int pX) private void
Gui.renderFood
(GuiGraphics pGuiGraphics, Player pPlayer, int pY, int pX) private void
Gui.renderHearts
(GuiGraphics pGuiGraphics, Player pPlayer, int pX, int pY, int pHeight, int pOffsetHeartIndex, float pMaxHealth, int pCurrentHealth, int pDisplayHealth, int pAbsorptionAmount, boolean pRenderHighlight) Renders the player's hearts, including health, absorption, and highlight hearts, on the screen.private void
Gui.renderSlot
(GuiGraphics pGuiGraphics, int pX, int pY, DeltaTracker pDeltaTracker, Player pPlayer, ItemStack pStack, int pSeed) -
Uses of Player in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as PlayerModifier and TypeFieldDescriptionprivate final Player
BookEditScreen.owner
private final Player
BookSignScreen.owner
private final Player
AnvilScreen.player
private final Player
CrafterScreen.player
Methods in net.minecraft.client.gui.screens.inventory with parameters of type PlayerModifier and TypeMethodDescriptionprivate boolean
CreativeModeInventoryScreen.hasPermissions
(Player pPlayer) boolean
Return whether this slot's stack can be taken from this slot.boolean
Return whether this slot's stack can be taken from this slot.void
CreativeModeInventoryScreen.ItemPickerMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.boolean
CreativeModeInventoryScreen.ItemPickerMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerConstructors in net.minecraft.client.gui.screens.inventory with parameters of type PlayerModifierConstructorDescriptionBookEditScreen
(Player pOwner, ItemStack pBook, InteractionHand pHand, WritableBookContent pContent) BookSignScreen
(BookEditScreen pBookEditScreen, Player pOwner, InteractionHand pHand, List<String> pPages) InventoryScreen
(Player pPlayer) ItemPickerMenu
(Player pPlayer) -
Uses of Player in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type PlayerModifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.adjustPlayer
(Player pPlayer) Sets player capabilities depending on current gametype.void
Attacks an entityprivate static ItemStack
void
MultiPlayerGameMode.handleInventoryMouseClick
(int pContainerId, int pSlotId, int pMouseButton, ClickType pClickType, Player pPlayer) MultiPlayerGameMode.interact
(Player pPlayer, Entity pTarget, InteractionHand pHand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt
(Player pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) Handles right-clicking an entity from the entities side, sends a packet to the server.void
MultiPlayerGameMode.releaseUsingItem
(Player pPlayer) MultiPlayerGameMode.useItem
(Player pPlayer, InteractionHand pHand) -
Uses of Player in net.minecraft.client.player
Subclasses of Player in net.minecraft.client.player -
Uses of Player in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type PlayerModifier and TypeMethodDescriptionprivate void
ItemInHandRenderer.applyBrushTransform
(PoseStack pPoseStack, float pPartialTick, HumanoidArm pArm, ItemStack pStack, Player pPlayer, float pEquippedProgress) private void
ItemInHandRenderer.applyEatTransform
(PoseStack pPoseStack, float pPartialTick, HumanoidArm pArm, ItemStack pStack, Player pPlayer) private static org.apache.commons.lang3.tuple.Pair
<BlockState, BlockPos> ScreenEffectRenderer.getOverlayBlock
(Player p_110717_) private static BlockState
ScreenEffectRenderer.getViewBlockingState
(Player pPlayer) -
Uses of Player in net.minecraft.client.renderer.entity
Fields in net.minecraft.client.renderer.entity with type parameters of type PlayerModifier and TypeFieldDescriptionprivate Map
<PlayerSkin.Model, EntityRenderer<? extends Player, ?>> EntityRenderDispatcher.playerRenderers
lists the various player skin types with their associated Renderer class instances.Methods in net.minecraft.client.renderer.entity that return types with arguments of type PlayerModifier and TypeMethodDescriptionstatic Map
<PlayerSkin.Model, EntityRenderer<? extends Player, ?>> EntityRenderers.createPlayerRenderers
(EntityRendererProvider.Context pContext) Map
<PlayerSkin.Model, EntityRenderer<? extends Player, ?>> EntityRenderDispatcher.getSkinMap()
Methods in net.minecraft.client.renderer.entity with parameters of type PlayerModifier and TypeMethodDescriptionstatic HumanoidArm
FishingHookRenderer.getHoldingArm
(Player pPlayer) private Vec3
FishingHookRenderer.getPlayerHandPos
(Player pPlayer, float pHandAngle, float pPartialTick) -
Uses of Player in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player with parameters of type PlayerModifier and TypeMethodDescriptionprivate static HumanoidModel.ArmPose
PlayerRenderer.getArmPose
(Player pPlayer, ItemStack pStack, InteractionHand pHand) -
Uses of Player in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as PlayerModifier and TypeFieldDescriptionprivate final Player
RidingHappyGhastSoundInstance.player
private final Player
RidingMinecartSoundInstance.player
Constructors in net.minecraft.client.resources.sounds with parameters of type PlayerModifierConstructorDescriptionRidingHappyGhastSoundInstance
(Player pPlayer, HappyGhast pHappyGhast) RidingMinecartSoundInstance
(Player pPlayer, AbstractMinecart pMinecart, boolean pUnderwaterSound) -
Uses of Player in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type PlayerModifier and TypeMethodDescriptionprivate static InteractionResult
CauldronInteraction.bannerInteraction
(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) private static InteractionResult
CauldronInteraction.dyedItemIteration
(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) static InteractionResult
CauldronInteraction.emptyBucket
(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound) static InteractionResult
CauldronInteraction.fillBucket
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) private static InteractionResult
CauldronInteraction.fillLavaInteraction
(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) private static InteractionResult
CauldronInteraction.fillPowderSnowInteraction
(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) private static InteractionResult
CauldronInteraction.fillWaterInteraction
(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) CauldronInteraction.interact
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) private static InteractionResult
CauldronInteraction.shulkerBoxInteraction
(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_) -
Uses of Player in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return PlayerMethods in net.minecraft.gametest.framework with parameters of type Player -
Uses of Player in net.minecraft.server
Methods in net.minecraft.server with parameters of type PlayerModifier and TypeMethodDescriptionboolean
MinecraftServer.isUnderSpawnProtection
(ServerLevel pLevel, BlockPos pPos, Player pPlayer) -
Uses of Player in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type PlayerModifier and TypeMethodDescriptionprivate static int
SpawnArmorTrimsCommand.spawnAllArmorTrims
(CommandSourceStack pSource, Player pPlayer) private static int
SpawnArmorTrimsCommand.spawnArmorTrim
(CommandSourceStack pSource, Player pPlayer, ResourceKey<TrimPattern> pPattern) private static int
SpawnArmorTrimsCommand.spawnArmorTrims
(CommandSourceStack pSource, Player pPlayer, Stream<Holder.Reference<TrimPattern>> pPatterns) Method parameters in net.minecraft.server.commands with type arguments of type PlayerModifier and TypeMethodDescriptionprivate static int
WardenSpawnTrackerCommand.resetTracker
(CommandSourceStack pSource, Collection<? extends Player> pTargets) private static int
WardenSpawnTrackerCommand.setWarningLevel
(CommandSourceStack pSource, Collection<? extends Player> pTargets, int pWarningLevel) -
Uses of Player in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type PlayerModifier and TypeMethodDescriptionboolean
DedicatedServer.isUnderSpawnProtection
(ServerLevel pLevel, BlockPos pPos, Player pPlayer) -
Uses of Player in net.minecraft.server.level
Subclasses of Player in net.minecraft.server.levelMethods in net.minecraft.server.level that return PlayerModifier and TypeMethodDescriptiondefault Player
ServerEntityGetter.getNearestPlayer
(TargetingConditions pTargetingConditions, double pX, double pY, double pZ) default Player
ServerEntityGetter.getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource) default Player
ServerEntityGetter.getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) WorldGenRegion.getNearestPlayer
(double pX, double pY, double pZ, double pDistance, Predicate<Entity> pPredicate) Methods in net.minecraft.server.level that return types with arguments of type PlayerModifier and TypeMethodDescriptionServerEntityGetter.getNearbyPlayers
(TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) WorldGenRegion.players()
Methods in net.minecraft.server.level with parameters of type Player -
Uses of Player in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type PlayerModifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(Player pExcept, double pX, double pY, double pZ, double pRadius, ResourceKey<Level> pDimension, Packet<?> pPacket) void
PlayerList.broadcastSystemToAllExceptTeam
(Player pPlayer, Component pMessage) void
PlayerList.broadcastSystemToTeam
(Player pPlayer, Component pMessage) PlayerList.getPlayerStats
(Player pPlayer) -
Uses of Player in net.minecraft.stats
Methods in net.minecraft.stats with parameters of type Player -
Uses of Player in net.minecraft.world
Methods in net.minecraft.world with parameters of type PlayerModifier and TypeMethodDescriptionSimpleMenuProvider.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) void
default void
boolean
CompoundContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
Container.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
SimpleContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerstatic boolean
Container.stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer) static boolean
Container.stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer, float pDistance) void
default void
default void
RandomizableContainer.unpackLootTable
(Player pPlayer) -
Uses of Player in net.minecraft.world.damagesource
Methods in net.minecraft.world.damagesource with parameters of type Player -
Uses of Player in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as PlayerFields in net.minecraft.world.entity with type parameters of type PlayerModifier and TypeFieldDescriptionprotected EntityReference
<Player> LivingEntity.lastHurtByPlayer
static final EntityType
<Player> EntityType.PLAYER
Methods in net.minecraft.world.entity that return PlayerModifier and TypeMethodDescriptionLivingEntity.getLastHurtByPlayer()
protected Player
LivingEntity.resolvePlayerResponsibleForDamage
(DamageSource pDamageSource) Methods in net.minecraft.world.entity with parameters of type PlayerModifier and TypeMethodDescriptionprivate boolean
Entity.attemptToShearEquipment
(Player pPlayer, InteractionHand pHand, ItemStack pStack, Mob pMob) protected boolean
Mob.canShearEquipment
(Player pPlayer) private InteractionResult
Mob.checkAndHandleImportantInteractions
(Player pPlayer, InteractionHand pHand) boolean
Entity.dropAllLeashConnections
(Player pPlayer) protected Vec3
LivingEntity.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
LivingEntity.getRiddenSpeed
(Player pPlayer) Entity.interact
(Player pPlayer, InteractionHand pHand) Interaction.interact
(Player pPlayer, InteractionHand pHand) final InteractionResult
Mob.interact
(Player pPlayer, InteractionHand pHand) Entity.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.boolean
Entity.isInvisibleTo
(Player pPlayer) Only used by renderer in EntityLivingBase subclasses.protected InteractionResult
Mob.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Mob.onOffspringSpawnedFromEgg
(Player pPlayer, Mob pChild) void
HasCustomInventoryScreen.openCustomInventoryScreen
(Player pPlayer) default void
NeutralMob.playerDied
(ServerLevel pLevel, Player pPlayer) void
Entity.playerTouch
(Player pPlayer) Called by a player entity when they collide with an entityvoid
ExperienceOrb.playerTouch
(Player pEntity) Called by a player entity when they collide with an entityvoid
LivingEntity.setLastHurtByPlayer
(Player pPlayer, int pMemoryTime) boolean
Entity.shearOffAllLeashConnections
(Player pPlayer) void
protected void
LivingEntity.tickRidden
(Player pPlayer, Vec3 pTravelVector) private void
LivingEntity.travelRidden
(Player pPlayer, Vec3 pTravelVector) Method parameters in net.minecraft.world.entity with type arguments of type PlayerModifier and TypeMethodDescriptionprivate void
LivingEntity.setLastHurtByPlayer
(EntityReference<Player> pPlayer, int pMemoryTime) -
Uses of Player in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type PlayerModifier and TypeMethodDescriptionGiveGiftToHero.getNearestTargetableHero
(Villager pVillager) FollowTemptation.getTemptingPlayer
(PathfinderMob pPathfinder) Methods in net.minecraft.world.entity.ai.behavior with parameters of type PlayerModifier and TypeMethodDescriptionprivate boolean
private boolean
GiveGiftToHero.isWithinThrowingDistance
(Villager pVillager, Player pHero) -
Uses of Player in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as PlayerModifier and TypeFieldDescriptionprivate Player
FollowBoatGoal.following
private Player
BegGoal.player
protected Player
TemptGoal.player
Methods in net.minecraft.world.entity.ai.goal with parameters of type PlayerModifier and TypeMethodDescriptionprotected void
TemptGoal.ForNonPathfinders.navigateTowards
(Player p_415789_) protected void
TemptGoal.navigateTowards
(Player pPlayer) private boolean
BegGoal.playerHoldingInteresting
(Player pPlayer) Gets if the Player has the Bone in the hand. -
Uses of Player in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type PlayerModifier and TypeFieldDescriptionstatic final MemoryModuleType
<Player> MemoryModuleType.NEAREST_PLAYER_HOLDING_WANTED_ITEM
static final MemoryModuleType
<List<Player>> MemoryModuleType.NEAREST_PLAYERS
static final MemoryModuleType
<Player> MemoryModuleType.NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLD
static final MemoryModuleType
<Player> MemoryModuleType.NEAREST_VISIBLE_ATTACKABLE_PLAYER
static final MemoryModuleType
<List<Player>> MemoryModuleType.NEAREST_VISIBLE_ATTACKABLE_PLAYERS
static final MemoryModuleType
<Player> MemoryModuleType.NEAREST_VISIBLE_PLAYER
static final MemoryModuleType
<Player> MemoryModuleType.TEMPTING_PLAYER
-
Uses of Player in net.minecraft.world.entity.ai.sensing
Methods in net.minecraft.world.entity.ai.sensing with parameters of type PlayerModifier and TypeMethodDescriptionprivate boolean
TemptingSensor.playerHoldingTemptation
(Player p_148337_) -
Uses of Player in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as PlayerModifier and TypeFieldDescriptionprivate Player
Cat.CatRelaxOnOwnerGoal.ownerPlayer
private Player
Dolphin.DolphinSwimWithPlayerGoal.player
private Player
Cat.CatTemptGoal.selectedPlayer
Fields in net.minecraft.world.entity.animal with type parameters of type PlayerModifier and TypeFieldDescriptionprivate Cat.CatAvoidEntityGoal
<Player> Cat.avoidPlayersGoal
private Ocelot.OcelotAvoidEntityGoal
<Player> Ocelot.ocelotAvoidPlayersGoal
Methods in net.minecraft.world.entity.animal with parameters of type PlayerModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player pPlayer, InteractionHand pHand, T pEntity) private void
HappyGhast.doPlayerRide
(Player pPlayer) protected Vec3
HappyGhast.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected Vec3
Pig.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
Pig.getRiddenSpeed
(Player pPlayer) AbstractCow.mobInteract
(Player p_401345_, InteractionHand p_401405_) protected InteractionResult
AbstractFish.mobInteract
(Player pPlayer, InteractionHand pHand) Animal.mobInteract
(Player pPlayer, InteractionHand pHand) Bee.mobInteract
(Player pPlayer, InteractionHand pHand) Cat.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Dolphin.mobInteract
(Player pPlayer, InteractionHand pHand) HappyGhast.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
IronGolem.mobInteract
(Player pPlayer, InteractionHand pHand) MushroomCow.mobInteract
(Player pPlayer, InteractionHand pHand) Ocelot.mobInteract
(Player pPlayer, InteractionHand pHand) Panda.mobInteract
(Player pPlayer, InteractionHand pHand) Parrot.mobInteract
(Player pPlayer, InteractionHand pHand) Pig.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
SnowGolem.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Fox.onOffspringSpawnedFromEgg
(Player pPlayer, Mob pChild) void
Pufferfish.playerTouch
(Player pEntity) Called by a player entity when they collide with an entityvoid
protected void
HappyGhast.tickRidden
(Player pPlayer, Vec3 pTravelVector) protected void
Pig.tickRidden
(Player pPlayer, Vec3 pTravelVector) private void
protected void
Animal.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of Player in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type PlayerModifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player pPlayer, InteractionHand pHand) private void
Allay.removeInteractionItem
(Player pPlayer, ItemStack pStack) -
Uses of Player in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type Player -
Uses of Player in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type PlayerModifier and TypeMethodDescriptionvoid
Axolotl.applySupportingEffects
(Player pPlayer) Axolotl.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Axolotl.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of Player in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type PlayerModifier and TypeMethodDescriptionprotected Vec3
Camel.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
Camel.getRiddenSpeed
(Player pPlayer) protected boolean
Camel.handleEating
(Player pPlayer, ItemStack pStack) Camel.mobInteract
(Player pPlayer, InteractionHand pHand) void
Camel.openCustomInventoryScreen
(Player pPlayer) protected void
Camel.tickRidden
(Player pPlayer, Vec3 pTravelVector) -
Uses of Player in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type PlayerModifier and TypeMethodDescriptionprivate void
Tadpole.mobInteract
(Player pPlayer, InteractionHand pHand) private void
Tadpole.usePlayerItem
(Player pPlayer, ItemStack pStack) -
Uses of Player in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type Player -
Uses of Player in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type PlayerModifier and TypeMethodDescriptionprotected void
AbstractHorse.doPlayerRide
(Player pPlayer) protected void
TraderLlama.doPlayerRide
(Player pPlayer) void
AbstractHorse.equipBodyArmor
(Player pPlayer, ItemStack pStack) private void
AbstractChestedHorse.equipChest
(Player pPlayer, ItemStack pChestStack) protected Vec3
AbstractHorse.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
AbstractHorse.getRiddenSpeed
(Player pPlayer) protected boolean
AbstractHorse.handleEating
(Player pPlayer, ItemStack pStack) protected boolean
Llama.handleEating
(Player pPlayer, ItemStack pStack) AbstractChestedHorse.mobInteract
(Player pPlayer, InteractionHand pHand) AbstractHorse.mobInteract
(Player pPlayer, InteractionHand pHand) Horse.mobInteract
(Player pPlayer, InteractionHand pHand) SkeletonHorse.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieHorse.mobInteract
(Player pPlayer, InteractionHand pHand) void
AbstractHorse.openCustomInventoryScreen
(Player pPlayer) boolean
AbstractHorse.tameWithName
(Player pPlayer) protected void
AbstractHorse.tickRidden
(Player pPlayer, Vec3 pTravelVector) -
Uses of Player in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type Player -
Uses of Player in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer with parameters of type Player -
Uses of Player in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type PlayerModifier and TypeMethodDescriptionprotected boolean
Wolf.canShearEquipment
(Player pPlayer) Wolf.mobInteract
(Player pPlayer, InteractionHand pHand) private void
-
Uses of Player in net.minecraft.world.entity.boss.enderdragon
Fields in net.minecraft.world.entity.boss.enderdragon with type parameters of type PlayerModifier and TypeFieldDescriptionprivate EntityReference
<Player> EnderDragon.unlimitedLastHurtByPlayer
-
Uses of Player in net.minecraft.world.entity.boss.enderdragon.phases
Methods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type PlayerModifier and TypeMethodDescriptionvoid
AbstractDragonPhaseInstance.onCrystalDestroyed
(EndCrystal pCrystal, BlockPos pPos, DamageSource pDmgSrc, Player pPlyr) void
DragonHoldingPatternPhase.onCrystalDestroyed
(EndCrystal pCrystal, BlockPos pPos, DamageSource pDmgSrc, Player pPlyr) void
DragonPhaseInstance.onCrystalDestroyed
(EndCrystal pCrystal, BlockPos pPos, DamageSource pDamageSource, Player pPlayer) private void
DragonHoldingPatternPhase.strafePlayer
(Player pPlayer) -
Uses of Player in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration with parameters of type PlayerModifier and TypeMethodDescriptionItemFrame.interact
(Player pPlayer, InteractionHand pHand) LeashFenceKnotEntity.interact
(Player pPlayer, InteractionHand pHand) ArmorStand.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.private boolean
ArmorStand.swapItem
(Player pPlayer, EquipmentSlot pSlot, ItemStack pStack, InteractionHand pHand) -
Uses of Player in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item with parameters of type PlayerModifier and TypeMethodDescriptionvoid
ItemEntity.playerTouch
(Player pEntity) Called by a player entity when they collide with an entity -
Uses of Player in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as PlayerModifier and TypeFieldDescriptionprivate Player
EnderMan.EndermanLookForPlayerGoal.pendingTarget
The playerFields in net.minecraft.world.entity.monster with type parameters of type PlayerModifier and TypeFieldDescriptionprivate NearestAttackableWitchTargetGoal
<Player> Witch.attackPlayersGoal
Methods in net.minecraft.world.entity.monster with parameters of type PlayerModifier and TypeMethodDescriptionprotected Vec3
Strider.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected float
Strider.getRiddenSpeed
(Player pPlayer) (package private) boolean
EnderMan.isBeingStaredBy
(Player pPlayer) boolean
Monster.isPreventingPlayerRest
(ServerLevel pLevel, Player pPlayer) boolean
ZombifiedPiglin.isPreventingPlayerRest
(ServerLevel pLevel, Player pPlayer) protected InteractionResult
Bogged.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Creeper.mobInteract
(Player pPlayer, InteractionHand pHand) Strider.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieVillager.mobInteract
(Player pPlayer, InteractionHand pHand) void
Slime.playerTouch
(Player pEntity) Called by a player entity when they collide with an entityprotected void
Strider.tickRidden
(Player pPlayer, Vec3 pTravelVector) -
Uses of Player in net.minecraft.world.entity.monster.creaking
Methods in net.minecraft.world.entity.monster.creaking that return PlayerMethods in net.minecraft.world.entity.monster.creaking with parameters of type Player -
Uses of Player in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type Player -
Uses of Player in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return types with arguments of type PlayerModifier and TypeMethodDescriptionPiglinAi.getNearestVisibleTargetablePlayer
(AbstractPiglin pPiglin) Methods in net.minecraft.world.entity.monster.piglin with parameters of type PlayerModifier and TypeMethodDescriptionstatic void
PiglinAi.angerNearbyPiglins
(ServerLevel pLevel, Player pPlayer, boolean pRequireLineOfSight) Piglin.mobInteract
(Player pPlayer, InteractionHand pHand) static InteractionResult
PiglinAi.mobInteract
(ServerLevel pLevel, Piglin pPiglin, Player pPlayer, InteractionHand pHand) private static void
PiglinAi.throwItemsTowardPlayer
(Piglin pPiglin, Player pPlayer, List<ItemStack> pStacks) -
Uses of Player in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as PlayerModifier and TypeFieldDescriptionprivate Player
Villager.lastTradedPlayer
private final Player
ClientSideMerchant.source
private Player
AbstractVillager.tradingPlayer
Methods in net.minecraft.world.entity.npc that return PlayerModifier and TypeMethodDescriptionAbstractVillager.getTradingPlayer()
ClientSideMerchant.getTradingPlayer()
Methods in net.minecraft.world.entity.npc with parameters of type PlayerModifier and TypeMethodDescriptionint
Villager.getPlayerReputation
(Player pPlayer) Villager.mobInteract
(Player pPlayer, InteractionHand pHand) WanderingTrader.mobInteract
(Player pPlayer, InteractionHand pHand) void
AbstractVillager.setTradingPlayer
(Player pPlayer) void
ClientSideMerchant.setTradingPlayer
(Player pPlayer) void
Villager.setTradingPlayer
(Player pPlayer) private void
Villager.startTrading
(Player pPlayer) boolean
AbstractVillager.stillValid
(Player pPlayer) boolean
ClientSideMerchant.stillValid
(Player pPlayer) private void
Villager.updateSpecialPrices
(Player pPlayer) Constructors in net.minecraft.world.entity.npc with parameters of type Player -
Uses of Player in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as PlayerModifier and TypeFieldDescriptionfinal Player
Inventory.player
private final Player
PlayerEquipment.player
Methods in net.minecraft.world.entity.player with parameters of type PlayerModifier and TypeMethodDescriptionboolean
Player.canHarmPlayer
(Player pOther) boolean
Inventory.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with ContainerConstructors in net.minecraft.world.entity.player with parameters of type PlayerModifierConstructorDescriptionInventory
(Player pPlayer, EntityEquipment pEquipment) PlayerEquipment
(Player pPlayer) -
Uses of Player in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return PlayerMethods in net.minecraft.world.entity.projectile with parameters of type PlayerModifier and TypeMethodDescriptionvoid
AbstractArrow.playerTouch
(Player pEntity) Called by a player entity when they collide with an entityvoid
ThrownTrident.playerTouch
(Player pEntity) Called by a player entity when they collide with an entityprivate boolean
FishingHook.shouldStopFishing
(Player pPlayer) protected boolean
protected boolean
Constructors in net.minecraft.world.entity.projectile with parameters of type PlayerModifierConstructorDescriptionFishingHook
(Player pOwner, Level pLevel, int pLuck, int pLureSpeed) -
Uses of Player in net.minecraft.world.entity.projectile.windcharge
Constructors in net.minecraft.world.entity.projectile.windcharge with parameters of type PlayerModifierConstructorDescriptionWindCharge
(Player pPlayer, Level pLevel, double pX, double pY, double pZ) -
Uses of Player in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type PlayerModifier and TypeMethodDescriptionAbstractChestBoat.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) AbstractMinecartContainer.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) static <T extends AbstractMinecart>
TAbstractMinecart.createMinecart
(Level pLevel, double pX, double pY, double pZ, EntityType<T> pType, EntitySpawnReason pSpawnReason, ItemStack pSpawnedFrom, Player pPlayer) AbstractBoat.interact
(Player pPlayer, InteractionHand pHand) AbstractChestBoat.interact
(Player pPlayer, InteractionHand pHand) AbstractMinecartContainer.interact
(Player pPlayer, InteractionHand pHand) Minecart.interact
(Player pPlayer, InteractionHand pHand) MinecartChest.interact
(Player pPlayer, InteractionHand pHand) MinecartCommandBlock.interact
(Player pPlayer, InteractionHand pHand) MinecartFurnace.interact
(Player pPlayer, InteractionHand pHand) default InteractionResult
ContainerEntity.interactWithContainerVehicle
(Player pPlayer) default boolean
ContainerEntity.isChestVehicleStillValid
(Player pPlayer) void
AbstractChestBoat.openCustomInventoryScreen
(Player pPlayer) boolean
AbstractChestBoat.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
AbstractMinecartContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containervoid
void
default void
ContainerEntity.unpackChestVehicleLootTable
(Player pPlayer) void
AbstractChestBoat.unpackLootTable
(Player pPlayer) -
Uses of Player in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as PlayerModifier and TypeFieldDescriptionprivate final Player
InventoryMenu.owner
private final Player
CrafterMenu.player
private final Player
CraftingMenu.player
private final Player
FurnaceResultSlot.player
protected final Player
ItemCombinerMenu.player
private final Player
MerchantResultSlot.player
private final Player
ResultSlot.player
Methods in net.minecraft.world.inventory that return PlayerModifier and TypeMethodDescriptionprotected abstract Player
AbstractCraftingMenu.owner()
protected Player
CraftingMenu.owner()
protected Player
InventoryMenu.owner()
Methods in net.minecraft.world.inventory with parameters of type PlayerModifier and TypeMethodDescriptionprotected Slot
AbstractCraftingMenu.addResultSlot
(Player pPlayer, int pX, int pY) boolean
NonInteractiveResultSlot.allowModification
(Player p_307532_) boolean
Slot.allowModification
(Player pPlayer) default void
RecipeCraftingHolder.awardUsedRecipes
(Player pPlayer, List<ItemStack> pItems) protected void
AbstractContainerMenu.clearContainer
(Player pPlayer, Container pContainer) void
boolean
AbstractContainerMenu.clickMenuButton
(Player pPlayer, int pId) Handles the given Button-click on the server, currently only used by enchanting.boolean
EnchantmentMenu.clickMenuButton
(Player pPlayer, int pId) Handles the given Button-click on the server, currently only used by enchanting.boolean
LecternMenu.clickMenuButton
(Player pPlayer, int pId) Handles the given Button-click on the server, currently only used by enchanting.boolean
LoomMenu.clickMenuButton
(Player pPlayer, int pId) Handles the given Button-click on the server, currently only used by enchanting.boolean
StonecutterMenu.clickMenuButton
(Player pPlayer, int pId) Handles the given Button-click on the server.MenuConstructor.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) private void
private static void
AbstractContainerMenu.dropOrPlaceInInventory
(Player pPlayer, ItemStack pStack) static boolean
AbstractContainerMenu.isValidQuickcraftType
(int pDragMode, Player pPlayer) protected boolean
boolean
Return whether this slot's stack can be taken from this slot.protected boolean
boolean
boolean
Return whether this slot's stack can be taken from this slot.protected void
void
void
protected abstract void
void
void
void
void
protected void
abstract ItemStack
AbstractContainerMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.AbstractFurnaceMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.BeaconMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.BrewingStandMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.CartographyTableMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.ChestMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.CrafterMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.CraftingMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.DispenserMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.EnchantmentMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.GrindstoneMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.HopperMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.HorseInventoryMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.InventoryMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.ItemCombinerMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.LecternMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.LoomMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.MerchantMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.ShulkerBoxMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.StonecutterMenu.quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.void
Called when the container is closed.protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu pMenu, ServerLevel pLevel, Player pPlayer, CraftingContainer pCraftSlots, ResultContainer pResultSlots, RecipeHolder<CraftingRecipe> pRecipe) void
abstract boolean
AbstractContainerMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerprotected static boolean
AbstractContainerMenu.stillValid
(ContainerLevelAccess pAccess, Player pPlayer, Block pTargetBlock) boolean
AbstractFurnaceMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
BeaconMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
BrewingStandMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
CartographyTableMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
ChestMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
CrafterMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
CraftingMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
DispenserMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
EnchantmentMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
GrindstoneMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
HopperMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
HorseInventoryMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
InventoryMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
ItemCombinerMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
LecternMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
LoomMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
MerchantContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
MerchantMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
PlayerEnderChestContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
ResultContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
ShulkerBoxMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
StonecutterMenu.stillValid
(Player pPlayer) Determines whether supplied player can use this containerboolean
TransientCraftingContainer.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containervoid
private boolean
AbstractContainerMenu.tryItemClickBehaviourOverride
(Player pPlayer, ClickAction pAction, Slot pSlot, ItemStack pClickedItem, ItemStack pCarriedItem) Constructors in net.minecraft.world.inventory with parameters of type PlayerModifierConstructorDescriptionFurnaceResultSlot
(Player pPlayer, Container pContainer, int pSlot, int pXPosition, int pYPosition) InventoryMenu
(Inventory pPlayerInventory, boolean pActive, Player pOwner) MerchantResultSlot
(Player pPlayer, Merchant pMerchant, MerchantContainer pSlots, int pSlot, int pXPosition, int pYPosition) ResultSlot
(Player pPlayer, CraftingContainer pCraftSlots, Container pContainer, int pSlot, int pXPosition, int pYPosition) -
Uses of Player in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type PlayerModifier and TypeMethodDescriptionprivate void
ItemStack.addAttributeTooltips
(Consumer<Component> pTooltipAdder, TooltipDisplay pTooltipDisplay, Player pPlayer) Deprecated.void
ItemStack.addDetailsToTooltip
(Item.TooltipContext pContext, TooltipDisplay pTooltipDisplay, Player pPlayer, TooltipFlag pTooltipFlag, Consumer<Component> pTooltipAdder) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) static InteractionResult
LeadItem.bindPlayerMobs
(Player pPlayer, Level pLevel, BlockPos pPos) private void
BundleItem.broadcastChangesOnContainerMenu
(Player pPlayer) private HitResult
BrushItem.calculateHitResult
(Player pPlayer) boolean
HoneycombItem.canApplyToSign
(SignText pText, Player pPlayer) default boolean
SignApplicator.canApplyToSign
(SignText pText, Player pPlayer) protected boolean
BucketItem.canBlockContainFluid
(Player player, Level worldIn, BlockPos posIn, BlockState blockstate) boolean
ItemStack.canDestroyBlock
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) static ItemStack
ItemUtils.createFilledResult
(ItemStack pEmptyStack, Player pPlayer, ItemStack pFilledStack) static ItemStack
ItemUtils.createFilledResult
(ItemStack pEmptyStack, Player pPlayer, ItemStack pFilledStack, boolean pPreventDuplicates) private boolean
BundleItem.dropContent
(ItemStack pStack, Player pPlayer) private void
BundleItem.dropContent
(Level pLevel, Player pPlayer, ItemStack pStack) private Optional
<BlockState> AxeItem.evaluateNewBlockState
(Level pLevel, BlockPos pPos, Player pPlayer, BlockState pState, UseOnContext p_40529_) private AbstractBoat
ProjectileWeaponItem.getDefaultCreativeAmmo
(Player player, ItemStack projectileWeaponItem) Neo: Controls what ammo ItemStack that Creative Mode should return if the player has no valid ammo in inventory.static ItemStack
BucketItem.getEmptySuccessItem
(ItemStack pBucketStack, Player pPlayer) protected SoundEvent
BlockItem.getPlaceSound
(BlockState pState, Level world, BlockPos pos, Player entity) static BlockHitResult
Item.getPlayerPOVHitResult
(Level pLevel, Player pPlayer, ClipContext.Fluid pFluidMode) ItemStack.getTooltipLines
(Item.TooltipContext pTooltipContext, Player pPlayer, TooltipFlag pTooltipFlag) private boolean
DebugStickItem.handleInteraction
(Player pPlayer, BlockState pStateClicked, LevelAccessor pAccessor, BlockPos pPos, boolean pShouldCycleState, ItemStack pDebugStack) void
ItemStack.hurtWithoutBreaking
(int pDamage, Player pPlayer) DyeItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity
(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)
to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)
protected boolean
HangingEntityItem.mayPlace
(Player pPlayer, Direction pDirection, ItemStack pHangingEntityStack, BlockPos pPos) protected boolean
private static void
void
ItemStack.mineBlock
(Level pLevel, BlockState pState, BlockPos pPos, Player pPlayer) Called when a Block is destroyed using this ItemStackvoid
Item.onCraftedBy
(ItemStack pStack, Player pPlayer) void
ItemStack.onCraftedBy
(Player pPlayer, int pAmount) boolean
BundleItem.overrideOtherStackedOnMe
(ItemStack pStack, ItemStack pOther, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
Item.overrideOtherStackedOnMe
(ItemStack pStack, ItemStack pOther, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
BundleItem.overrideStackedOnOther
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer) boolean
Item.overrideStackedOnOther
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer) boolean
ItemStack.overrideStackedOnOther
(Slot pSlot, ClickAction pAction, Player pPlayer) private static void
InstrumentItem.play
(Level pLevel, Player pPlayer, Instrument pInstrument) BundleItem.removeOneItemFromBundle
(ItemStack pStack, Player pPlayer, BundleContents pBundleContents) boolean
BlockItem.shouldPrintOpWarning
(ItemStack pStack, Player pPlayer) boolean
Item.shouldPrintOpWarning
(ItemStack pStack, Player pPlayer) boolean
SpawnEggItem.shouldPrintOpWarning
(ItemStack pStack, Player pPlayer) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player pPlayer, Mob pMob, EntityType<? extends Mob> pEntityType, ServerLevel pServerLevel, Vec3 pPos, ItemStack pStack) static InteractionResult
ItemUtils.startUsingInstantly
(Level pLevel, Player pPlayer, InteractionHand pHand) boolean
DyeItem.tryApplyToSign
(Level pLevel, SignBlockEntity pSign, boolean pIsFront, Player pPlayer) boolean
GlowInkSacItem.tryApplyToSign
(Level p_278089_, SignBlockEntity p_277706_, boolean p_277442_, Player p_277983_) boolean
HoneycombItem.tryApplyToSign
(Level pLevel, SignBlockEntity pSign, boolean pIsFront, Player pPlayer) boolean
InkSacItem.tryApplyToSign
(Level p_277633_, SignBlockEntity p_277698_, boolean p_277634_, Player p_277815_) boolean
SignApplicator.tryApplyToSign
(Level pLevel, SignBlockEntity pSign, boolean pIsFront, Player pPlayer) static InteractionResult
JukeboxPlayable.tryInsertIntoJukebox
(Level pLevel, BlockPos pPos, ItemStack pStack, Player pPlayer) protected ItemStack
BottleItem.turnBottleIntoItem
(ItemStack pBottleStack, Player pPlayer, ItemStack pFilledBottleStack) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos pPos, Level pLevel, Player pPlayer, ItemStack pStack, BlockState pState) static boolean
BlockItem.updateCustomBlockEntityTag
(Level pLevel, Player pPlayer, BlockPos pPos, ItemStack pStack) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos pPos, Level pLevel, Player pPlayer, ItemStack pStack, BlockState pState) BoatItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BottleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BucketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BundleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) CrossbowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) EggItem.use
(Level p_41128_, Player p_41129_, InteractionHand p_41130_) EmptyMapItem.use
(Level p_41145_, Player p_41146_, InteractionHand p_41147_) EnderEyeItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) EnderpearlItem.use
(Level p_41190_, Player p_41191_, InteractionHand p_41192_) ExperienceBottleItem.use
(Level p_41196_, Player p_41197_, InteractionHand p_41198_) FireworkRocketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) FishingRodItem.use
(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) InstrumentItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Item.use
(Level pLevel, Player pPlayer, InteractionHand pHand) ItemStack.use
(Level pLevel, Player pPlayer, InteractionHand pHand) KnowledgeBookItem.use
(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use
(Level p_42843_, Player p_42844_, InteractionHand p_42845_) PlaceOnWaterBlockItem.use
(Level p_220231_, Player p_220232_, InteractionHand p_220233_) SnowballItem.use
(Level p_43142_, Player p_43143_, InteractionHand p_43144_) SpawnEggItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) SplashPotionItem.use
(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) ThrowablePotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) TridentItem.use
(Level p_43405_, Player p_43406_, InteractionHand p_43407_) WindChargeItem.use
(Level p_326306_, Player p_326042_, InteractionHand p_326470_) WritableBookItem.use
(Level p_43449_, Player p_43450_, InteractionHand p_43451_) WrittenBookItem.use
(Level p_43468_, Player p_43469_, InteractionHand p_43470_) -
Uses of Player in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type PlayerModifier and TypeMethodDescriptionvoid
ItemAttributeModifiers.Display.apply
(Consumer<Component> pOutput, Player pPlayer, Holder<Attribute> pAttribute, AttributeModifier pModifier) void
ItemAttributeModifiers.Display.Default.apply
(Consumer<Component> p_415634_, Player p_415547_, Holder<Attribute> p_416596_, AttributeModifier p_415942_) void
ItemAttributeModifiers.Display.Hidden.apply
(Consumer<Component> p_416397_, Player p_415921_, Holder<Attribute> p_415720_, AttributeModifier p_416314_) void
ItemAttributeModifiers.Display.OverrideText.apply
(Consumer<Component> pOutput, Player pPlayer, Holder<Attribute> pAttribute, AttributeModifier pModifier) WrittenBookContent.resolve
(CommandSourceStack pSource, Player pPlayer) static boolean
WrittenBookContent.resolveForItem
(ItemStack pStack, CommandSourceStack pSource, Player pPlayer) private static Optional
<Filterable<Component>> WrittenBookContent.resolvePage
(CommandSourceStack pSource, Player pPlayer, Filterable<Component> pPages) int
BundleContents.Mutable.tryTransfer
(Slot pSlot, Player pPlayer) -
Uses of Player in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as PlayerMethods in net.minecraft.world.item.context that return PlayerConstructors in net.minecraft.world.item.context with parameters of type PlayerModifierConstructorDescriptionBlockPlaceContext
(Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) BlockPlaceContext
(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) UseOnContext
(Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext
(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) -
Uses of Player in net.minecraft.world.item.equipment
Methods in net.minecraft.world.item.equipment with parameters of type PlayerModifier and TypeMethodDescriptionEquippable.equipOnTarget
(Player pPlayer, LivingEntity pEntity, ItemStack pStack) Equippable.swapWithEquipmentSlot
(ItemStack pStack, Player pPlayer) -
Uses of Player in net.minecraft.world.item.trading
Methods in net.minecraft.world.item.trading that return PlayerMethods in net.minecraft.world.item.trading with parameters of type PlayerModifier and TypeMethodDescriptiondefault void
Merchant.openTradingScreen
(Player pPlayer, Component pDisplayName, int pLevel) void
Merchant.setTradingPlayer
(Player pTradingPlayer) boolean
Merchant.stillValid
(Player pPlayer) -
Uses of Player in net.minecraft.world.level
Fields in net.minecraft.world.level with type parameters of type PlayerMethods in net.minecraft.world.level that return PlayerModifier and TypeMethodDescriptiondefault Player
EntityGetter.getNearestPlayer
(double pX, double pY, double pZ, double pDistance, boolean pCreativePlayers) default Player
EntityGetter.getNearestPlayer
(double pX, double pY, double pZ, double pDistance, Predicate<Entity> pPredicate) default Player
EntityGetter.getNearestPlayer
(Entity pEntity, double pDistance) default Player
EntityGetter.getPlayerByUUID
(UUID pUniqueId) Methods in net.minecraft.world.level that return types with arguments of type PlayerMethods in net.minecraft.world.level with parameters of type Player -
Uses of Player in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type PlayerModifier and TypeMethodDescriptionprivate static void
ChiseledBookShelfBlock.addBook
(Level pLevel, BlockPos pPos, Player pPlayer, ChiseledBookShelfBlockEntity pBlockEntity, ItemStack pBookStack, int pSlot) protected void
DragonEggBlock.attack
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) protected void
NoteBlock.attack
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) protected void
RedStoneOreBlock.attack
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) protected static InteractionResult
CakeBlock.eat
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Player pPlayer) static void
AbstractCandleBlock.extinguish
(Player pPlayer, BlockState pState, LevelAccessor pLevel, BlockPos pPos) private boolean
SignBlock.hasEditableText
(Player pPlayer, SignBlockEntity pSignEntity, boolean pIsFrontText) boolean
BellBlock.onHit
(Level pLevel, BlockState pState, BlockHitResult pResult, Player pPlayer, boolean pCanRingBell) protected abstract void
AbstractFurnaceBlock.openContainer
(Level pLevel, BlockPos pPos, Player pPlayer) Called to open this furnace's container.protected void
BlastFurnaceBlock.openContainer
(Level pLevel, BlockPos pPos, Player pPlayer) Called to open this furnace's container.protected void
FurnaceBlock.openContainer
(Level pLevel, BlockPos pPos, Player pPlayer) Called to open this furnace's container.protected void
SmokerBlock.openContainer
(Level pLevel, BlockPos pPos, Player pPlayer) Called to open this furnace's container.private void
LecternBlock.openScreen
(Level pLevel, BlockPos pPos, Player pPlayer) void
SignBlock.openTextEdit
(Player pPlayer, SignBlockEntity pSignEntity, boolean pIsFrontText) private boolean
SignBlock.otherPlayerIsEditingSign
(Player pPlayer, SignBlockEntity pSignEntity) void
BeehiveBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.void
Block.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pBlockEntity, ItemStack pTool) Called after a player has successfully harvested this block.void
DoublePlantBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.void
IceBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.void
TurtleEggBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.BaseFireBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) BedBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) BeehiveBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) Block.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) CreakingHeartBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) DecoratedPotBlock.playerWillDestroy
(Level p_273590_, BlockPos p_273343_, BlockState p_272869_, Player p_273002_) DoorBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) DoublePlantBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) ShulkerBoxBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) TntBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) TripWireBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) protected void
ButtonBlock.playSound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, boolean pHitByArrow) protected static void
LeverBlock.playSound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) protected void
void
ButtonBlock.press
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) protected static void
DoublePlantBlock.preventDropFromBottomPart
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) void
LeverBlock.pull
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) void
BeehiveBlock.releaseBeesAndResetHoneyLevel
(Level pLevel, BlockState pState, BlockPos pPos, Player pPlayer, BeehiveBlockEntity.BeeReleaseStatus pBeeReleaseStatus) private static void
ChiseledBookShelfBlock.removeBook
(Level pLevel, BlockPos pPos, Player pPlayer, ChiseledBookShelfBlockEntity pBlockEntity, int pSlot) private boolean
CeilingHangingSignBlock.shouldTryToChainAnotherHangingSign
(Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) private boolean
WallHangingSignBlock.shouldTryToChainAnotherHangingSign
(BlockState pState, Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) protected void
BaseFireBlock.spawnDestroyParticles
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState) protected void
Block.spawnDestroyParticles
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState) private void
TrapDoorBlock.toggle
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) private void
CreakingHeartBlock.tryAwardExperience
(Player pPlayer, BlockState pState, Level pLevel, BlockPos pPos) protected InteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
BeehiveBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CampfireBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CandleBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CandleCakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
ComposterBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResult
FlowerPotBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
JukeboxBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
LecternBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
NoteBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResult
RedStoneOreBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
SignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
TntBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResult
WallHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResult
BedBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BellBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CaveVinesBlock.useWithoutItem
(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResult
CaveVinesPlantBlock.useWithoutItem
(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResult
ChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LightBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SignBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
TestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
TestInstanceBlock.useWithoutItem
(BlockState p_397015_, Level p_397062_, BlockPos p_397232_, Player p_397809_, BlockHitResult p_397307_) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of Player in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return types with arguments of type PlayerModifier and TypeMethodDescriptionContainerOpenersCounter.getPlayersWithContainerOpen
(Level pLevel, BlockPos pPos) Methods in net.minecraft.world.level.block.entity with parameters of type PlayerModifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.awardUsedRecipes
(Player pPlayer, List<ItemStack> pItems) boolean
SignBlockEntity.canExecuteClickCommands
(boolean pIsFrontText, Player pPlayer) boolean
boolean
static boolean
private CommandSourceStack
LecternBlockEntity.createCommandSourceStack
(Player pPlayer, ServerLevel pLevel) private static CommandSourceStack
SignBlockEntity.createCommandSourceStack
(Player pPlayer, ServerLevel pLevel, BlockPos pPos) BaseContainerBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) BeaconBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) LecternBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) RandomizableContainerBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) void
ContainerOpenersCounter.decrementOpeners
(Player pPlayer, Level pLevel, BlockPos pPos, BlockState pState) void
BeehiveBlockEntity.emptyAllLivingFromHive
(Player pPlayer, BlockState pState, BeehiveBlockEntity.BeeReleaseStatus pReleaseStatus) boolean
SignBlockEntity.executeClickCommandsIfPresent
(ServerLevel pLevel, Player pPlayer, BlockPos pPos, boolean pIsFrontText) boolean
SignText.hasAnyClickCommands
(Player pPlayer) boolean
SignText.hasMessage
(Player pPlayer) void
ContainerOpenersCounter.incrementOpeners
(Player pPlayer, Level pLevel, BlockPos pPos, BlockState pState) boolean
SignBlockEntity.isFacingFrontText
(Player pPlayer) protected abstract boolean
ContainerOpenersCounter.isOwnContainer
(Player p_155451_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack pStack, Player pPlayer) Resolves the contents of the passed ItemStack, if it is a bookvoid
Sets the ItemStack in this lectern.private SignText
SignBlockEntity.setMessages
(Player pPlayer, List<FilteredText> pFilteredText, SignText pText) void
void
void
void
boolean
BaseContainerBlockEntity.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
ChiseledBookShelfBlockEntity.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
CrafterBlockEntity.stillValid
(Player pPlayer) Don't rename this method to canInteractWith due to conflicts with Containerboolean
EnderChestBlockEntity.stillValid
(Player pPlayer) void
void
void
void
void
SignBlockEntity.updateSignText
(Player pPlayer, boolean pIsFrontText, List<FilteredText> pFilteredText) boolean
-
Uses of Player in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type PlayerModifier and TypeMethodDescriptionTrialSpawnerStateData.findPlayerWithOminousEffect
(ServerLevel pLevel, List<UUID> pPlayers) PlayerDetector.EntitySelector.getPlayers
(ServerLevel pLevel, Predicate<? super Player> pPredicate) Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type PlayerModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.onlySelectPlayer
(Player pPlayer) private static void
TrialSpawnerStateData.transformBadOmenIntoTrialOmen
(Player pPlayer) Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type PlayerModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getPlayers
(ServerLevel pLevel, Predicate<? super Player> pPredicate) PlayerDetector.EntitySelector.onlySelectPlayers
(List<Player> pPlayers) private static Entity
TrialSpawnerState.selectEntityToSpawnItemAbove
(List<Player> pPlayer, Set<UUID> pCurrentMobs, TrialSpawner pSpawner, BlockPos pPos, ServerLevel pLevel) -
Uses of Player in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type PlayerModifier and TypeMethodDescriptionvoid
VaultServerData.addToRewardedPlayers
(Player pPlayer) private static void
VaultBlockEntity.Client.emitConnectionParticlesForPlayer
(Level pLevel, Vec3 pPos, Player pPlayer) (package private) boolean
VaultServerData.hasRewardedPlayer
(Player pPlayer) private static boolean
VaultBlockEntity.Client.isWithinConnectionRange
(BlockPos pPos, VaultSharedData pSharedData, Player pPlayer) VaultBlockEntity.Server.resolveItemsToEject
(ServerLevel pLevel, VaultConfig pConfig, BlockPos pPos, Player pPlayer, ItemStack pKey) static void
VaultBlockEntity.Server.tryInsertKey
(ServerLevel pLevel, BlockPos pPos, BlockState pState, VaultConfig pConfig, VaultServerData pServerData, VaultSharedData pSharedData, Player pPlayer, ItemStack pStack) -
Uses of Player in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type PlayerModifier and TypeMethodDescriptionPistonHeadBlock.playerWillDestroy
(Level pLevel, BlockPos pPos, BlockState pState, Player pPlayer) protected InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of Player in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type PlayerModifier and TypeMethodDescriptionprotected void
BlockBehaviour.attack
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) void
float
BlockBehaviour.BlockStateBase.getDestroyProgress
(Player pPlayer, BlockGetter pLevel, BlockPos pPos) protected float
BlockBehaviour.getDestroyProgress
(BlockState pState, Player pPlayer, BlockGetter pLevel, BlockPos pPos) Get the hardness of this Block relative to the ability of the given playerBlockBehaviour.BlockStateBase.useItemOn
(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
BlockBehaviour.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) BlockBehaviour.BlockStateBase.useWithoutItem
(Level pLevel, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BlockBehaviour.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of Player in net.minecraft.world.level.saveddata.maps
Fields in net.minecraft.world.level.saveddata.maps declared as PlayerFields in net.minecraft.world.level.saveddata.maps with type parameters of type PlayerModifier and TypeFieldDescriptionprivate final Map
<Player, MapItemSavedData.HoldingPlayer> MapItemSavedData.carriedByPlayers
Methods in net.minecraft.world.level.saveddata.maps with parameters of type PlayerModifier and TypeMethodDescriptionMapItemSavedData.getHoldingPlayer
(Player pPlayer) Packet
<?> MapItemSavedData.getUpdatePacket
(MapId pMapId, Player pPlayer) private static boolean
MapItemSavedData.hasMapInvisibilityItemEquipped
(Player pPlayer) void
MapItemSavedData.tickCarriedBy
(Player pPlayer, ItemStack pMapStack) Adds the player passed to the list of visible players and checks to see which players are visibleConstructors in net.minecraft.world.level.saveddata.maps with parameters of type Player -
Uses of Player in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage with parameters of type PlayerModifier and TypeMethodDescriptionprivate void
private Optional
<CompoundTag> PlayerDataStorage.load
(Player pPlayer, ProblemReporter pProblemReporter) void
-
Uses of Player in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type PlayerModifier and TypeFieldDescriptionstatic final ContextKey
<Player> LootContextParams.LAST_DAMAGE_PLAYER
-
Uses of Player in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes with parameters of type PlayerModifier and TypeMethodDescriptionstatic CollisionContext
CollisionContext.placementContext
(Player pPlayer) -
Uses of Player in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks with parameters of type PlayerModifier and TypeMethodDescriptiondefault boolean
ContainerSingleItem.BlockContainerSingleItem.stillValid
(Player p_324363_) -
Uses of Player in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type PlayerModifier and TypeMethodDescriptionstatic Gui.HeartType
ClientHooks.firePlayerHeartTypeEvent
(Player player, Gui.HeartType heartType) Called byGui.HeartType.forPlayer(net.minecraft.world.entity.player.Player)
to allow for modification of the displayed heart type in the health bar.static float
ClientHooks.getFieldOfViewModifier
(Player entity, float fovModifier, float fovScale) static void
ClientHooks.onMovementInputUpdate
(Player player, ClientInput movementInput) static boolean
ClientHooks.renderBlockOverlay
(Player player, PoseStack mat, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos pos) static boolean
ClientHooks.renderFireOverlay
(Player player, PoseStack mat) static boolean
ClientHooks.renderWaterOverlay
(Player player, PoseStack mat) -
Uses of Player in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as PlayerModifier and TypeFieldDescriptionprivate final Player
ComputeFovModifierEvent.player
private final Player
RenderBlockScreenEffectEvent.player
Fields in net.neoforged.neoforge.client.event with type parameters of type PlayerModifier and TypeFieldDescriptionprivate final Map
<PlayerSkin.Model, EntityRenderer<? extends Player, ?>> EntityRenderersEvent.AddLayers.skinMap
Methods in net.neoforged.neoforge.client.event with type parameters of type PlayerModifier and TypeMethodDescription<R extends EntityRenderer<? extends Player,
?>>
REntityRenderersEvent.AddLayers.getSkin
(PlayerSkin.Model skinModel) Returns a player skin renderer for the given skin name.Methods in net.neoforged.neoforge.client.event that return PlayerModifier and TypeMethodDescriptionComputeFovModifierEvent.getPlayer()
Returns the player affected by this event.RenderBlockScreenEffectEvent.getPlayer()
Returns the player which the overlay will apply to.Constructors in net.neoforged.neoforge.client.event with parameters of type PlayerModifierConstructorDescriptionComputeFovModifierEvent
(Player player, float fovModifier, float fovScale) MovementInputUpdateEvent
(Player player, ClientInput input) PlayerHeartTypeEvent
(Player player, Gui.HeartType type) RenderBlockScreenEffectEvent
(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) -
Uses of Player in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type PlayerModifier and TypeMethodDescriptiondefault void
IClientItemExtensions.renderFirstPersonOverlay
(ItemStack stack, EquipmentSlot equipmentSlot, Player player, GuiGraphics guiGraphics, DeltaTracker deltaTracker) Called to render an overlay on the first-person camera. -
Uses of Player in net.neoforged.neoforge.client.network.handling
Methods in net.neoforged.neoforge.client.network.handling that return Player -
Uses of Player in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type PlayerMethods in net.neoforged.neoforge.common that return PlayerMethods in net.neoforged.neoforge.common with parameters of type PlayerModifier and TypeMethodDescriptionstatic void
CommonHooks.fireAnvilCraftPost
(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Post
when the anvil is used to craft an item.static AnvilCraftEvent.Pre
CommonHooks.fireAnvilCraftPre
(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Pre
when the anvil is used to craft an item.static CriticalHitEvent
CommonHooks.fireCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) Fires theCriticalHitEvent
and returns the resulting event.static SweepAttackEvent
CommonHooks.fireSweepAttack
(Player player, Entity target, boolean isVanillaSweep) Fires theSweepAttackEvent
and returns the resulting event.default boolean
IShearable.isShearable
(@Nullable Player player, ItemStack item, Level level, BlockPos pos) Checks if this object can be sheared.static void
CommonHooks.onAnvilUpdate
(AnvilMenu menu, ItemStack leftInput, ItemStack rightInput, Container resultSlot, @Nullable String name, Player player) Called fromAnvilMenu.createResult()
after the vanilla result has been computed.static @Nullable GameType
CommonHooks.onChangeGameType
(Player player, GameType currentGameType, GameType newGameType) CommonHooks.onClientMineHold
(Player player, BlockPos pos, Direction face) static void
CommonHooks.onEmptyClick
(Player player, InteractionHand hand) static void
CommonHooks.onEmptyLeftClick
(Player player) static @Nullable InteractionResult
CommonHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onItemRightClick
(Player player, InteractionHand hand) static boolean
CommonHooks.onItemStackedOn
(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) Fires theItemStackedOnOtherEvent
, allowing items to handle custom behavior relating to being stacked together (i.e. how the bundle operates).CommonHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) static boolean
CommonHooks.onPlayerAttackTarget
(Player player, Entity target) static void
CommonHooks.onPlayerEnchantItem
(Player player, ItemStack stack, List<EnchantmentInstance> instances) FiresPlayerEnchantItemEvent
inEnchantmentMenu.clickMenuButton(Player, int)
after the enchants are applied to the item.static @Nullable ItemEntity
CommonHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) CommonHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) Shears this object.static void
CommonHooks.setCraftingPlayer
(Player player) static boolean
CommonHooks.shouldSuppressEnderManAnger
(EnderMan enderMan, Player player) -
Uses of Player in net.neoforged.neoforge.common.damagesource
Methods in net.neoforged.neoforge.common.damagesource with parameters of type PlayerModifier and TypeMethodDescriptionfloat
IScalingFunction.scaleDamage
(DamageSource source, Player target, float amount, Difficulty difficulty) Scales the incoming damage amount based on the current difficulty.
Only damage dealt to players is scaled, other damage is not impacted. -
Uses of Player in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return PlayerMethods in net.neoforged.neoforge.common.extensions with parameters of type PlayerModifier and TypeMethodDescriptiondefault void
IPlayerListExtension.broadcast
(Player excludedPlayer, double x, double y, double z, double range, ResourceKey<Level> level, CustomPacketPayload payload) Sends a payload to all players within the specific level, within a given range around the target point, excluding the specified player.default boolean
IBlockExtension.canHarvestBlock
(BlockState state, BlockGetter level, BlockPos pos, Player player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IBlockStateExtension.canHarvestBlock
(BlockGetter level, BlockPos pos, Player player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IItemExtension.doesSneakBypassUse
(ItemStack stack, LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default boolean
IItemStackExtension.doesSneakBypassUse
(LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default ItemStack
IBlockExtension.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IBlockStateExtension.getCloneItemStack
(BlockPos pos, LevelReader level, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault AABB
IItemExtension.getSweepHitBox
(ItemStack stack, Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default AABB
IItemStackExtension.getSweepHitBox
(Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default boolean
IEntityExtension.hasCustomOutlineRendering
(Player player) Returns whether thisEntity
has custom outline rendering behavior which does not use the existing automatic outline rendering based onEntity.isCurrentlyGlowing()
and the entity's team color.default boolean
IItemExtension.isGazeDisguise
(ItemStack stack, Player player, @Nullable LivingEntity entity) Whether thisItem
can be used to hide player's gaze from Endermen and Creakings.default boolean
IItemStackExtension.isGazeDisguise
(Player player, @Nullable LivingEntity entity) Whether thisItem
can be used to hide player's gaze from Endermen and Creakings.default boolean
IItemExtension.isNotReplaceableByPickAction
(ItemStack stack, Player player, int inventorySlot) Whether the given ItemStack should be excluded (if possible) when selecting the target hotbar slot of a "pick" action.default boolean
IItemStackExtension.isNotReplaceableByPickAction
(Player player, int inventorySlot) Whether this stack should be excluded (if possible) when selecting the target hotbar slot of a "pick" action.default boolean
IBlockExtension.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IBlockStateExtension.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IItemExtension.onDroppedByPlayer
(ItemStack item, Player player) Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the worlddefault boolean
IItemStackExtension.onDroppedByPlayer
(Player player) Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the worlddefault boolean
IItemExtension.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity. -
Uses of Player in net.neoforged.neoforge.common.util
Subclasses of Player in net.neoforged.neoforge.common.utilModifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions.Methods in net.neoforged.neoforge.common.util that return PlayerModifier and TypeMethodDescription@Nullable Player
AttributeTooltipContext.player()
Returns the player for whom tooltips are being generated for, if known.Methods in net.neoforged.neoforge.common.util with parameters of type PlayerModifier and TypeMethodDescriptionboolean
FakePlayer.canHarmPlayer
(Player player) static AttributeTooltipContext
AttributeTooltipContext.of
(@Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag) -
Uses of Player in net.neoforged.neoforge.entity
Fields in net.neoforged.neoforge.entity with type parameters of type PlayerMethods in net.neoforged.neoforge.entity that return PlayerModifier and TypeMethodDescription@Nullable Player
XpOrbTargetingEvent.getFollowingPlayer()
The result of the event.Methods in net.neoforged.neoforge.entity with parameters of type PlayerModifier and TypeMethodDescriptionvoid
XpOrbTargetingEvent.setFollowingPlayer
(@Nullable Player newFollowingPlayer) Sets a new result. -
Uses of Player in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as PlayerModifier and TypeFieldDescriptionprivate final Player
AnvilUpdateEvent.player
private final Player
ItemStackedOnOtherEvent.player
Methods in net.neoforged.neoforge.event that return PlayerModifier and TypeMethodDescriptionAnvilUpdateEvent.getPlayer()
ItemStackedOnOtherEvent.getPlayer()
Returns the player doing the item swap attempt.Methods in net.neoforged.neoforge.event with parameters of type PlayerModifier and TypeMethodDescriptionstatic boolean
EventHooks.doPlayerHarvestCheck
(Player player, BlockState state, BlockGetter level, BlockPos pos) static BonemealEvent
EventHooks.fireBonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) Called when bone meal (or equivalent) is used on a block.static void
EventHooks.fireItemPickupPost
(ItemEntity itemEntity, Player player, ItemStack copy) Called inItemEntity.playerTouch(Player)
after an item was successfully picked up.static ItemEntityPickupEvent.Pre
EventHooks.fireItemPickupPre
(ItemEntity itemEntity, Player player) Called inItemEntity.playerTouch(Player)
before any other processing occurs.static void
EventHooks.firePlayerChangedDimensionEvent
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) static void
EventHooks.firePlayerCraftingEvent
(Player player, ItemStack crafted, Container craftMatrix) static void
EventHooks.firePlayerLoadingEvent
(Player player, File playerDirectory, String uuidString) static void
EventHooks.firePlayerLoadingEvent
(Player player, PlayerDataStorage playerFileData, String uuidString) static void
EventHooks.firePlayerLoggedIn
(Player player) static void
EventHooks.firePlayerLoggedOut
(Player player) static void
EventHooks.firePlayerSavingEvent
(Player player, File playerDirectory, String uuidString) static void
EventHooks.firePlayerSmeltedEvent
(Player player, ItemStack smelted, int amountRemoved) static void
EventHooks.firePlayerTickPost
(Player player) FiresPlayerTickEvent.Post
.static void
EventHooks.firePlayerTickPre
(Player player) FiresPlayerTickEvent.Pre
.static float
EventHooks.getBreakSpeed
(Player player, BlockState state, float original, BlockPos pos) static int
EventHooks.getExperienceDrop
(LivingEntity entity, @Nullable Player attackingPlayer, int originalExperience) static Component
EventHooks.getPlayerDisplayName
(Player player, Component username) static Component
EventHooks.getPlayerTabListDisplayName
(Player player) static void
EventHooks.onAdvancementEarnedEvent
(Player player, AdvancementHolder earned) static void
EventHooks.onAdvancementProgressedEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterion, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) static boolean
EventHooks.onAnimalTame
(Animal animal, Player tamer) static int
EventHooks.onArrowLoose
(ItemStack stack, Level level, Player player, int charge, boolean hasAmmo) static InteractionResult
EventHooks.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static ItemTooltipEvent
EventHooks.onItemTooltip
(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) static void
EventHooks.onPlayerBrewedPotion
(Player player, ItemStack stack) static void
EventHooks.onPlayerClone
(Player player, Player oldPlayer, boolean wasDeath) static void
EventHooks.onPlayerDestroyItem
(Player player, ItemStack stack, @Nullable InteractionHand hand) static void
EventHooks.onPlayerFall
(Player player, float distance, float multiplier) static boolean
EventHooks.onPlayerSpawnSet
(Player player, ServerPlayer.RespawnConfig respawnConfig) static void
EventHooks.onPlayerWakeup
(Player player, boolean wakeImmediately, boolean updateLevel) static void
EventHooks.onStartEntityTracking
(Entity entity, Player player) static StatAwardEvent
EventHooks.onStatAward
(Player player, Stat<?> stat, int value) static void
EventHooks.onStopEntityTracking
(Entity entity, Player player) Constructors in net.neoforged.neoforge.event with parameters of type PlayerModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, @Nullable String name, ItemStack result, int xpCost, int materialCost, Player player) ItemStackedOnOtherEvent
(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) StatAwardEvent
(Player player, Stat<?> stat, int value) -
Uses of Player in net.neoforged.neoforge.event.brewing
Constructors in net.neoforged.neoforge.event.brewing with parameters of type Player -
Uses of Player in net.neoforged.neoforge.event.entity.item
Fields in net.neoforged.neoforge.event.entity.item declared as PlayerMethods in net.neoforged.neoforge.event.entity.item that return PlayerConstructors in net.neoforged.neoforge.event.entity.item with parameters of type PlayerModifierConstructorDescriptionItemTossEvent
(ItemEntity entityItem, Player player) Creates a new event for EntityItems tossed by a player. -
Uses of Player in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as PlayerModifier and TypeFieldDescriptionprivate final @Nullable Player
LivingExperienceDropEvent.attackingPlayer
private final Player
BabyEntitySpawnEvent.causedByPlayer
private final Player
EnderManAngerEvent.player
private final Player
AnimalTameEvent.tamer
Methods in net.neoforged.neoforge.event.entity.living that return PlayerModifier and TypeMethodDescription@Nullable Player
LivingExperienceDropEvent.getAttackingPlayer()
@Nullable Player
BabyEntitySpawnEvent.getCausedByPlayer()
EnderManAngerEvent.getPlayer()
The player that is being checked.AnimalTameEvent.getTamer()
Constructors in net.neoforged.neoforge.event.entity.living with parameters of type PlayerModifierConstructorDescriptionAnimalTameEvent
(Animal animal, Player tamer) EnderManAngerEvent
(EnderMan enderman, Player player) LivingExperienceDropEvent
(LivingEntity entity, @Nullable Player attackingPlayer, int originalExperience) -
Uses of Player in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as PlayerModifier and TypeFieldDescriptionprivate final Player
PlayerEvent.Clone.original
private final @Nullable Player
BonemealEvent.player
private final Player
ItemEntityPickupEvent.player
private final Player
PlayerEvent.player
private final @Nullable Player
UseItemOnBlockEvent.player
Methods in net.neoforged.neoforge.event.entity.player that return PlayerModifier and TypeMethodDescription@Nullable Player
ItemTooltipEvent.getEntity()
This event is fired with a null player during startup when populating search trees for tooltips.PlayerEvent.getEntity()
PlayerEvent.Clone.getOriginal()
The old EntityPlayer that this new entity is a clone of.@Nullable Player
BonemealEvent.getPlayer()
Returns the player who used the bone meal, if any.ItemEntityPickupEvent.getPlayer()
Returns the player who collided with the item.@Nullable Player
UseItemOnBlockEvent.getPlayer()
Constructors in net.neoforged.neoforge.event.entity.player with parameters of type PlayerModifierConstructorDescriptionAdvancementEarnEvent
(Player player, AdvancementHolder earned) AdvancementEvent
(Player player, AdvancementHolder advancement) AdvancementProgressEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterionName, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) ArrowLooseEvent
(Player player, ItemStack bow, Level level, int charge, boolean hasAmmo) ArrowNockEvent
(Player player, ItemStack item, InteractionHand hand, Level level, boolean hasAmmo) AttackEntityEvent
(Player player, Entity target) BonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) BreakSpeed
(Player player, BlockState state, float original, @Nullable BlockPos pos) Close
(Player player, AbstractContainerMenu container) CriticalHitEvent
(Player player, Entity target, float dmgMultiplier, boolean isCriticalHit) EntityInteract
(Player player, InteractionHand hand, Entity target) EntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) HarvestCheck
(Player player, BlockState state, BlockGetter level, BlockPos pos, boolean success) ItemCraftedEvent
(Player player, ItemStack crafting, Container craftMatrix) ItemEntityPickupEvent
(Player player, ItemEntity item) ItemSmeltedEvent
(Player player, ItemStack crafting, int amountRemoved) ItemTooltipEvent
(ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags, Item.TooltipContext context) This event is fired inItemStack.getTooltipLines(TooltipContext, Player, TooltipFlag)
, which in turn is called from its respective GUIContainer.LeftClickBlock
(Player player, BlockPos pos, Direction face, PlayerInteractEvent.LeftClickBlock.Action action) LeftClickEmpty
(Player player) LevelChange
(Player player, int levels) LoadFromFile
(Player player, File originDirectory, String playerUUID) NameFormat
(Player player, Component username) Open
(Player player, AbstractContainerMenu container) PickupXp
(Player player, ExperienceOrb orb) PlayerChangedDimensionEvent
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) PlayerChangeGameModeEvent
(Player player, GameType currentGameMode, GameType newGameMode) PlayerContainerEvent
(Player player, AbstractContainerMenu container) PlayerDestroyItemEvent
(Player player, ItemStack original, @Nullable InteractionHand hand) PlayerEnchantItemEvent
(Player player, ItemStack enchantedItem, List<EnchantmentInstance> enchantments) PlayerEvent
(Player player) PlayerFlyableFallEvent
(Player player, float distance, float multiplier) protected
PlayerInteractEvent
(Player player, InteractionHand hand, BlockPos pos, @Nullable Direction face) PlayerLoggedInEvent
(Player player) PlayerLoggedOutEvent
(Player player) PlayerRespawnEvent
(Player player, boolean endConquered) PlayerSetSpawnEvent
(Player player, ServerPlayer.RespawnConfig respawnConfig) PlayerSpawnPhantomsEvent
(Player player, int phantomsToSpawn) PlayerWakeUpEvent
(Player player, boolean wakeImmediately, boolean updateLevel) PlayerXpEvent
(Player player) Post
(Player player, ItemEntity item, ItemStack originalStack) Pre
(Player player, ItemEntity item) RightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) RightClickEmpty
(Player player, InteractionHand hand) RightClickItem
(Player player, InteractionHand hand) SaveToFile
(Player player, File originDirectory, String playerUUID) StartTracking
(Player player, Entity target) StopTracking
(Player player, Entity target) SweepAttackEvent
(Player player, Entity target, boolean isVanillaSweep) TabListNameFormat
(Player player) TradeWithVillagerEvent
(Player player, MerchantOffer offer, AbstractVillager abstractVillager) -
Uses of Player in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as PlayerMethods in net.neoforged.neoforge.event.level that return PlayerModifier and TypeMethodDescription@Nullable Player
BlockEvent.BlockToolModificationEvent.getPlayer()
BlockEvent.BreakEvent.getPlayer()
Returns the player who is attempting to break the block.Constructors in net.neoforged.neoforge.event.level with parameters of type PlayerModifierConstructorDescriptionBreakEvent
(Level level, BlockPos pos, BlockState state, Player player) -
Uses of Player in net.neoforged.neoforge.event.tick
Constructors in net.neoforged.neoforge.event.tick with parameters of type Player -
Uses of Player in net.neoforged.neoforge.event.village
Fields in net.neoforged.neoforge.event.village declared as PlayerMethods in net.neoforged.neoforge.event.village that return PlayerConstructors in net.neoforged.neoforge.event.village with parameters of type PlayerModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Player in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type PlayerModifier and TypeMethodDescriptionstatic boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, Level level, BlockPos pos, @Nullable Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, IFluidHandler handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static FluidActionResult
FluidUtil.tryEmptyContainer
(ItemStack container, IFluidHandler fluidDestination, int maxAmount, @Nullable Player player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static FluidActionResult
FluidUtil.tryFillContainer
(ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.tryFillContainerAndStow
(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Attempts to pick up a fluid in the level and put it in an empty container item.static FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Tries to place a fluid resource into the level as a block and drains the fluidSource. -
Uses of Player in net.neoforged.neoforge.fluids.capability.wrappers
Fields in net.neoforged.neoforge.fluids.capability.wrappers declared as PlayerConstructors in net.neoforged.neoforge.fluids.capability.wrappers with parameters of type PlayerModifierConstructorDescriptionBucketPickupHandlerWrapper
(Player player, BucketPickup bucketPickupHandler, Level world, BlockPos blockPos) -
Uses of Player in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items with parameters of type PlayerModifier and TypeMethodDescriptionstatic void
ItemHandlerHelper.giveItemToPlayer
(Player player, ItemStack stack) giveItemToPlayer without preferred slotstatic void
ItemHandlerHelper.giveItemToPlayer
(Player player, ItemStack stack, int preferredSlot) Inserts the given itemstack into the players inventory.boolean
boolean
-
Uses of Player in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling that return Player
invalid @link