Uses of Class
net.minecraft.world.entity.player.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
Modifier and TypeMethodDescription(package private) static Gui.HeartType
private static void
Gui.renderArmor
(GuiGraphics p_335393_, Player p_335672_, int p_335452_, int p_335846_, int p_335778_, int p_335859_) private void
Gui.renderFood
(GuiGraphics p_335615_, Player p_336082_, int p_335399_, int p_335589_) protected void
Gui.renderHearts
(GuiGraphics p_282497_, Player p_168690_, int p_168691_, int p_168692_, int p_168693_, int p_168694_, float p_168695_, int p_168696_, int p_168697_, int p_168698_, boolean p_168699_) private void
Gui.renderSlot
(GuiGraphics p_283283_, int p_283213_, int p_281301_, float p_281885_, Player p_283644_, ItemStack p_283317_, int p_283261_) -
Uses of Player in net.minecraft.client.gui.screens.inventory
Modifier and TypeFieldDescriptionprivate final Player
BookEditScreen.owner
private final Player
AnvilScreen.player
private final Player
CrafterScreen.player
Modifier and TypeMethodDescriptionprivate boolean
CreativeModeInventoryScreen.hasPermissions
(Player p_259959_) boolean
boolean
void
CreativeModeInventoryScreen.ItemPickerMenu.quickMoveStack
(Player p_98650_, int p_98651_) boolean
CreativeModeInventoryScreen.ItemPickerMenu.stillValid
(Player p_98645_) ModifierConstructorDescriptionBookEditScreen
(Player p_98076_, ItemStack p_98077_, InteractionHand p_98078_) CreativeModeInventoryScreen
(Player p_259788_, FeatureFlagSet p_260074_, boolean p_259569_) InventoryScreen
(Player p_98839_) ItemPickerMenu
(Player p_98641_) -
Uses of Player in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.adjustPlayer
(Player p_105222_) void
private static ItemStack
void
MultiPlayerGameMode.handleInventoryMouseClick
(int p_171800_, int p_171801_, int p_171802_, ClickType p_171803_, Player p_171804_) MultiPlayerGameMode.interact
(Player p_105227_, Entity p_105228_, InteractionHand p_105229_) MultiPlayerGameMode.interactAt
(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) void
ClientLevel.levelEvent
(Player p_104654_, int p_104655_, BlockPos p_104656_, int p_104657_) void
ClientLevel.playSeededSound
(Player p_263381_, double p_263372_, double p_263404_, double p_263365_, Holder<SoundEvent> p_263335_, SoundSource p_263417_, float p_263416_, float p_263349_, long p_263408_) void
ClientLevel.playSeededSound
(Player p_263514_, Entity p_263536_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) void
MultiPlayerGameMode.releaseUsingItem
(Player p_105278_) MultiPlayerGameMode.useItem
(Player p_233722_, InteractionHand p_233723_) -
Uses of Player in net.minecraft.client.player
-
Uses of Player in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionprivate static org.apache.commons.lang3.tuple.Pair
<BlockState, BlockPos> ScreenEffectRenderer.getOverlayBlock
(Player p_110717_) private static BlockState
ScreenEffectRenderer.getViewBlockingState
(Player p_110717_) -
Uses of Player in net.minecraft.client.renderer.entity
Modifier and TypeFieldDescriptionprivate Map
<PlayerSkin.Model, EntityRenderer<? extends Player>> EntityRenderDispatcher.playerRenderers
Modifier and TypeMethodDescriptionstatic Map
<PlayerSkin.Model, EntityRenderer<? extends Player>> EntityRenderers.createPlayerRenderers
(EntityRendererProvider.Context p_174052_) Map
<PlayerSkin.Model, EntityRenderer<? extends Player>> EntityRenderDispatcher.getSkinMap()
Modifier and TypeMethodDescriptionprivate Vec3
FishingHookRenderer.getPlayerHandPos
(Player p_340935_, float p_340872_, float p_341261_) -
Uses of Player in net.minecraft.client.renderer.entity.layers
Modifier and TypeClassDescriptionclass
ParrotOnShoulderLayer<T extends Player>
class
PlayerItemInHandLayer<T extends Player,
M extends EntityModel<T> & ArmedModel & HeadedModel> -
Uses of Player in net.minecraft.client.resources.sounds
ModifierConstructorDescriptionRidingMinecartSoundInstance
(Player p_174940_, AbstractMinecart p_174941_, boolean p_174942_) -
Uses of Player in net.minecraft.core.cauldron
Modifier and TypeMethodDescriptionstatic ItemInteractionResult
CauldronInteraction.emptyBucket
(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static ItemInteractionResult
CauldronInteraction.fillBucket
(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) CauldronInteraction.interact
(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) -
Uses of Player in net.minecraft.gametest.framework
-
Uses of Player in net.minecraft.server
Modifier and TypeMethodDescriptionboolean
MinecraftServer.isUnderSpawnProtection
(ServerLevel p_129811_, BlockPos p_129812_, Player p_129813_) -
Uses of Player in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
SpawnArmorTrimsCommand.spawnArmorTrims
(CommandSourceStack p_266993_, Player p_266983_) Modifier and TypeMethodDescriptionprivate static int
WardenSpawnTrackerCommand.resetTracker
(CommandSourceStack p_214780_, Collection<? extends Player> p_214781_) private static int
WardenSpawnTrackerCommand.setWarningLevel
(CommandSourceStack p_214783_, Collection<? extends Player> p_214784_, int p_214785_) -
Uses of Player in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionboolean
DedicatedServer.isUnderSpawnProtection
(ServerLevel p_139630_, BlockPos p_139631_, Player p_139632_) -
Uses of Player in net.minecraft.server.level
Modifier and TypeMethodDescriptionWorldGenRegion.getNearestPlayer
(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) Modifier and TypeMethodDescriptionboolean
ServerPlayer.canHarmPlayer
(Player p_9064_) void
ServerLevel.levelEvent
(Player p_8684_, int p_8685_, BlockPos p_8686_, int p_8687_) void
WorldGenRegion.levelEvent
(Player p_9523_, int p_9524_, BlockPos p_9525_, int p_9526_) boolean
ServerLevel.mayInteract
(Player p_8696_, BlockPos p_8697_) void
ServerLevel.playSeededSound
(Player p_263330_, double p_263393_, double p_263369_, double p_263354_, Holder<SoundEvent> p_263412_, SoundSource p_263338_, float p_263352_, float p_263390_, long p_263403_) void
ServerLevel.playSeededSound
(Player p_263545_, Entity p_263544_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) void
WorldGenRegion.playSound
(Player p_9528_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) -
Uses of Player in net.minecraft.server.players
Modifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(Player p_11242_, double p_11243_, double p_11244_, double p_11245_, double p_11246_, ResourceKey<Level> p_11247_, Packet<?> p_11248_) void
PlayerList.broadcastSystemToAllExceptTeam
(Player p_215650_, Component p_215651_) void
PlayerList.broadcastSystemToTeam
(Player p_215622_, Component p_215623_) PlayerList.getPlayerStats
(Player p_11240_) -
Uses of Player in net.minecraft.stats
-
Uses of Player in net.minecraft.world
Modifier and TypeMethodDescriptionSimpleMenuProvider.createMenu
(int p_19205_, Inventory p_19206_, Player p_19207_) void
default void
boolean
CompoundContainer.stillValid
(Player p_18930_) boolean
Container.stillValid
(Player p_18946_) boolean
SimpleContainer.stillValid
(Player p_19167_) static boolean
Container.stillValidBlockEntity
(BlockEntity p_273154_, Player p_273222_) static boolean
Container.stillValidBlockEntity
(BlockEntity p_272877_, Player p_272670_, float p_320837_) void
default void
default void
RandomizableContainer.unpackLootTable
(Player p_309628_) -
Uses of Player in net.minecraft.world.damagesource
-
Uses of Player in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate Player
ExperienceOrb.followingPlayer
protected Player
LivingEntity.lastHurtByPlayer
Modifier and TypeMethodDescriptionEntityType.appendCustomEntityStackConfig
(Consumer<T> p_263579_, ServerLevel p_263571_, ItemStack p_263582_, Player p_263574_) EntityType.appendDefaultStackConfig
(Consumer<T> p_265154_, ServerLevel p_265733_, ItemStack p_265598_, Player p_265666_) boolean
Mob.canBeLeashed
(Player p_21418_) boolean
TamableAnimal.canBeLeashed
(Player p_21813_) private InteractionResult
Mob.checkAndHandleImportantInteractions
(Player p_21500_, InteractionHand p_21501_) EntityType.createDefaultStackConfig
(ServerLevel p_263583_, ItemStack p_263568_, Player p_263575_) protected Vec3
LivingEntity.getRiddenInput
(Player p_278326_, Vec3 p_275300_) protected float
LivingEntity.getRiddenSpeed
(Player p_278286_) Entity.interact
(Player p_19978_, InteractionHand p_19979_) Interaction.interact
(Player p_273507_, InteractionHand p_273048_) final InteractionResult
Mob.interact
(Player p_21420_, InteractionHand p_21421_) Entity.interactAt
(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) boolean
Entity.isInvisibleTo
(Player p_20178_) protected InteractionResult
Mob.mobInteract
(Player p_21472_, InteractionHand p_21473_) protected void
Mob.onOffspringSpawnedFromEgg
(Player p_21422_, Mob p_21423_) void
HasCustomInventoryScreen.openCustomInventoryScreen
(Player p_217023_) default void
NeutralMob.playerDied
(Player p_21677_) void
Entity.playerTouch
(Player p_20081_) void
ExperienceOrb.playerTouch
(Player p_20792_) private int
ExperienceOrb.repairPlayerItems
(Player p_147093_, int p_147094_) void
LivingEntity.setLastHurtByPlayer
(Player p_21248_) void
NeutralMob.setLastHurtByPlayer
(Player p_21680_) boolean
LivingEntity.shouldRiderFaceForward
(Player player) Returns true if the entity's rider (EntityPlayer) should face forward when mounted.EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) void
protected void
LivingEntity.tickRidden
(Player p_278262_, Vec3 p_275242_) private void
LivingEntity.travelRidden
(Player p_278244_, Vec3 p_278231_) static void
EntityType.updateCustomEntityTag
(Level p_20621_, Player p_20622_, Entity p_20623_, CustomData p_331752_) -
Uses of Player in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionGiveGiftToHero.getNearestTargetableHero
(Villager p_23040_) FollowTemptation.getTemptingPlayer
(PathfinderMob p_147509_) Modifier and TypeMethodDescriptionprivate boolean
private boolean
GiveGiftToHero.isWithinThrowingDistance
(Villager p_23015_, Player p_23016_) -
Uses of Player in net.minecraft.world.entity.ai.goal
Modifier and TypeFieldDescriptionprivate Player
FollowBoatGoal.following
private Player
BegGoal.player
protected Player
TemptGoal.player
Modifier and TypeMethodDescriptionprivate boolean
BegGoal.playerHoldingInteresting
(Player p_25067_) -
Uses of Player in net.minecraft.world.entity.ai.memory
Modifier 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
<Player> MemoryModuleType.NEAREST_VISIBLE_PLAYER
static final MemoryModuleType
<Player> MemoryModuleType.TEMPTING_PLAYER
-
Uses of Player in net.minecraft.world.entity.ai.sensing
Modifier and TypeMethodDescriptionprivate boolean
TemptingSensor.playerHoldingTemptation
(Player p_148337_) -
Uses of Player in net.minecraft.world.entity.ambient
-
Uses of Player in net.minecraft.world.entity.animal
Modifier and TypeFieldDescriptionprivate Player
Cat.CatRelaxOnOwnerGoal.ownerPlayer
private Player
Dolphin.DolphinSwimWithPlayerGoal.player
private Player
Cat.CatTemptGoal.selectedPlayer
Modifier and TypeFieldDescriptionprivate Cat.CatAvoidEntityGoal
<Player> Cat.avoidPlayersGoal
private Ocelot.OcelotAvoidEntityGoal
<Player> Ocelot.ocelotAvoidPlayersGoal
Modifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player p_148829_, InteractionHand p_148830_, T p_148831_) boolean
Dolphin.canBeLeashed
(Player p_28330_) boolean
Panda.canBeLeashed
(Player p_29107_) boolean
Squid.canBeLeashed
(Player p_149052_) boolean
Turtle.canBeLeashed
(Player p_30151_) boolean
WaterAnimal.canBeLeashed
(Player p_30346_) boolean
Wolf.canBeLeashed
(Player p_30396_) protected Vec3
Pig.getRiddenInput
(Player p_278309_, Vec3 p_275479_) protected float
Pig.getRiddenSpeed
(Player p_278258_) protected InteractionResult
AbstractFish.mobInteract
(Player p_27477_, InteractionHand p_27478_) Animal.mobInteract
(Player p_27584_, InteractionHand p_27585_) Cat.mobInteract
(Player p_28153_, InteractionHand p_28154_) Cow.mobInteract
(Player p_28298_, InteractionHand p_28299_) protected InteractionResult
Dolphin.mobInteract
(Player p_28359_, InteractionHand p_28360_) protected InteractionResult
IronGolem.mobInteract
(Player p_28861_, InteractionHand p_28862_) MushroomCow.mobInteract
(Player p_28941_, InteractionHand p_28942_) Ocelot.mobInteract
(Player p_29021_, InteractionHand p_29022_) Panda.mobInteract
(Player p_29123_, InteractionHand p_29124_) Parrot.mobInteract
(Player p_29414_, InteractionHand p_29415_) Pig.mobInteract
(Player p_29489_, InteractionHand p_29490_) Sheep.mobInteract
(Player p_29853_, InteractionHand p_29854_) protected InteractionResult
SnowGolem.mobInteract
(Player p_29920_, InteractionHand p_29921_) Wolf.mobInteract
(Player p_30412_, InteractionHand p_30413_) protected void
Fox.onOffspringSpawnedFromEgg
(Player p_28481_, Mob p_28482_) void
Pufferfish.playerTouch
(Player p_29617_) void
protected void
Pig.tickRidden
(Player p_278330_, Vec3 p_278267_) private void
private void
protected void
Animal.usePlayerItem
(Player p_148715_, InteractionHand p_148716_, ItemStack p_148717_) protected void
Cat.usePlayerItem
(Player p_148866_, InteractionHand p_148867_, ItemStack p_148868_) protected void
Fox.usePlayerItem
(Player p_148908_, InteractionHand p_148909_, ItemStack p_148910_) -
Uses of Player in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player p_218361_, InteractionHand p_218362_) private void
Allay.removeInteractionItem
(Player p_239359_, ItemStack p_239360_) -
Uses of Player in net.minecraft.world.entity.animal.armadillo
Modifier and TypeMethodDescriptionArmadillo.mobInteract
(Player p_316559_, InteractionHand p_316119_) void
-
Uses of Player in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionvoid
Axolotl.applySupportingEffects
(Player p_149174_) boolean
Axolotl.canBeLeashed
(Player p_149122_) Axolotl.mobInteract
(Player p_149155_, InteractionHand p_149156_) protected void
Axolotl.usePlayerItem
(Player p_149124_, InteractionHand p_149125_, ItemStack p_149126_) -
Uses of Player in net.minecraft.world.entity.animal.camel
Modifier and TypeMethodDescriptionprotected Vec3
Camel.getRiddenInput
(Player p_278264_, Vec3 p_278298_) protected float
Camel.getRiddenSpeed
(Player p_278241_) protected boolean
Camel.handleEating
(Player p_249923_, ItemStack p_248995_) Camel.mobInteract
(Player p_249032_, InteractionHand p_251004_) void
Camel.openCustomInventoryScreen
(Player p_248613_) protected void
Camel.tickRidden
(Player p_278319_, Vec3 p_278301_) -
Uses of Player in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionprivate void
Tadpole.mobInteract
(Player p_218703_, InteractionHand p_218704_) private void
Tadpole.usePlayerItem
(Player p_218706_, ItemStack p_218707_) -
Uses of Player in net.minecraft.world.entity.animal.goat
-
Uses of Player in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionprotected void
AbstractHorse.doPlayerRide
(Player p_30634_) protected void
TraderLlama.doPlayerRide
(Player p_30958_) void
AbstractHorse.equipBodyArmor
(Player p_324210_, ItemStack p_323522_) private void
AbstractChestedHorse.equipChest
(Player p_250937_, ItemStack p_251558_) protected Vec3
AbstractHorse.getRiddenInput
(Player p_278278_, Vec3 p_275506_) protected float
AbstractHorse.getRiddenSpeed
(Player p_278336_) protected boolean
AbstractHorse.handleEating
(Player p_30593_, ItemStack p_30594_) protected boolean
Llama.handleEating
(Player p_30796_, ItemStack p_30797_) AbstractChestedHorse.mobInteract
(Player p_30493_, InteractionHand p_30494_) AbstractHorse.mobInteract
(Player p_252289_, InteractionHand p_248927_) Horse.mobInteract
(Player p_30713_, InteractionHand p_30714_) SkeletonHorse.mobInteract
(Player p_30904_, InteractionHand p_30905_) ZombieHorse.mobInteract
(Player p_31001_, InteractionHand p_31002_) void
AbstractHorse.openCustomInventoryScreen
(Player p_218808_) boolean
AbstractHorse.tameWithName
(Player p_30638_) protected void
AbstractHorse.tickRidden
(Player p_278233_, Vec3 p_275693_) -
Uses of Player in net.minecraft.world.entity.animal.sniffer
Modifier and TypeMethodDescriptionSniffer.mobInteract
(Player p_273046_, InteractionHand p_272687_) -
Uses of Player in net.minecraft.world.entity.boss.enderdragon
-
Uses of Player in net.minecraft.world.entity.boss.enderdragon.phases
Modifier and TypeMethodDescriptionvoid
AbstractDragonPhaseInstance.onCrystalDestroyed
(EndCrystal p_31184_, BlockPos p_31185_, DamageSource p_31186_, Player p_31187_) void
DragonHoldingPatternPhase.onCrystalDestroyed
(EndCrystal p_31232_, BlockPos p_31233_, DamageSource p_31234_, Player p_31235_) void
DragonPhaseInstance.onCrystalDestroyed
(EndCrystal p_31315_, BlockPos p_31316_, DamageSource p_31317_, Player p_31318_) private void
DragonHoldingPatternPhase.strafePlayer
(Player p_31237_) -
Uses of Player in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionItemFrame.interact
(Player p_31787_, InteractionHand p_31788_) LeashFenceKnotEntity.interact
(Player p_31842_, InteractionHand p_31843_) ArmorStand.interactAt
(Player p_31594_, Vec3 p_31595_, InteractionHand p_31596_) private boolean
ArmorStand.swapItem
(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
Uses of Player in net.minecraft.world.entity.item
-
Uses of Player in net.minecraft.world.entity.monster
Modifier and TypeFieldDescriptionprivate NearestAttackableWitchTargetGoal
<Player> Witch.attackPlayersGoal
Modifier and TypeMethodDescriptionboolean
Zoglin.canBeLeashed
(Player p_34219_) protected Vec3
Strider.getRiddenInput
(Player p_278251_, Vec3 p_275578_) protected float
Strider.getRiddenSpeed
(Player p_278317_) (package private) boolean
EnderMan.isLookingAtMe
(Player p_32535_) boolean
Monster.isPreventingPlayerRest
(Player p_33036_) boolean
ZombifiedPiglin.isPreventingPlayerRest
(Player p_34475_) protected InteractionResult
Bogged.mobInteract
(Player p_330736_, InteractionHand p_331786_) protected InteractionResult
Creeper.mobInteract
(Player p_32301_, InteractionHand p_32302_) Strider.mobInteract
(Player p_33910_, InteractionHand p_33911_) ZombieVillager.mobInteract
(Player p_34394_, InteractionHand p_34395_) void
Slime.playerTouch
(Player p_33611_) protected void
Strider.tickRidden
(Player p_278331_, Vec3 p_278234_) -
Uses of Player in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionboolean
Hoglin.canBeLeashed
(Player p_34506_) Hoglin.mobInteract
(Player p_34523_, InteractionHand p_34524_) -
Uses of Player in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionPiglinAi.getNearestVisibleTargetablePlayer
(AbstractPiglin p_34894_) Modifier and TypeMethodDescriptionstatic void
PiglinAi.angerNearbyPiglins
(Player p_34874_, boolean p_34875_) Piglin.mobInteract
(Player p_34745_, InteractionHand p_34746_) static InteractionResult
PiglinAi.mobInteract
(Piglin p_34847_, Player p_34848_, InteractionHand p_34849_) private static void
PiglinAi.throwItemsTowardPlayer
(Piglin p_34851_, Player p_34852_, List<ItemStack> p_34853_) -
Uses of Player in net.minecraft.world.entity.npc
Modifier and TypeFieldDescriptionprivate Player
Villager.lastTradedPlayer
private final Player
ClientSideMerchant.source
private Player
AbstractVillager.tradingPlayer
Modifier and TypeMethodDescriptionAbstractVillager.getTradingPlayer()
ClientSideMerchant.getTradingPlayer()
Modifier and TypeMethodDescriptionboolean
AbstractVillager.canBeLeashed
(Player p_35272_) int
Villager.getPlayerReputation
(Player p_35533_) Villager.mobInteract
(Player p_35472_, InteractionHand p_35473_) WanderingTrader.mobInteract
(Player p_35856_, InteractionHand p_35857_) void
AbstractVillager.setTradingPlayer
(Player p_35314_) void
ClientSideMerchant.setTradingPlayer
(Player p_35356_) void
Villager.setTradingPlayer
(Player p_35508_) private void
Villager.startTrading
(Player p_35537_) private void
Villager.updateSpecialPrices
(Player p_35541_) -
Uses of Player in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionboolean
Player.canHarmPlayer
(Player p_36169_) boolean
Inventory.stillValid
(Player p_36009_) -
Uses of Player in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionvoid
AbstractArrow.playerTouch
(Player p_36766_) void
ThrownTrident.playerTouch
(Player p_37580_) private boolean
FishingHook.shouldStopFishing
(Player p_37137_) protected boolean
protected boolean
ModifierConstructorDescriptionFishingHook
(Player p_37106_, Level p_37107_, int p_37108_, int p_37109_) -
Uses of Player in net.minecraft.world.entity.projectile.windcharge
ModifierConstructorDescriptionWindCharge
(Player p_326044_, Level p_326101_, double p_326183_, double p_326157_, double p_325928_) -
Uses of Player in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecartContainer.createMenu
(int p_38251_, Inventory p_38252_, Player p_38253_) ChestBoat.createMenu
(int p_219910_, Inventory p_219911_, Player p_219912_) static AbstractMinecart
AbstractMinecart.createMinecart
(ServerLevel p_305794_, double p_38121_, double p_38122_, double p_38123_, AbstractMinecart.Type p_38124_, ItemStack p_305892_, Player p_306203_) AbstractMinecartContainer.interact
(Player p_38232_, InteractionHand p_38233_) Boat.interact
(Player p_38330_, InteractionHand p_38331_) ChestBoat.interact
(Player p_219898_, InteractionHand p_219899_) Minecart.interact
(Player p_38483_, InteractionHand p_38484_) MinecartChest.interact
(Player p_270398_, InteractionHand p_270576_) MinecartCommandBlock.interact
(Player p_38522_, InteractionHand p_38523_) MinecartFurnace.interact
(Player p_38562_, InteractionHand p_38563_) default InteractionResult
ContainerEntity.interactWithContainerVehicle
(Player p_270068_) default boolean
ContainerEntity.isChestVehicleStillValid
(Player p_219955_) void
ChestBoat.openCustomInventoryScreen
(Player p_219906_) boolean
AbstractMinecartContainer.stillValid
(Player p_38230_) boolean
ChestBoat.stillValid
(Player p_219896_) void
void
default void
ContainerEntity.unpackChestVehicleLootTable
(Player p_219950_) void
ChestBoat.unpackLootTable
(Player p_219914_) -
Uses of Player in net.minecraft.world.food
-
Uses of Player in net.minecraft.world.inventory
Modifier 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
Modifier and TypeMethodDescriptionboolean
NonInteractiveResultSlot.allowModification
(Player p_307532_) boolean
Slot.allowModification
(Player p_150652_) default void
RecipeCraftingHolder.awardUsedRecipes
(Player p_300892_, List<ItemStack> p_301308_) protected void
AbstractContainerMenu.clearContainer
(Player p_150412_, Container p_150413_) void
boolean
AbstractContainerMenu.clickMenuButton
(Player p_38875_, int p_38876_) boolean
EnchantmentMenu.clickMenuButton
(Player p_39465_, int p_39466_) boolean
LecternMenu.clickMenuButton
(Player p_39833_, int p_39834_) boolean
LoomMenu.clickMenuButton
(Player p_39867_, int p_39868_) boolean
StonecutterMenu.clickMenuButton
(Player p_40309_, int p_40310_) MenuConstructor.createMenu
(int p_39954_, Inventory p_39955_, Player p_39956_) private void
static boolean
AbstractContainerMenu.isValidQuickcraftType
(int p_38863_, Player p_38864_) protected boolean
protected abstract boolean
boolean
boolean
protected boolean
(package private) static void
InventoryMenu.onEquipItem
(Player p_270432_, EquipmentSlot p_270254_, ItemStack p_270316_, ItemStack p_270993_) protected void
void
void
protected abstract void
void
void
void
void
protected void
abstract ItemStack
AbstractContainerMenu.quickMoveStack
(Player p_38941_, int p_38942_) AbstractFurnaceMenu.quickMoveStack
(Player p_38986_, int p_38987_) BeaconMenu.quickMoveStack
(Player p_39051_, int p_39052_) BrewingStandMenu.quickMoveStack
(Player p_39100_, int p_39101_) CartographyTableMenu.quickMoveStack
(Player p_39175_, int p_39176_) ChestMenu.quickMoveStack
(Player p_39253_, int p_39254_) CrafterMenu.quickMoveStack
(Player p_307459_, int p_307204_) CraftingMenu.quickMoveStack
(Player p_39391_, int p_39392_) DispenserMenu.quickMoveStack
(Player p_39444_, int p_39445_) EnchantmentMenu.quickMoveStack
(Player p_39490_, int p_39491_) GrindstoneMenu.quickMoveStack
(Player p_39588_, int p_39589_) HopperMenu.quickMoveStack
(Player p_39651_, int p_39652_) HorseInventoryMenu.quickMoveStack
(Player p_39665_, int p_39666_) InventoryMenu.quickMoveStack
(Player p_39723_, int p_39724_) ItemCombinerMenu.quickMoveStack
(Player p_39792_, int p_39793_) LecternMenu.quickMoveStack
(Player p_219987_, int p_219988_) LoomMenu.quickMoveStack
(Player p_39883_, int p_39884_) MerchantMenu.quickMoveStack
(Player p_40053_, int p_40054_) ShulkerBoxMenu.quickMoveStack
(Player p_40199_, int p_40200_) StonecutterMenu.quickMoveStack
(Player p_40328_, int p_40329_) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu p_150547_, Level p_150548_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_) void
abstract boolean
AbstractContainerMenu.stillValid
(Player p_38874_) protected static boolean
AbstractContainerMenu.stillValid
(ContainerLevelAccess p_38890_, Player p_38891_, Block p_38892_) boolean
AbstractFurnaceMenu.stillValid
(Player p_38974_) boolean
BeaconMenu.stillValid
(Player p_39047_) boolean
BrewingStandMenu.stillValid
(Player p_39098_) boolean
CartographyTableMenu.stillValid
(Player p_39149_) boolean
ChestMenu.stillValid
(Player p_39242_) boolean
CrafterMenu.stillValid
(Player p_307229_) boolean
CraftingMenu.stillValid
(Player p_39368_) boolean
DispenserMenu.stillValid
(Player p_39440_) boolean
EnchantmentMenu.stillValid
(Player p_39463_) boolean
GrindstoneMenu.stillValid
(Player p_39572_) boolean
HopperMenu.stillValid
(Player p_39647_) boolean
HorseInventoryMenu.stillValid
(Player p_39661_) boolean
InventoryMenu.stillValid
(Player p_39712_) boolean
ItemCombinerMenu.stillValid
(Player p_39780_) boolean
LecternMenu.stillValid
(Player p_39831_) boolean
LoomMenu.stillValid
(Player p_39865_) boolean
MerchantContainer.stillValid
(Player p_40016_) boolean
MerchantMenu.stillValid
(Player p_40042_) boolean
PlayerEnderChestContainer.stillValid
(Player p_40104_) boolean
ResultContainer.stillValid
(Player p_40155_) boolean
ShulkerBoxMenu.stillValid
(Player p_40195_) boolean
StonecutterMenu.stillValid
(Player p_40307_) boolean
TransientCraftingContainer.stillValid
(Player p_287774_) void
private boolean
AbstractContainerMenu.tryItemClickBehaviourOverride
(Player p_249615_, ClickAction p_250300_, Slot p_249384_, ItemStack p_251073_, ItemStack p_252026_) ModifierConstructorDescriptionFurnaceResultSlot
(Player p_39542_, Container p_39543_, int p_39544_, int p_39545_, int p_39546_) InventoryMenu
(Inventory p_39706_, boolean p_39707_, Player p_39708_) MerchantResultSlot
(Player p_40083_, Merchant p_40084_, MerchantContainer p_40085_, int p_40086_, int p_40087_, int p_40088_) ResultSlot
(Player p_40166_, CraftingContainer p_40167_, Container p_40168_, int p_40169_, int p_40170_, int p_40171_) -
Uses of Player in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate void
ItemStack.addAttributeTooltips
(Consumer<Component> p_330796_, Player p_330530_) private void
ItemStack.addModifierTooltip
(Consumer<Component> p_331062_, Player p_330317_, Holder<Attribute> p_330626_, AttributeModifier p_331252_) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) static InteractionResult
LeadItem.bindPlayerMobs
(Player p_42830_, Level p_42831_, BlockPos p_42832_) private HitResult
BrushItem.calculateHitResult
(Player p_305856_) boolean
HoneycombItem.canApplyToSign
(SignText p_277550_, Player p_277640_) default boolean
SignApplicator.canApplyToSign
(SignText p_278084_, Player p_277515_) boolean
DebugStickItem.canAttackBlock
(BlockState p_40962_, Level p_40963_, BlockPos p_40964_, Player p_40965_) boolean
Item.canAttackBlock
(BlockState p_41441_, Level p_41442_, BlockPos p_41443_, Player p_41444_) boolean
MaceItem.canAttackBlock
(BlockState p_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) boolean
SwordItem.canAttackBlock
(BlockState p_43291_, Level p_43292_, BlockPos p_43293_, Player p_43294_) boolean
TridentItem.canAttackBlock
(BlockState p_43409_, Level p_43410_, BlockPos p_43411_, Player p_43412_) protected boolean
BucketItem.canBlockContainFluid
(Player player, Level worldIn, BlockPos posIn, BlockState blockstate) static boolean
MaceItem.canSmashAttack
(Player p_338434_) void
BucketItem.checkExtraContent
(Player p_150711_, Level p_150712_, ItemStack p_150713_, BlockPos p_150714_) default void
DispensibleContainerItem.checkExtraContent
(Player p_150817_, Level p_150818_, ItemStack p_150819_, BlockPos p_150820_) void
MobBucketItem.checkExtraContent
(Player p_151146_, Level p_151147_, ItemStack p_151148_, BlockPos p_151149_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41814_, Player p_41815_, ItemStack p_41816_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41818_, Player p_41819_, ItemStack p_41820_, boolean p_41821_) private static boolean
BundleItem.dropContents
(ItemStack p_150730_, Player p_150731_) boolean
BucketItem.emptyContents
(Player p_150716_, Level p_150717_, BlockPos p_150718_, BlockHitResult p_150719_) Deprecated.boolean
BucketItem.emptyContents
(Player p_150716_, Level p_150717_, BlockPos p_150718_, BlockHitResult p_150719_, ItemStack container) boolean
DispensibleContainerItem.emptyContents
(Player p_150821_, Level p_150822_, BlockPos p_150823_, BlockHitResult p_150824_) Deprecated.boolean
SolidBucketItem.emptyContents
(Player p_151192_, Level p_151193_, BlockPos p_151194_, BlockHitResult p_151195_) private Optional
<BlockState> AxeItem.evaluateNewBlockState
(Level p_308922_, BlockPos p_308899_, Player p_309192_, BlockState p_308900_, UseOnContext p_40529_) float
Item.getAttackDamageBonus
(Player p_336181_, float p_336179_) float
MaceItem.getAttackDamageBonus
(Player p_335568_, float p_335575_) private Boat
static ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_40700_, Player p_40701_) private static double
MaceItem.getKnockbackPower
(Player p_338265_, LivingEntity p_338630_, Vec3 p_338866_) protected SoundEvent
BlockItem.getPlaceSound
(BlockState state, Level world, BlockPos pos, Player entity) protected static BlockHitResult
Item.getPlayerPOVHitResult
(Level p_41436_, Player p_41437_, ClipContext.Fluid p_41438_) ItemStack.getTooltipLines
(Item.TooltipContext p_339637_, Player p_41652_, TooltipFlag p_41653_) Packet
<?> ComplexItem.getUpdatePacket
(ItemStack p_40744_, Level p_40745_, Player p_40746_) Packet
<?> MapItem.getUpdatePacket
(ItemStack p_42876_, Level p_42877_, Player p_42878_) private boolean
DebugStickItem.handleInteraction
(Player p_150803_, BlockState p_150804_, LevelAccessor p_150805_, BlockPos p_150806_, boolean p_150807_, ItemStack p_150808_) void
ItemStack.hurtEnemy
(LivingEntity p_41641_, Player p_41642_) DyeItem.interactLivingEntity
(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity
(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) ItemStack.interactLivingEntity
(Player p_41648_, LivingEntity p_41649_, InteractionHand p_41650_) NameTagItem.interactLivingEntity
(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) SaddleItem.interactLivingEntity
(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) private static void
private static Predicate
<LivingEntity> MaceItem.knockbackPredicate
(Player p_338613_, Entity p_338698_) protected boolean
HangingEntityItem.mayPlace
(Player p_41326_, Direction p_41327_, ItemStack p_41328_, BlockPos p_41329_) protected boolean
private static void
void
ItemStack.mineBlock
(Level p_41687_, BlockState p_41688_, BlockPos p_41689_, Player p_41690_) void
Item.onCraftedBy
(ItemStack p_41447_, Level p_41448_, Player p_41449_) void
ItemStack.onCraftedBy
(Level p_41679_, Player p_41680_, int p_41681_) boolean
BundleItem.overrideOtherStackedOnMe
(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) boolean
Item.overrideOtherStackedOnMe
(ItemStack p_150892_, ItemStack p_150893_, Slot p_150894_, ClickAction p_150895_, Player p_150896_, SlotAccess p_150897_) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack p_150933_, Slot p_150934_, ClickAction p_150935_, Player p_150936_, SlotAccess p_150937_) boolean
BundleItem.overrideStackedOnOther
(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) boolean
Item.overrideStackedOnOther
(ItemStack p_150888_, Slot p_150889_, ClickAction p_150890_, Player p_150891_) boolean
ItemStack.overrideStackedOnOther
(Slot p_150927_, ClickAction p_150928_, Player p_150929_) private static void
InstrumentItem.play
(Level p_220127_, Player p_220128_, Instrument p_220129_) protected void
BucketItem.playEmptySound
(Player p_40696_, LevelAccessor p_40697_, BlockPos p_40698_) protected void
MobBucketItem.playEmptySound
(Player p_151151_, LevelAccessor p_151152_, BlockPos p_151153_) static boolean
WrittenBookItem.resolveBookComponents
(ItemStack p_43462_, CommandSourceStack p_43463_, Player p_43464_) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) static InteractionResultHolder
<ItemStack> ItemUtils.startUsingInstantly
(Level p_150960_, Player p_150961_, InteractionHand p_150962_) default InteractionResultHolder
<ItemStack> Equipable.swapWithEquipmentSlot
(Item p_270453_, Level p_270395_, Player p_270300_, InteractionHand p_270262_) boolean
DyeItem.tryApplyToSign
(Level p_277691_, SignBlockEntity p_277488_, boolean p_277951_, Player p_277932_) boolean
GlowInkSacItem.tryApplyToSign
(Level p_278089_, SignBlockEntity p_277706_, boolean p_277442_, Player p_277983_) boolean
HoneycombItem.tryApplyToSign
(Level p_277838_, SignBlockEntity p_277988_, boolean p_277394_, Player p_277816_) boolean
InkSacItem.tryApplyToSign
(Level p_277633_, SignBlockEntity p_277698_, boolean p_277634_, Player p_277815_) boolean
SignApplicator.tryApplyToSign
(Level p_277619_, SignBlockEntity p_277811_, boolean p_277484_, Player p_277362_) protected ItemStack
BottleItem.turnBottleIntoItem
(ItemStack p_40652_, Player p_40653_, ItemStack p_40654_) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos p_40597_, Level p_40598_, Player p_40599_, ItemStack p_40600_, BlockState p_40601_) static boolean
BlockItem.updateCustomBlockEntityTag
(Level p_40583_, Player p_40584_, BlockPos p_40585_, ItemStack p_40586_) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos p_43130_, Level p_43131_, Player p_43132_, ItemStack p_43133_, BlockState p_43134_) ArmorItem.use
(Level p_40395_, Player p_40396_, InteractionHand p_40397_) BoatItem.use
(Level p_40622_, Player p_40623_, InteractionHand p_40624_) BottleItem.use
(Level p_40656_, Player p_40657_, InteractionHand p_40658_) BowItem.use
(Level p_40672_, Player p_40673_, InteractionHand p_40674_) BucketItem.use
(Level p_40703_, Player p_40704_, InteractionHand p_40705_) BundleItem.use
(Level p_150760_, Player p_150761_, InteractionHand p_150762_) CrossbowItem.use
(Level p_40920_, Player p_40921_, InteractionHand p_40922_) EggItem.use
(Level p_41128_, Player p_41129_, InteractionHand p_41130_) ElytraItem.use
(Level p_41137_, Player p_41138_, InteractionHand p_41139_) EmptyMapItem.use
(Level p_41145_, Player p_41146_, InteractionHand p_41147_) EnderEyeItem.use
(Level p_41184_, Player p_41185_, InteractionHand p_41186_) 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 p_41218_, Player p_41219_, InteractionHand p_41220_) FishingRodItem.use
(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use
(Level p_41314_, Player p_41315_, InteractionHand p_41316_) HoneyBottleItem.use
(Level p_41352_, Player p_41353_, InteractionHand p_41354_) InstrumentItem.use
(Level p_220123_, Player p_220124_, InteractionHand p_220125_) Item.use
(Level p_41432_, Player p_41433_, InteractionHand p_41434_) ItemStack.use
(Level p_41683_, Player p_41684_, InteractionHand p_41685_) KnowledgeBookItem.use
(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use
(Level p_42843_, Player p_42844_, InteractionHand p_42845_) MilkBucketItem.use
(Level p_42927_, Player p_42928_, InteractionHand p_42929_) OminousBottleItem.use
(Level p_338229_, Player p_338350_, InteractionHand p_338729_) PlaceOnWaterBlockItem.use
(Level p_220231_, Player p_220232_, InteractionHand p_220233_) PotionItem.use
(Level p_42993_, Player p_42994_, InteractionHand p_42995_) ShieldItem.use
(Level p_43099_, Player p_43100_, InteractionHand p_43101_) SnowballItem.use
(Level p_43142_, Player p_43143_, InteractionHand p_43144_) SpawnEggItem.use
(Level p_43225_, Player p_43226_, InteractionHand p_43227_) SplashPotionItem.use
(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use
(Level p_151218_, Player p_151219_, InteractionHand p_151220_) ThrowablePotionItem.use
(Level p_43303_, Player p_43304_, InteractionHand p_43305_) 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
Modifier and TypeMethodDescriptionWrittenBookContent.resolve
(CommandSourceStack p_330312_, Player p_331808_) private static Optional
<Filterable<Component>> WrittenBookContent.resolvePage
(CommandSourceStack p_330620_, Player p_330555_, Filterable<Component> p_330218_) int
BundleContents.Mutable.tryTransfer
(Slot p_330834_, Player p_331924_) -
Uses of Player in net.minecraft.world.item.context
ModifierConstructorDescriptionBlockPlaceContext
(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) BlockPlaceContext
(Level p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) UseOnContext
(Player p_43709_, InteractionHand p_43710_, BlockHitResult p_43711_) UseOnContext
(Level p_43713_, Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_) -
Uses of Player in net.minecraft.world.item.trading
Modifier and TypeMethodDescriptiondefault void
Merchant.openTradingScreen
(Player p_45302_, Component p_45303_, int p_45304_) void
Merchant.setTradingPlayer
(Player p_45307_) -
Uses of Player in net.minecraft.world.level
Modifier and TypeMethodDescriptiondefault Player
EntityGetter.getNearestPlayer
(double p_45925_, double p_45926_, double p_45927_, double p_45928_, boolean p_45929_) default Player
EntityGetter.getNearestPlayer
(double p_45919_, double p_45920_, double p_45921_, double p_45922_, Predicate<Entity> p_45923_) default Player
EntityGetter.getNearestPlayer
(TargetingConditions p_45942_, double p_45943_, double p_45944_, double p_45945_) default Player
EntityGetter.getNearestPlayer
(TargetingConditions p_45947_, LivingEntity p_45948_) default Player
EntityGetter.getNearestPlayer
(TargetingConditions p_45950_, LivingEntity p_45951_, double p_45952_, double p_45953_, double p_45954_) default Player
EntityGetter.getNearestPlayer
(Entity p_45931_, double p_45932_) default Player
EntityGetter.getPlayerByUUID
(UUID p_46004_) Modifier and TypeMethodDescriptionExplosion.getHitPlayers()
EntityGetter.getNearbyPlayers
(TargetingConditions p_45956_, LivingEntity p_45957_, AABB p_45958_) EntityGetter.players()
Modifier and TypeMethodDescriptionvoid
LevelAccessor.levelEvent
(Player p_46771_, int p_46772_, BlockPos p_46773_, int p_46774_) boolean
Level.mayInteract
(Player p_46557_, BlockPos p_46558_) abstract void
Level.playSeededSound
(Player p_262953_, double p_263004_, double p_263398_, double p_263376_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) void
Level.playSeededSound
(Player p_220363_, double p_220364_, double p_220365_, double p_220366_, SoundEvent p_220367_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) abstract void
Level.playSeededSound
(Player p_220372_, Entity p_220373_, Holder<SoundEvent> p_263500_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) void
Level.playSound
(Player p_309201_, double p_308925_, double p_309072_, double p_308916_, SoundEvent p_308917_, SoundSource p_308902_) void
Level.playSound
(Player p_46543_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_, float p_46549_, float p_46550_) void
Level.playSound
(Player p_46560_, BlockPos p_46561_, SoundEvent p_46562_, SoundSource p_46563_, float p_46564_, float p_46565_) void
Level.playSound
(Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) default void
LevelAccessor.playSound
(Player p_251195_, BlockPos p_250192_, SoundEvent p_249887_, SoundSource p_250593_) void
LevelAccessor.playSound
(Player p_46775_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_) -
Uses of Player in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionprivate static void
ChiseledBookShelfBlock.addBook
(Level p_262592_, BlockPos p_262669_, Player p_262572_, ChiseledBookShelfBlockEntity p_262606_, ItemStack p_262587_, int p_262692_) protected void
DragonEggBlock.attack
(BlockState p_52918_, Level p_52919_, BlockPos p_52920_, Player p_52921_) protected void
NoteBlock.attack
(BlockState p_55029_, Level p_55030_, BlockPos p_55031_, Player p_55032_) protected void
RedStoneOreBlock.attack
(BlockState p_55467_, Level p_55468_, BlockPos p_55469_, Player p_55470_) boolean
BarrierBlock.canPlaceLiquid
(Player p_296463_, BlockGetter p_295048_, BlockPos p_295143_, BlockState p_294224_, Fluid p_294851_) boolean
KelpBlock.canPlaceLiquid
(Player p_295152_, BlockGetter p_54304_, BlockPos p_54305_, BlockState p_54306_, Fluid p_54307_) boolean
KelpPlantBlock.canPlaceLiquid
(Player p_296032_, BlockGetter p_54325_, BlockPos p_54326_, BlockState p_54327_, Fluid p_54328_) boolean
LiquidBlockContainer.canPlaceLiquid
(Player p_295256_, BlockGetter p_54766_, BlockPos p_54767_, BlockState p_54768_, Fluid p_54769_) boolean
SeagrassBlock.canPlaceLiquid
(Player p_296226_, BlockGetter p_296449_, BlockPos p_154511_, BlockState p_154512_, Fluid p_295712_) default boolean
SimpleWaterloggedBlock.canPlaceLiquid
(Player p_294196_, BlockGetter p_56301_, BlockPos p_56302_, BlockState p_56303_, Fluid p_56304_) boolean
SlabBlock.canPlaceLiquid
(Player p_294165_, BlockGetter p_56363_, BlockPos p_56364_, BlockState p_56365_, Fluid p_56366_) boolean
TallSeagrassBlock.canPlaceLiquid
(Player p_296027_, BlockGetter p_154753_, BlockPos p_154754_, BlockState p_154755_, Fluid p_154756_) protected static InteractionResult
CakeBlock.eat
(LevelAccessor p_51186_, BlockPos p_51187_, BlockState p_51188_, Player p_51189_) static void
AbstractCandleBlock.extinguish
(Player p_151900_, BlockState p_151901_, LevelAccessor p_151902_, BlockPos p_151903_) protected float
BambooSaplingBlock.getDestroyProgress
(BlockState p_48981_, Player p_48982_, BlockGetter p_48983_, BlockPos p_48984_) protected float
BambooStalkBlock.getDestroyProgress
(BlockState p_261691_, Player p_262171_, BlockGetter p_261621_, BlockPos p_261500_) private boolean
SignBlock.hasEditableText
(Player p_279394_, SignBlockEntity p_279187_, boolean p_279225_) boolean
BellBlock.onHit
(Level p_49702_, BlockState p_49703_, BlockHitResult p_49704_, Player p_49705_, boolean p_49706_) protected abstract void
AbstractFurnaceBlock.openContainer
(Level p_48690_, BlockPos p_48691_, Player p_48692_) protected void
BlastFurnaceBlock.openContainer
(Level p_49777_, BlockPos p_49778_, Player p_49779_) protected void
FurnaceBlock.openContainer
(Level p_53631_, BlockPos p_53632_, Player p_53633_) protected void
SmokerBlock.openContainer
(Level p_56443_, BlockPos p_56444_, Player p_56445_) private void
LecternBlock.openScreen
(Level p_54485_, BlockPos p_54486_, Player p_54487_) void
SignBlock.openTextEdit
(Player p_277738_, SignBlockEntity p_277467_, boolean p_277771_) private boolean
SignBlock.otherPlayerIsEditingSign
(Player p_277952_, SignBlockEntity p_277599_) BarrierBlock.pickupBlock
(Player p_295338_, LevelAccessor p_295817_, BlockPos p_295857_, BlockState p_294189_) BubbleColumnBlock.pickupBlock
(Player p_295722_, LevelAccessor p_152712_, BlockPos p_152713_, BlockState p_152714_) BucketPickup.pickupBlock
(Player p_294682_, LevelAccessor p_152719_, BlockPos p_152720_, BlockState p_152721_) LiquidBlock.pickupBlock
(Player p_295410_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) PowderSnowBlock.pickupBlock
(Player p_295645_, LevelAccessor p_154281_, BlockPos p_154282_, BlockState p_154283_) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(Player p_294786_, LevelAccessor p_154560_, BlockPos p_154561_, BlockState p_154562_) void
BeehiveBlock.playerDestroy
(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, BlockEntity p_49588_, ItemStack p_49589_) void
Block.playerDestroy
(Level p_49827_, Player p_49828_, BlockPos p_49829_, BlockState p_49830_, BlockEntity p_49831_, ItemStack p_49832_) void
DoublePlantBlock.playerDestroy
(Level p_52865_, Player p_52866_, BlockPos p_52867_, BlockState p_52868_, BlockEntity p_52869_, ItemStack p_52870_) void
IceBlock.playerDestroy
(Level p_54157_, Player p_54158_, BlockPos p_54159_, BlockState p_54160_, BlockEntity p_54161_, ItemStack p_54162_) void
TurtleEggBlock.playerDestroy
(Level p_57771_, Player p_57772_, BlockPos p_57773_, BlockState p_57774_, BlockEntity p_57775_, ItemStack p_57776_) BaseFireBlock.playerWillDestroy
(Level p_49251_, BlockPos p_49252_, BlockState p_49253_, Player p_49254_) BedBlock.playerWillDestroy
(Level p_49505_, BlockPos p_49506_, BlockState p_49507_, Player p_49508_) BeehiveBlock.playerWillDestroy
(Level p_49608_, BlockPos p_49609_, BlockState p_49610_, Player p_49611_) Block.playerWillDestroy
(Level p_49852_, BlockPos p_49853_, BlockState p_49854_, Player p_49855_) DecoratedPotBlock.playerWillDestroy
(Level p_273590_, BlockPos p_273343_, BlockState p_272869_, Player p_273002_) DoorBlock.playerWillDestroy
(Level p_52755_, BlockPos p_52756_, BlockState p_52757_, Player p_52758_) DoublePlantBlock.playerWillDestroy
(Level p_52878_, BlockPos p_52879_, BlockState p_52880_, Player p_52881_) ShulkerBoxBlock.playerWillDestroy
(Level p_56212_, BlockPos p_56213_, BlockState p_56214_, Player p_56215_) TntBlock.playerWillDestroy
(Level p_57445_, BlockPos p_57446_, BlockState p_57447_, Player p_57448_) TripWireBlock.playerWillDestroy
(Level p_57615_, BlockPos p_57616_, BlockState p_57617_, Player p_57618_) protected void
ButtonBlock.playSound
(Player p_51068_, LevelAccessor p_51069_, BlockPos p_51070_, boolean p_51071_) protected void
protected static void
DoublePlantBlock.preventDropFromBottomPart
(Level p_52904_, BlockPos p_52905_, BlockState p_52906_, Player p_52907_) void
BeehiveBlock.releaseBeesAndResetHoneyLevel
(Level p_49595_, BlockState p_49596_, BlockPos p_49597_, Player p_49598_, BeehiveBlockEntity.BeeReleaseStatus p_49599_) private static void
ChiseledBookShelfBlock.removeBook
(Level p_262654_, BlockPos p_262601_, Player p_262636_, ChiseledBookShelfBlockEntity p_262605_, int p_262673_) private boolean
CeilingHangingSignBlock.shouldTryToChainAnotherHangingSign
(Player p_278279_, BlockHitResult p_278273_, SignBlockEntity p_278236_, ItemStack p_278343_) private boolean
WallHangingSignBlock.shouldTryToChainAnotherHangingSign
(BlockState p_278346_, Player p_278263_, BlockHitResult p_278269_, SignBlockEntity p_278290_, ItemStack p_278238_) protected void
BaseFireBlock.spawnDestroyParticles
(Level p_152139_, Player p_152140_, BlockPos p_152141_, BlockState p_152142_) protected void
Block.spawnDestroyParticles
(Level p_152422_, Player p_152423_, BlockPos p_152424_, BlockState p_152425_) private void
TrapDoorBlock.toggle
(BlockState p_312094_, Level p_312235_, BlockPos p_312619_, Player p_312853_) protected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) protected ItemInteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResult
FenceBlock.useItemOn
(ItemStack p_316871_, BlockState p_316305_, Level p_316763_, BlockPos p_316504_, Player p_316364_, InteractionHand p_316507_, BlockHitResult p_316760_) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) protected ItemInteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResult
RedStoneOreBlock.useItemOn
(ItemStack p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected ItemInteractionResult
TntBlock.useItemOn
(ItemStack p_316149_, BlockState p_316217_, Level p_316520_, BlockPos p_316601_, Player p_316770_, InteractionHand p_316393_, BlockHitResult p_316532_) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResult
WallHangingSignBlock.useItemOn
(ItemStack p_316420_, BlockState p_316885_, Level p_316114_, BlockPos p_316297_, Player p_316609_, InteractionHand p_316187_, BlockHitResult p_316223_) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState p_48706_, Level p_48707_, BlockPos p_48708_, Player p_48709_, BlockHitResult p_48711_) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState p_48804_, Level p_48805_, BlockPos p_48806_, Player p_48807_, BlockHitResult p_48809_) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState p_49069_, Level p_49070_, BlockPos p_49071_, Player p_49072_, BlockHitResult p_49074_) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResult
BedBlock.useWithoutItem
(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) protected InteractionResult
BellBlock.useWithoutItem
(BlockState p_49722_, Level p_49723_, BlockPos p_49724_, Player p_49725_, BlockHitResult p_49727_) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState p_50930_, Level p_50931_, BlockPos p_50932_, Player p_50933_, BlockHitResult p_50935_) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState p_316833_, Level p_316124_, BlockPos p_316184_, Player p_316845_, BlockHitResult p_316247_) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState p_316481_, Level p_316406_, BlockPos p_316218_, Player p_316212_, BlockHitResult p_316525_) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState p_316519_, Level p_316226_, BlockPos p_316122_, Player p_316438_, BlockHitResult p_316849_) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState p_51357_, Level p_51358_, BlockPos p_51359_, Player p_51360_, BlockHitResult p_51362_) 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 p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, BlockHitResult p_51536_) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState p_316403_, Level p_316842_, BlockPos p_316539_, Player p_316349_, BlockHitResult p_316278_) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState p_51825_, Level p_51826_, BlockPos p_51827_, Player p_51828_, BlockHitResult p_51830_) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState p_51880_, Level p_51881_, BlockPos p_51882_, Player p_51883_, BlockHitResult p_51885_) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState p_316361_, Level p_316271_, BlockPos p_316647_, Player p_316633_, BlockHitResult p_316555_) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState p_307454_, Level p_307255_, BlockPos p_307303_, Player p_307670_, BlockHitResult p_307546_) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState p_52233_, Level p_52234_, BlockPos p_52235_, Player p_52236_, BlockHitResult p_52238_) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState p_52391_, Level p_52392_, BlockPos p_52393_, Player p_52394_, BlockHitResult p_52396_) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState p_52693_, Level p_52694_, BlockPos p_52695_, Player p_52696_, BlockHitResult p_52698_) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState p_52769_, Level p_52770_, BlockPos p_52771_, Player p_52772_, BlockHitResult p_52774_) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState p_52923_, Level p_52924_, BlockPos p_52925_, Player p_52926_, BlockHitResult p_52928_) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState p_341077_, Level p_341293_, BlockPos p_341394_, Player p_340990_, BlockHitResult p_341300_) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState p_53137_, Level p_53138_, BlockPos p_53139_, Player p_53140_, BlockHitResult p_53142_) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState p_316111_, Level p_316725_, BlockPos p_316646_, Player p_316453_, BlockHitResult p_316769_) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState p_53365_, Level p_53366_, BlockPos p_53367_, Player p_53368_, BlockHitResult p_53370_) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState p_316363_, Level p_316655_, BlockPos p_316654_, Player p_316338_, BlockHitResult p_316518_) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState p_53821_, Level p_53822_, BlockPos p_53823_, Player p_53824_, BlockHitResult p_53826_) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState p_54071_, Level p_54072_, BlockPos p_54073_, Player p_54074_, BlockHitResult p_54076_) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState p_54231_, Level p_54232_, BlockPos p_54233_, Player p_54234_, BlockHitResult p_54236_) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState p_54281_, Level p_54282_, BlockPos p_54283_, Player p_54284_, BlockHitResult p_54286_) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState p_316164_, Level p_316515_, BlockPos p_316598_, Player p_316584_, BlockHitResult p_316197_) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState p_54640_, Level p_54641_, BlockPos p_54642_, Player p_54643_, BlockHitResult p_54645_) protected InteractionResult
LightBlock.useWithoutItem
(BlockState p_153673_, Level p_153674_, BlockPos p_153675_, Player p_153676_, BlockHitResult p_153678_) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState p_54787_, Level p_54788_, BlockPos p_54789_, Player p_54790_, BlockHitResult p_54792_) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState p_316441_, Level p_316774_, BlockPos p_316344_, Player p_316884_, BlockHitResult p_316631_) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState p_55809_, Level p_55810_, BlockPos p_55811_, Player p_55812_, BlockHitResult p_55814_) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState p_316377_, Level p_316150_, BlockPos p_316161_, Player p_316889_, BlockHitResult p_316358_) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) protected InteractionResult
SignBlock.useWithoutItem
(BlockState p_316779_, Level p_316615_, BlockPos p_316127_, Player p_316173_, BlockHitResult p_316850_) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState p_56428_, Level p_56429_, BlockPos p_56430_, Player p_56431_, BlockHitResult p_56433_) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState p_57083_, Level p_57084_, BlockPos p_57085_, Player p_57086_, BlockHitResult p_57088_) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState p_57128_, Level p_57129_, BlockPos p_57130_, Player p_57131_, BlockHitResult p_57133_) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState p_316134_, Level p_316429_, BlockPos p_316748_, Player p_316431_, BlockHitResult p_316474_) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState p_57540_, Level p_57541_, BlockPos p_57542_, Player p_57543_, BlockHitResult p_57545_) -
Uses of Player in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionContainerOpenersCounter.getPlayersWithContainerOpen
(Level p_320335_, BlockPos p_320624_) Modifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.awardUsedRecipes
(Player p_58396_, List<ItemStack> p_282202_) boolean
private void
BrushableBlockEntity.brushingCompleted
(Player p_277549_) boolean
SignBlockEntity.canExecuteClickCommands
(boolean p_278276_, Player p_278240_) boolean
boolean
static boolean
private CommandSourceStack
LecternBlockEntity.createCommandSourceStack
(Player p_59535_) private static CommandSourceStack
SignBlockEntity.createCommandSourceStack
(Player p_279428_, Level p_279359_, BlockPos p_279430_) BaseContainerBlockEntity.createMenu
(int p_58641_, Inventory p_58642_, Player p_58643_) BeaconBlockEntity.createMenu
(int p_58696_, Inventory p_58697_, Player p_58698_) LecternBlockEntity.createMenu
(int p_59562_, Inventory p_59563_, Player p_59564_) RandomizableContainerBlockEntity.createMenu
(int p_59637_, Inventory p_59638_, Player p_59639_) void
ContainerOpenersCounter.decrementOpeners
(Player p_155469_, Level p_155470_, BlockPos p_155471_, BlockState p_155472_) private void
BrushableBlockEntity.dropContent
(Player p_278006_) void
BeehiveBlockEntity.emptyAllLivingFromHive
(Player p_58749_, BlockState p_58750_, BeehiveBlockEntity.BeeReleaseStatus p_58751_) boolean
SignBlockEntity.executeClickCommandsIfPresent
(Player p_279304_, Level p_279201_, BlockPos p_278282_, boolean p_278254_) boolean
SignText.hasAnyClickCommands
(Player p_277865_) boolean
SignText.hasMessage
(Player p_277764_) void
ContainerOpenersCounter.incrementOpeners
(Player p_155453_, Level p_155454_, BlockPos p_155455_, BlockState p_155456_) boolean
SignBlockEntity.isFacingFrontText
(Player p_277382_) protected abstract boolean
ContainerOpenersCounter.isOwnContainer
(Player p_155451_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) void
private SignText
SignBlockEntity.setMessages
(Player p_277396_, List<FilteredText> p_277744_, SignText p_277359_) void
void
void
void
boolean
BaseContainerBlockEntity.stillValid
(Player p_332791_) boolean
ChiseledBookShelfBlockEntity.stillValid
(Player p_256481_) boolean
CrafterBlockEntity.stillValid
(Player p_307443_) boolean
EnderChestBlockEntity.stillValid
(Player p_59283_) void
void
void
void
void
BrushableBlockEntity.unpackLootTable
(Player p_277940_) void
SignBlockEntity.updateSignText
(Player p_278048_, boolean p_278103_, List<FilteredText> p_277990_) boolean
-
Uses of Player in net.minecraft.world.level.block.entity.trialspawner
Modifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getPlayers
(ServerLevel p_323807_, Predicate<? super Player> p_324034_) Modifier and TypeMethodDescriptionPlayerDetector.EntitySelector.onlySelectPlayer
(Player p_324540_) private void
TrialSpawnerData.transformBadOmenIntoTrialOmen
(Player p_338616_, MobEffectInstance p_338599_) Modifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getPlayers
(ServerLevel p_323807_, Predicate<? super Player> p_324034_) PlayerDetector.EntitySelector.onlySelectPlayers
(List<Player> p_323995_) private static Entity
TrialSpawnerState.selectEntityToSpawnItemAbove
(List<Player> p_338467_, Set<UUID> p_338224_, TrialSpawner p_338687_, BlockPos p_338268_, ServerLevel p_338524_) -
Uses of Player in net.minecraft.world.level.block.entity.vault
Modifier and TypeMethodDescriptionvoid
VaultServerData.addToRewardedPlayers
(Player p_323713_) private static void
VaultBlockEntity.Client.emitConnectionParticlesForPlayer
(Level p_323629_, Vec3 p_324592_, Player p_324428_) (package private) boolean
VaultServerData.hasRewardedPlayer
(Player p_324533_) private static boolean
VaultBlockEntity.Client.isWithinConnectionRange
(BlockPos p_324081_, VaultSharedData p_323688_, Player p_324438_) VaultBlockEntity.Server.resolveItemsToEject
(ServerLevel p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_) static void
VaultBlockEntity.Server.tryInsertKey
(ServerLevel p_323533_, BlockPos p_323777_, BlockState p_324589_, VaultConfig p_323660_, VaultServerData p_323829_, VaultSharedData p_324341_, Player p_324373_, ItemStack p_324551_) -
Uses of Player in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionPistonHeadBlock.playerWillDestroy
(Level p_60265_, BlockPos p_60266_, BlockState p_60267_, Player p_60268_) protected InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState p_60070_, Level p_60071_, BlockPos p_60072_, Player p_60073_, BlockHitResult p_60075_) -
Uses of Player in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionprotected void
BlockBehaviour.attack
(BlockState p_60499_, Level p_60500_, BlockPos p_60501_, Player p_60502_) void
float
BlockBehaviour.BlockStateBase.getDestroyProgress
(Player p_60626_, BlockGetter p_60627_, BlockPos p_60628_) protected float
BlockBehaviour.getDestroyProgress
(BlockState p_60466_, Player p_60467_, BlockGetter p_60468_, BlockPos p_60469_) BlockBehaviour.BlockStateBase.useItemOn
(ItemStack p_316374_, Level p_316651_, Player p_316623_, InteractionHand p_316469_, BlockHitResult p_316877_) protected ItemInteractionResult
BlockBehaviour.useItemOn
(ItemStack p_316304_, BlockState p_316362_, Level p_316459_, BlockPos p_316366_, Player p_316132_, InteractionHand p_316595_, BlockHitResult p_316140_) BlockBehaviour.BlockStateBase.useWithoutItem
(Level p_316368_, Player p_316500_, BlockHitResult p_316346_) protected InteractionResult
BlockBehaviour.useWithoutItem
(BlockState p_60503_, Level p_60504_, BlockPos p_60505_, Player p_60506_, BlockHitResult p_60508_) -
Uses of Player in net.minecraft.world.level.saveddata.maps
Modifier and TypeFieldDescriptionprivate final Map
<Player, MapItemSavedData.HoldingPlayer> MapItemSavedData.carriedByPlayers
Modifier and TypeMethodDescriptionMapItemSavedData.getHoldingPlayer
(Player p_77917_) Packet
<?> MapItemSavedData.getUpdatePacket
(MapId p_323760_, Player p_164798_) void
MapItemSavedData.tickCarriedBy
(Player p_77919_, ItemStack p_77920_) -
Uses of Player in net.minecraft.world.level.storage
-
Uses of Player in net.minecraft.world.level.storage.loot.parameters
Modifier and TypeFieldDescriptionstatic final LootContextParam
<Player> LootContextParams.LAST_DAMAGE_PLAYER
-
Uses of Player in net.minecraft.world.ticks
Modifier and TypeMethodDescriptiondefault boolean
ContainerSingleItem.BlockContainerSingleItem.stillValid
(Player p_324363_) -
Uses of Player in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic float
ClientHooks.getFieldOfViewModifier
(Player entity, float fovModifier) static void
ClientHooks.onMovementInputUpdate
(Player player, Input 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
Modifier and TypeFieldDescriptionprivate final Player
ComputeFovModifierEvent.player
private final Player
RenderBlockScreenEffectEvent.player
Modifier and TypeFieldDescriptionprivate final Map
<PlayerSkin.Model, EntityRenderer<? extends Player>> EntityRenderersEvent.AddLayers.skinMap
Modifier and TypeMethodDescription<R extends EntityRenderer<? extends Player>>
REntityRenderersEvent.AddLayers.getSkin
(PlayerSkin.Model skinModel) Returns a player skin renderer for the given skin name.Modifier and TypeMethodDescriptionComputeFovModifierEvent.getPlayer()
Returns the player affected by this event.RenderBlockScreenEffectEvent.getPlayer()
Returns the player which the overlay will apply to.ModifierConstructorDescriptionComputeFovModifierEvent
(Player player, float fovModifier) MovementInputUpdateEvent
(Player player, Input input) Post
(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) Pre
(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) RenderBlockScreenEffectEvent
(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) protected
RenderPlayerEvent
(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
Uses of Player in net.neoforged.neoforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault void
IClientItemExtensions.renderHelmetOverlay
(ItemStack stack, Player player, int width, int height, float partialTick) Called when the client starts rendering the HUD, and is wearing this item in the helmet slot. -
Uses of Player in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic CriticalHitEvent
CommonHooks.fireCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) Fires theCriticalHitEvent
and returns the resulting event.default boolean
IShearable.isShearable
(@Nullable Player player, ItemStack item, Level level, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolstatic boolean
CommonHooks.onAnvilChange
(AnvilMenu container, ItemStack left, ItemStack right, Container outputSlot, String name, long baseCost, Player player) static float
CommonHooks.onAnvilRepair
(Player player, ItemStack output, ItemStack left, ItemStack right) 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) CommonHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) static boolean
CommonHooks.onPlayerAttackTarget
(Player player, Entity target) static @Nullable ItemEntity
CommonHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) CommonHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) Performs the shear function on this object.static void
CommonHooks.setCraftingPlayer
(Player player) static boolean
CommonHooks.shouldSuppressEnderManAnger
(EnderMan enderMan, Player player, ItemStack mask) -
Uses of Player in net.neoforged.neoforge.common.damagesource
Modifier 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
Modifier 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 boolean
IDispensibleContainerItemExtension.emptyContents
(@Nullable Player player, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.default ItemStack
IBlockExtension.getCloneItemStack
(BlockState state, HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IBlockStateExtension.getCloneItemStack
(HitResult target, LevelReader level, BlockPos pos, 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
IBlockEntityExtension.hasCustomOutlineRendering
(Player player) Returns whether thisBlockEntity
has custom outline rendering behavior.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.isEnderMask
(ItemStack stack, Player player, EnderMan endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IItemStackExtension.isEnderMask
(Player player, EnderMan endermanEntity) Whether this Item can be used to hide player head for enderman.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 void
IItemExtension.onArmorTick
(ItemStack stack, Level level, Player player) Deprecated, for removal: This API element is subject to removal in a future version.default void
IItemStackExtension.onArmorTick
(Level level, Player player) Deprecated, for removal: This API element is subject to removal in a future version.UseItem.inventoryTick(ItemStack, Level, Entity, int, boolean)
by checking that the slot argument is an armor slot.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
Modifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions. -
Uses of Player in net.neoforged.neoforge.debug.block
Modifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hit) -
Uses of Player in net.neoforged.neoforge.debug.chat
Modifier and TypeMethodDescriptionCommandTests.ErrorCatchingStack.createCommandSourceStack
(Player player, int perm) -
Uses of Player in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate final Player
AnvilUpdateEvent.player
private final Player
ItemStackedOnOtherEvent.player
Modifier and TypeMethodDescriptionAnvilUpdateEvent.getPlayer()
ItemStackedOnOtherEvent.getPlayer()
Returns the player doing the item swap attempt.Modifier 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 Gui.HeartType
EventHooks.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 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) 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, 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 InteractionResultHolder
<ItemStack> 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, ResourceKey<Level> levelKey, BlockPos pos, boolean forced) 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) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, long cost, 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
-
Uses of Player in net.neoforged.neoforge.event.entity.item
ModifierConstructorDescriptionItemTossEvent
(ItemEntity entityItem, Player player) Creates a new event for EntityItems tossed by a player. -
Uses of Player in net.neoforged.neoforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final @Nullable Player
LivingExperienceDropEvent.attackingPlayer
private final Player
BabyEntitySpawnEvent.causedByPlayer
private final Player
EnderManAngerEvent.player
private final Player
AnimalTameEvent.tamer
Modifier and TypeMethodDescription@Nullable Player
LivingExperienceDropEvent.getAttackingPlayer()
@Nullable Player
BabyEntitySpawnEvent.getCausedByPlayer()
EnderManAngerEvent.getPlayer()
The player that is being checked.AnimalTameEvent.getTamer()
ModifierConstructorDescriptionAnimalTameEvent
(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
Modifier and TypeFieldDescriptionprivate final Player
PlayerEvent.Clone.original
private final @Nullable Player
BonemealEvent.player
private final Player
ItemEntityPickupEvent.player
private final Player
PlayerEvent.player
Modifier 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.ModifierConstructorDescriptionAdvancementEarnEvent
(Player player, AdvancementHolder earned) AdvancementEvent
(Player player, AdvancementHolder advancement) AdvancementProgressEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterionName, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) AnvilRepairEvent
(Player player, ItemStack left, ItemStack right, ItemStack output) 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) 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) PlayerEvent
(Player player) PlayerFlyableFallEvent
(Player player, float distance, float multiplier) PlayerHeartTypeEvent
(Player player, Gui.HeartType type) 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, ResourceKey<Level> spawnLevel, @Nullable BlockPos newSpawn, boolean forced) 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) TabListNameFormat
(Player player) TradeWithVillagerEvent
(Player player, MerchantOffer offer, AbstractVillager abstractVillager) -
Uses of Player in net.neoforged.neoforge.event.level
Modifier and TypeMethodDescription@Nullable Player
BlockEvent.BlockToolModificationEvent.getPlayer()
BlockEvent.BreakEvent.getPlayer()
Returns the player who is attempting to break the block.ModifierConstructorDescriptionBreakEvent
(Level level, BlockPos pos, BlockState state, Player player) -
Uses of Player in net.neoforged.neoforge.event.tick
-
Uses of Player in net.neoforged.neoforge.event.village
ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Player in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescription@Nullable SoundEvent
FluidType.getSound
(@Nullable Player player, BlockGetter getter, BlockPos pos, SoundAction action) Returns a sound to play when a certain action is performed at a position.static 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.void
FluidType.onVaporize
(@Nullable Player player, Level level, BlockPos pos, FluidStack stack) Performs an action when a fluid can be vaporized when placed into a level.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
ModifierConstructorDescriptionBucketPickupHandlerWrapper
(Player player, BucketPickup bucketPickupHandler, Level world, BlockPos blockPos) -
Uses of Player in net.neoforged.neoforge.items
Modifier 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
-
Uses of Player in net.neoforged.neoforge.items.wrapper
-
Uses of Player in net.neoforged.neoforge.network.handling
-
Uses of Player in net.neoforged.neoforge.oldtest.block
Modifier and TypeMethodDescriptionFullPotsAccessorDemo.DioriteFlowerPotBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of Player in net.neoforged.neoforge.oldtest.client
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.use
(Level level, Player player, InteractionHand hand) -
Uses of Player in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeMethodDescriptionprotected ItemInteractionResult
MegaModelTest.TestBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of Player in net.neoforged.neoforge.oldtest.fluid
Modifier and TypeMethodDescriptionboolean
NewFluidTest.FluidloggableBlock.canPlaceLiquid
(@Nullable Player player, BlockGetter worldIn, BlockPos pos, BlockState state, Fluid fluidIn) NewFluidTest.FluidloggableBlock.pickupBlock
(@Nullable Player player, LevelAccessor worldIn, BlockPos pos, BlockState state) -
Uses of Player in net.neoforged.neoforge.oldtest.item
Modifier and TypeMethodDescriptionCustomFluidContainerTest.CustomFluidContainer.use
(Level level, Player player, InteractionHand hand) CustomShieldTest.CustomShieldItem.use
(Level world, Player player, InteractionHand hand) StopUsingItemTest.InvertedTelescope.use
(Level level, Player player, InteractionHand hand) -
Uses of Player in net.neoforged.neoforge.oldtest.misc
Modifier and TypeMethodDescriptionContainerTypeTest.TestContainer.quickMoveStack
(Player p_38941_, int p_38942_) boolean
ContainerTypeTest.TestContainer.stillValid
(Player playerIn) -
Uses of Player in net.neoforged.neoforge.oldtest.recipebook
Modifier and TypeMethodDescriptionRecipeBookTestMenu.quickMoveStack
(Player player, int idx) Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
void
boolean
RecipeBookTestMenu.stillValid
(Player player) -
Uses of Player in net.neoforged.testframework
Modifier and TypeMethodDescriptionvoid
DynamicTest.requestConfirmation
(Player player, Component message) Requests a confirmation of the test passing from a player. -
Uses of Player in net.neoforged.testframework.gametest
Modifier and TypeMethodDescriptionExtendedGameTestHelper.makeMockPlayer()
ExtendedGameTestHelper.makeOpMockPlayer
(int commandLevel) Modifier and TypeMethodDescriptionvoid
ExtendedGameTestHelper.assertPlayerHasItem
(Player player, Item item) void
void
void
ExtendedGameTestHelper.boneMealUntilGrown
(int x, int y, int z, Player player) To be used alongsideGameTestSequence.thenWaitUntil(Runnable)
void
void
void
-
Uses of Player in net.neoforged.testframework.impl.test
Modifier and TypeMethodDescriptionfinal void
AbstractTest.requestConfirmation
(Player player, Component message)
Item.inventoryTick(ItemStack, Level, Entity, int, boolean)
by checking that the slot argument is an armor slot.