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
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()
-
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 InteractionResult
CauldronInteraction.emptyBucket
(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static InteractionResult
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
Modifier and TypeMethodDescriptionGameTestHelper.makeMockPlayer()
GameTestHelper.makeMockSurvivalPlayer()
-
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_, int p_273411_) void
default void
default void
RandomizableContainer.unpackLootTable
(Player p_309552_) -
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_) private void
Mob.maybeDisableShield
(Player p_21425_, ItemStack p_21426_, ItemStack p_21427_) 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_, CompoundTag p_20624_) -
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_) MushroomCow.onSheared
(@Nullable Player player, @NotNull ItemStack item, Level world, BlockPos pos, int fortune) void
Pufferfish.playerTouch
(Player p_29617_) void
protected void
Pig.tickRidden
(Player p_278330_, Vec3 p_278267_) 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.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.equipArmor
(Player p_251330_, ItemStack p_248855_) 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
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.raid
-
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_310486_, double p_38121_, double p_38122_, double p_38123_, AbstractMinecart.Type p_38124_, ItemStack p_311363_, Player p_310754_) 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_309707_) boolean
Slot.allowModification
(Player p_150652_) default void
RecipeCraftingHolder.awardUsedRecipes
(Player p_297343_, List<ItemStack> p_297535_) 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_313133_, int p_309724_) 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_309546_) 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 TypeMethodDescriptionstatic 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_311819_) 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
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_) 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_312809_, BlockPos p_313114_, Player p_312029_, BlockState p_311198_) private Boat
static ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_40700_, Player p_40701_) 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
(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 playerIn, LivingEntity entity, InteractionHand hand) boolean
ArrowItem.isInfinite
(ItemStack stack, ItemStack bow, Player player) 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_) private static String
WrittenBookItem.resolvePage
(CommandSourceStack p_151249_, Player p_151250_, String p_151251_) 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_) 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_) 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.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_312141_, double p_310370_, double p_311188_, double p_309961_, SoundEvent p_313224_, SoundSource p_312451_) 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_) void
DragonEggBlock.attack
(BlockState p_52918_, Level p_52919_, BlockPos p_52920_, Player p_52921_) void
NoteBlock.attack
(BlockState p_55029_, Level p_55030_, BlockPos p_55031_, Player p_55032_) void
RedStoneOreBlock.attack
(BlockState p_55467_, Level p_55468_, BlockPos p_55469_, Player p_55470_) boolean
BarrierBlock.canPlaceLiquid
(Player p_298257_, BlockGetter p_299765_, BlockPos p_297382_, BlockState p_299344_, Fluid p_299153_) boolean
KelpBlock.canPlaceLiquid
(Player p_299149_, BlockGetter p_54304_, BlockPos p_54305_, BlockState p_54306_, Fluid p_54307_) boolean
KelpPlantBlock.canPlaceLiquid
(Player p_298374_, BlockGetter p_54325_, BlockPos p_54326_, BlockState p_54327_, Fluid p_54328_) boolean
LiquidBlockContainer.canPlaceLiquid
(Player p_300220_, BlockGetter p_54766_, BlockPos p_54767_, BlockState p_54768_, Fluid p_54769_) boolean
SeagrassBlock.canPlaceLiquid
(Player p_297962_, BlockGetter p_299850_, BlockPos p_154511_, BlockState p_154512_, Fluid p_299663_) default boolean
SimpleWaterloggedBlock.canPlaceLiquid
(Player p_298313_, BlockGetter p_56301_, BlockPos p_56302_, BlockState p_56303_, Fluid p_56304_) boolean
SlabBlock.canPlaceLiquid
(Player p_299468_, BlockGetter p_56363_, BlockPos p_56364_, BlockState p_56365_, Fluid p_56366_) boolean
TallSeagrassBlock.canPlaceLiquid
(Player p_301227_, 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_) float
BambooSaplingBlock.getDestroyProgress
(BlockState p_48981_, Player p_48982_, BlockGetter p_48983_, BlockPos p_48984_) 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_300115_, LevelAccessor p_299225_, BlockPos p_298270_, BlockState p_298275_) BubbleColumnBlock.pickupBlock
(Player p_297771_, LevelAccessor p_152712_, BlockPos p_152713_, BlockState p_152714_) BucketPickup.pickupBlock
(Player p_298551_, LevelAccessor p_152719_, BlockPos p_152720_, BlockState p_152721_) LiquidBlock.pickupBlock
(Player p_299124_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) PowderSnowBlock.pickupBlock
(Player p_297240_, LevelAccessor p_154281_, BlockPos p_154282_, BlockState p_154283_) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(Player p_301318_, 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_311901_, Level p_312039_, BlockPos p_310194_, Player p_312003_) AbstractCauldronBlock.use
(BlockState p_151969_, Level p_151970_, BlockPos p_151971_, Player p_151972_, InteractionHand p_151973_, BlockHitResult p_151974_) AbstractFurnaceBlock.use
(BlockState p_48706_, Level p_48707_, BlockPos p_48708_, Player p_48709_, InteractionHand p_48710_, BlockHitResult p_48711_) AnvilBlock.use
(BlockState p_48804_, Level p_48805_, BlockPos p_48806_, Player p_48807_, InteractionHand p_48808_, BlockHitResult p_48809_) BarrelBlock.use
(BlockState p_49069_, Level p_49070_, BlockPos p_49071_, Player p_49072_, InteractionHand p_49073_, BlockHitResult p_49074_) BeaconBlock.use
(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, InteractionHand p_49436_, BlockHitResult p_49437_) BedBlock.use
(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, InteractionHand p_49519_, BlockHitResult p_49520_) BeehiveBlock.use
(BlockState p_49624_, Level p_49625_, BlockPos p_49626_, Player p_49627_, InteractionHand p_49628_, BlockHitResult p_49629_) BellBlock.use
(BlockState p_49722_, Level p_49723_, BlockPos p_49724_, Player p_49725_, InteractionHand p_49726_, BlockHitResult p_49727_) BrewingStandBlock.use
(BlockState p_50930_, Level p_50931_, BlockPos p_50932_, Player p_50933_, InteractionHand p_50934_, BlockHitResult p_50935_) ButtonBlock.use
(BlockState p_51088_, Level p_51089_, BlockPos p_51090_, Player p_51091_, InteractionHand p_51092_, BlockHitResult p_51093_) CakeBlock.use
(BlockState p_51202_, Level p_51203_, BlockPos p_51204_, Player p_51205_, InteractionHand p_51206_, BlockHitResult p_51207_) CampfireBlock.use
(BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) CandleBlock.use
(BlockState p_152822_, Level p_152823_, BlockPos p_152824_, Player p_152825_, InteractionHand p_152826_, BlockHitResult p_152827_) CandleCakeBlock.use
(BlockState p_152884_, Level p_152885_, BlockPos p_152886_, Player p_152887_, InteractionHand p_152888_, BlockHitResult p_152889_) CartographyTableBlock.use
(BlockState p_51357_, Level p_51358_, BlockPos p_51359_, Player p_51360_, InteractionHand p_51361_, BlockHitResult p_51362_) CaveVinesBlock.use
(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, InteractionHand p_152984_, BlockHitResult p_152985_) CaveVinesPlantBlock.use
(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, InteractionHand p_153025_, BlockHitResult p_153026_) CeilingHangingSignBlock.use
(BlockState p_251161_, Level p_249327_, BlockPos p_248552_, Player p_248644_, InteractionHand p_251941_, BlockHitResult p_252016_) ChestBlock.use
(BlockState p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, InteractionHand p_51535_, BlockHitResult p_51536_) ChiseledBookShelfBlock.use
(BlockState p_251144_, Level p_251668_, BlockPos p_249108_, Player p_249954_, InteractionHand p_249823_, BlockHitResult p_250640_) CommandBlock.use
(BlockState p_51825_, Level p_51826_, BlockPos p_51827_, Player p_51828_, InteractionHand p_51829_, BlockHitResult p_51830_) ComparatorBlock.use
(BlockState p_51880_, Level p_51881_, BlockPos p_51882_, Player p_51883_, InteractionHand p_51884_, BlockHitResult p_51885_) ComposterBlock.use
(BlockState p_51949_, Level p_51950_, BlockPos p_51951_, Player p_51952_, InteractionHand p_51953_, BlockHitResult p_51954_) CrafterBlock.use
(BlockState p_309704_, Level p_312700_, BlockPos p_310945_, Player p_312953_, InteractionHand p_311801_, BlockHitResult p_309965_) CraftingTableBlock.use
(BlockState p_52233_, Level p_52234_, BlockPos p_52235_, Player p_52236_, InteractionHand p_52237_, BlockHitResult p_52238_) DaylightDetectorBlock.use
(BlockState p_52391_, Level p_52392_, BlockPos p_52393_, Player p_52394_, InteractionHand p_52395_, BlockHitResult p_52396_) DecoratedPotBlock.use
(BlockState p_312109_, Level p_312351_, BlockPos p_310007_, Player p_311727_, InteractionHand p_309947_, BlockHitResult p_311602_) DispenserBlock.use
(BlockState p_52693_, Level p_52694_, BlockPos p_52695_, Player p_52696_, InteractionHand p_52697_, BlockHitResult p_52698_) DoorBlock.use
(BlockState p_52769_, Level p_52770_, BlockPos p_52771_, Player p_52772_, InteractionHand p_52773_, BlockHitResult p_52774_) DragonEggBlock.use
(BlockState p_52923_, Level p_52924_, BlockPos p_52925_, Player p_52926_, InteractionHand p_52927_, BlockHitResult p_52928_) EnchantmentTableBlock.use
(BlockState p_52974_, Level p_52975_, BlockPos p_52976_, Player p_52977_, InteractionHand p_52978_, BlockHitResult p_52979_) EnderChestBlock.use
(BlockState p_53137_, Level p_53138_, BlockPos p_53139_, Player p_53140_, InteractionHand p_53141_, BlockHitResult p_53142_) FenceBlock.use
(BlockState p_53316_, Level p_53317_, BlockPos p_53318_, Player p_53319_, InteractionHand p_53320_, BlockHitResult p_53321_) FenceGateBlock.use
(BlockState p_53365_, Level p_53366_, BlockPos p_53367_, Player p_53368_, InteractionHand p_53369_, BlockHitResult p_53370_) FletchingTableBlock.use
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, InteractionHand p_53505_, BlockHitResult p_53506_) FlowerPotBlock.use
(BlockState p_53540_, Level p_53541_, BlockPos p_53542_, Player p_53543_, InteractionHand p_53544_, BlockHitResult p_53545_) GrindstoneBlock.use
(BlockState p_53821_, Level p_53822_, BlockPos p_53823_, Player p_53824_, InteractionHand p_53825_, BlockHitResult p_53826_) HopperBlock.use
(BlockState p_54071_, Level p_54072_, BlockPos p_54073_, Player p_54074_, InteractionHand p_54075_, BlockHitResult p_54076_) JigsawBlock.use
(BlockState p_54231_, Level p_54232_, BlockPos p_54233_, Player p_54234_, InteractionHand p_54235_, BlockHitResult p_54236_) JukeboxBlock.use
(BlockState p_54281_, Level p_54282_, BlockPos p_54283_, Player p_54284_, InteractionHand p_54285_, BlockHitResult p_54286_) LecternBlock.use
(BlockState p_54524_, Level p_54525_, BlockPos p_54526_, Player p_54527_, InteractionHand p_54528_, BlockHitResult p_54529_) LeverBlock.use
(BlockState p_54640_, Level p_54641_, BlockPos p_54642_, Player p_54643_, InteractionHand p_54644_, BlockHitResult p_54645_) LightBlock.use
(BlockState p_153673_, Level p_153674_, BlockPos p_153675_, Player p_153676_, InteractionHand p_153677_, BlockHitResult p_153678_) LoomBlock.use
(BlockState p_54787_, Level p_54788_, BlockPos p_54789_, Player p_54790_, InteractionHand p_54791_, BlockHitResult p_54792_) NoteBlock.use
(BlockState p_55034_, Level p_55035_, BlockPos p_55036_, Player p_55037_, InteractionHand p_55038_, BlockHitResult p_55039_) PumpkinBlock.use
(BlockState p_55289_, Level p_55290_, BlockPos p_55291_, Player p_55292_, InteractionHand p_55293_, BlockHitResult p_55294_) RedStoneOreBlock.use
(BlockState p_55472_, Level p_55473_, BlockPos p_55474_, Player p_55475_, InteractionHand p_55476_, BlockHitResult p_55477_) RedStoneWireBlock.use
(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, InteractionHand p_55558_, BlockHitResult p_55559_) RepeaterBlock.use
(BlockState p_55809_, Level p_55810_, BlockPos p_55811_, Player p_55812_, InteractionHand p_55813_, BlockHitResult p_55814_) RespawnAnchorBlock.use
(BlockState p_55874_, Level p_55875_, BlockPos p_55876_, Player p_55877_, InteractionHand p_55878_, BlockHitResult p_55879_) ShulkerBoxBlock.use
(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, InteractionHand p_56231_, BlockHitResult p_56232_) SignBlock.use
(BlockState p_56278_, Level p_56279_, BlockPos p_56280_, Player p_56281_, InteractionHand p_56282_, BlockHitResult p_56283_) SmithingTableBlock.use
(BlockState p_56428_, Level p_56429_, BlockPos p_56430_, Player p_56431_, InteractionHand p_56432_, BlockHitResult p_56433_) StonecutterBlock.use
(BlockState p_57083_, Level p_57084_, BlockPos p_57085_, Player p_57086_, InteractionHand p_57087_, BlockHitResult p_57088_) StructureBlock.use
(BlockState p_57128_, Level p_57129_, BlockPos p_57130_, Player p_57131_, InteractionHand p_57132_, BlockHitResult p_57133_) SweetBerryBushBlock.use
(BlockState p_57275_, Level p_57276_, BlockPos p_57277_, Player p_57278_, InteractionHand p_57279_, BlockHitResult p_57280_) TntBlock.use
(BlockState p_57450_, Level p_57451_, BlockPos p_57452_, Player p_57453_, InteractionHand p_57454_, BlockHitResult p_57455_) TrapDoorBlock.use
(BlockState p_57540_, Level p_57541_, BlockPos p_57542_, Player p_57543_, InteractionHand p_57544_, BlockHitResult p_57545_) WallHangingSignBlock.use
(BlockState p_251703_, Level p_249080_, BlockPos p_250832_, Player p_251881_, InteractionHand p_249800_, BlockHitResult p_252293_) -
Uses of Player in net.minecraft.world.level.block.entity
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
AbstractFurnaceBlockEntity.stillValid
(Player p_58340_) boolean
BrewingStandBlockEntity.stillValid
(Player p_59000_) boolean
ChiseledBookShelfBlockEntity.stillValid
(Player p_256481_) boolean
CrafterBlockEntity.stillValid
(Player p_311318_) boolean
EnderChestBlockEntity.stillValid
(Player p_59283_) boolean
RandomizableContainerBlockEntity.stillValid
(Player p_59619_) 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.piston
Modifier and TypeMethodDescriptionPistonHeadBlock.playerWillDestroy
(Level p_60265_, BlockPos p_60266_, BlockState p_60267_, Player p_60268_) MovingPistonBlock.use
(BlockState p_60070_, Level p_60071_, BlockPos p_60072_, Player p_60073_, InteractionHand p_60074_, BlockHitResult p_60075_) -
Uses of Player in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionvoid
BlockBehaviour.attack
(BlockState p_60499_, Level p_60500_, BlockPos p_60501_, Player p_60502_) Deprecated.void
float
BlockBehaviour.BlockStateBase.getDestroyProgress
(Player p_60626_, BlockGetter p_60627_, BlockPos p_60628_) float
BlockBehaviour.getDestroyProgress
(BlockState p_60466_, Player p_60467_, BlockGetter p_60468_, BlockPos p_60469_) Deprecated.BlockBehaviour.BlockStateBase.use
(Level p_60665_, Player p_60666_, InteractionHand p_60667_, BlockHitResult p_60668_) BlockBehaviour.use
(BlockState p_60503_, Level p_60504_, BlockPos p_60505_, Player p_60506_, InteractionHand p_60507_, BlockHitResult p_60508_) Deprecated. -
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
(int p_164797_, Player p_164798_) void
MapItemSavedData.tickCarriedBy
(Player p_77919_, ItemStack p_77920_) -
Uses of Player in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionvoid
-
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.stillValid
(Player p_312825_) -
Uses of Player in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic float
ForgeHooksClient.getFieldOfViewModifier
(Player entity, float fovModifier) static void
ForgeHooksClient.onMovementInputUpdate
(Player player, Input movementInput) static boolean
ForgeHooksClient.renderBlockOverlay
(Player player, PoseStack mat, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos pos) static boolean
ForgeHooksClient.renderFireOverlay
(Player player, PoseStack mat) static boolean
ForgeHooksClient.renderWaterOverlay
(Player player, PoseStack mat) -
Uses of Player in net.minecraftforge.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.getPlayerSkin
(PlayerSkin.Model skinName) Returns a player skin renderer for the given skin name.<R extends LivingEntityRenderer<? extends Player,
? extends EntityModel<? extends Player>>>
REntityRenderersEvent.AddLayers.getSkin
(PlayerSkin.Model skinName) Deprecated, for removal: This API element is subject to removal in a future version.Use getEntitySkin, return type down graded to EntityRenderer instead of LivingEntityRenderer<R extends LivingEntityRenderer<? extends Player,
? extends EntityModel<? extends Player>>>
REntityRenderersEvent.AddLayers.getSkin
(PlayerSkin.Model skinName) Deprecated, for removal: This API element is subject to removal in a future version.Use getEntitySkin, return type down graded to EntityRenderer instead of LivingEntityRendererModifier 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.minecraftforge.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.minecraftforge.common
Modifier and TypeMethodDescriptionstatic @Nullable CriticalHitEvent
ForgeHooks.getCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) static boolean
ForgeHooks.isCorrectToolForDrops
(@NotNull BlockState state, @NotNull Player player) static boolean
ForgeHooks.onAnvilChange
(AnvilMenu container, @NotNull ItemStack left, @NotNull ItemStack right, Container outputSlot, String name, int baseCost, Player player) static float
ForgeHooks.onAnvilRepair
(Player player, @NotNull ItemStack output, @NotNull ItemStack left, @NotNull ItemStack right) static GameType
ForgeHooks.onChangeGameType
(Player player, GameType currentGameType, GameType newGameType) ForgeHooks.onClientMineHold
(Player player, BlockPos pos, Direction face) static void
ForgeHooks.onEmptyClick
(Player player, InteractionHand hand) static void
ForgeHooks.onEmptyLeftClick
(Player player) static InteractionResult
ForgeHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static InteractionResult
ForgeHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static InteractionResult
ForgeHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static InteractionResult
ForgeHooks.onItemRightClick
(Player player, InteractionHand hand) static boolean
ForgeHooks.onItemStackedOn
(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) ForgeHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) static boolean
ForgeHooks.onPlayerAttackTarget
(Player player, Entity target) static @Nullable ItemEntity
ForgeHooks.onPlayerTossEvent
(@NotNull Player player, @NotNull ItemStack item, boolean includeName) ForgeHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) IForgeShearable.onSheared
(@Nullable Player player, @NotNull ItemStack item, Level level, BlockPos pos, int fortune) Performs the shear function on this object.static void
ForgeHooks.setCraftingPlayer
(Player player) static boolean
ForgeHooks.shouldSuppressEnderManAnger
(EnderMan enderMan, Player player, ItemStack mask) -
Uses of Player in net.minecraftforge.common.crafting
-
Uses of Player in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.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
IForgeBlockState.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
IForgeItem.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
IForgeItemStack.doesSneakBypassUse
(LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default boolean
IForgeDispensibleContainerItem.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
IForgeBlock.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
IForgeBlockState.getCloneItemStack
(HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault @NotNull AABB
IForgeItem.getSweepHitBox
(@NotNull ItemStack stack, @NotNull Player player, @NotNull Entity target) Get a bounding box (AABB
) of a sweep attack.default @NotNull AABB
IForgeItemStack.getSweepHitBox
(@NotNull Player player, @NotNull Entity target) Get a bounding box (AABB
) of a sweep attack.default boolean
IForgeBlockEntity.hasCustomOutlineRendering
(Player player) Returns whether thisBlockEntity
has custom outline rendering behavior.default boolean
IForgeEntity.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
IForgeItem.isEnderMask
(ItemStack stack, Player player, EnderMan endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IForgeItemStack.isEnderMask
(Player player, EnderMan endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IForgeItem.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
IForgeItemStack.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
IForgeItem.onArmorTick
(ItemStack stack, Level level, Player player) Deprecated, for removal: This API element is subject to removal in a future version.default void
IForgeItemStack.onArmorTick
(Level level, Player player) Deprecated, for removal: This API element is subject to removal in a future version.default boolean
IForgeItem.onBlockStartBreak
(ItemStack itemstack, BlockPos pos, Player player) Called before a block is broken.default boolean
IForgeItemStack.onBlockStartBreak
(BlockPos pos, Player player) Called before a block is broken.default boolean
IForgeBlock.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlockState.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeItem.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
IForgeItemStack.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 void
IForgeItem.onInventoryTick
(ItemStack stack, Level level, Player player, int slotIndex, int selectedIndex) Called to tick this items in a players inventory, the indexes are the global slot index.default void
IForgeItemStack.onInventoryTick
(Level level, Player player, int slotIndex, int selectedIndex) Called to tick this items in a players inventory, the indexes are the global slot index.default boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity. -
Uses of Player in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final Player
AnvilUpdateEvent.player
private final Player
ItemStackedOnOtherEvent.player
final Player
TickEvent.PlayerTickEvent.player
Modifier and TypeMethodDescriptionAnvilUpdateEvent.getPlayer()
ItemStackedOnOtherEvent.getPlayer()
Returns the player doing the item swap attempt.Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.doPlayerHarvestCheck
(Player player, BlockState state, boolean success) static void
ForgeEventFactory.firePlayerCraftingEvent
(Player player, ItemStack crafted, Container craftMatrix) static void
ForgeEventFactory.firePlayerItemPickupEvent
(Player player, ItemEntity item, ItemStack clone) static void
ForgeEventFactory.firePlayerLoadingEvent
(Player player, File playerDirectory, String uuidString) static void
ForgeEventFactory.firePlayerLoadingEvent
(Player player, PlayerDataStorage playerFileData, String uuidString) static void
ForgeEventFactory.firePlayerLoggedIn
(Player player) static void
ForgeEventFactory.firePlayerLoggedOut
(Player player) static void
ForgeEventFactory.firePlayerRespawnEvent
(Player player, boolean endConquered) static void
ForgeEventFactory.firePlayerSavingEvent
(Player player, File playerDirectory, String uuidString) static void
ForgeEventFactory.firePlayerSmeltedEvent
(Player player, ItemStack smelted) static float
ForgeEventFactory.getBreakSpeed
(Player player, BlockState state, float original, BlockPos pos) static int
ForgeEventFactory.getExperienceDrop
(LivingEntity entity, Player attackingPlayer, int originalExperience) static Component
ForgeEventFactory.getPlayerDisplayName
(Player player, Component username) static Component
ForgeEventFactory.getPlayerTabListDisplayName
(Player player) static void
ForgeEventFactory.onAdvancementEarned
(Player player, AdvancementHolder holder) static void
ForgeEventFactory.onAdvancementGrant
(Player player, AdvancementHolder holder, AdvancementProgress advancementProgress, String criterion) static void
ForgeEventFactory.onAdvancementRevoke
(Player player, AdvancementHolder holder, AdvancementProgress advancementProgress, String criterion) static boolean
ForgeEventFactory.onAnimalTame
(Animal animal, Player tamer) static int
ForgeEventFactory.onApplyBonemeal
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) static int
ForgeEventFactory.onArrowLoose
(ItemStack stack, Level level, Player player, int charge, boolean hasAmmo) static InteractionResultHolder<ItemStack>
ForgeEventFactory.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static @Nullable InteractionResultHolder<ItemStack>
ForgeEventFactory.onBucketUse
(@NotNull Player player, @NotNull Level level, @NotNull ItemStack stack, @Nullable HitResult target) static int
ForgeEventFactory.onItemPickup
(ItemEntity entityItem, Player player) static ItemTooltipEvent
ForgeEventFactory.onItemTooltip
(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags) static void
ForgeEventFactory.onPlayerBrewedPotion
(Player player, ItemStack stack) static void
ForgeEventFactory.onPlayerChangedDimension
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) static void
ForgeEventFactory.onPlayerClone
(Player player, Player oldPlayer, boolean wasDeath) static void
ForgeEventFactory.onPlayerDestroyItem
(Player player, @NotNull ItemStack stack, @Nullable InteractionHand hand) static void
ForgeEventFactory.onPlayerFall
(Player player, float distance, float multiplier) static void
ForgeEventFactory.onPlayerPostTick
(Player player) static void
ForgeEventFactory.onPlayerPreTick
(Player player) static Player.BedSleepingProblem
ForgeEventFactory.onPlayerSleepInBed
(Player player, Optional<BlockPos> pos) static boolean
ForgeEventFactory.onPlayerSpawnSet
(Player player, ResourceKey<Level> levelKey, BlockPos pos, boolean forced) static void
ForgeEventFactory.onPlayerWakeup
(Player player, boolean wakeImmediately, boolean updateLevel) static boolean
ForgeEventFactory.onSleepingTimeCheck
(Player player, Optional<BlockPos> sleepingLocation) static void
ForgeEventFactory.onStartEntityTracking
(Entity entity, Player player) static void
ForgeEventFactory.onStopEntityTracking
(Entity entity, Player player) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, int cost, Player player) ItemStackedOnOtherEvent
(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) PlayerTickEvent
(TickEvent.Phase phase, Player player) -
Uses of Player in net.minecraftforge.event.brewing
-
Uses of Player in net.minecraftforge.event.entity.item
ModifierConstructorDescriptionItemTossEvent
(ItemEntity entityItem, Player player) Creates a new event for EntityItems tossed by a player. -
Uses of Player in net.minecraftforge.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.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final Player
PlayerEvent.Clone.original
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.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, @NotNull ItemStack left, @NotNull ItemStack right, @NotNull ItemStack output) ArrowLooseEvent
(Player player, @NotNull ItemStack bow, Level level, int charge, boolean hasAmmo) ArrowNockEvent
(Player player, @NotNull ItemStack item, InteractionHand hand, Level level, boolean hasAmmo) AttackEntityEvent
(Player player, Entity target) BonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState block, ItemStack stack) BreakSpeed
(Player player, BlockState state, float original, @Nullable BlockPos pos) Close
(Player player, AbstractContainerMenu container) CriticalHitEvent
(Player player, Entity target, float damageModifier, boolean vanillaCritical) EntityInteract
(Player player, InteractionHand hand, Entity target) EntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) EntityItemPickupEvent
(Player player, ItemEntity item) FillBucketEvent
(Player player, @NotNull ItemStack current, Level level, @Nullable HitResult target) HarvestCheck
(Player player, BlockState state, boolean success) ItemCraftedEvent
(Player player, @NotNull ItemStack crafting, Container craftMatrix) ItemPickupEvent
(Player player, ItemEntity entPickedUp, ItemStack stack) ItemSmeltedEvent
(Player player, @NotNull ItemStack crafting) ItemTooltipEvent
(@NotNull ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags) This event is fired inItemStack.getTooltipLines(Player, TooltipFlag)
, which in turn is called from its respective GUIContainer.LeftClickBlock
(Player player, BlockPos pos, Direction face) Deprecated, for removal: This API element is subject to removal in a future version.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, @NotNull ItemStack original, @Nullable InteractionHand hand) PlayerEvent
(Player player) PlayerFlyableFallEvent
(Player player, float distance, float multiplier) private
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) PlayerSleepInBedEvent
(Player player, Optional<BlockPos> pos) PlayerSpawnPhantomsEvent
(Player player, int phantomsToSpawn) PlayerWakeUpEvent
(Player player, boolean wakeImmediately, boolean updateLevel) PlayerXpEvent
(Player player) 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) SleepingTimeCheckEvent
(Player player, Optional<BlockPos> sleepingLocation) 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.minecraftforge.event.level
Modifier and TypeFieldDescriptionprivate final Player
BlockEvent.BreakEvent.player
Reference to the Player who broke the block.Modifier and TypeMethodDescription@Nullable Player
BlockEvent.BlockToolModificationEvent.getPlayer()
BlockEvent.BreakEvent.getPlayer()
ModifierConstructorDescriptionBreakEvent
(Level level, BlockPos pos, BlockState state, Player player) -
Uses of Player in net.minecraftforge.event.village
ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Player in net.minecraftforge.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
(@NotNull Player player, @NotNull InteractionHand hand, @NotNull Level level, @NotNull 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
(@NotNull Player player, @NotNull InteractionHand hand, @NotNull 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 @NotNull FluidActionResult
FluidUtil.tryEmptyContainer
(@NotNull 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 @NotNull FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(@NotNull 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 @NotNull FluidActionResult
FluidUtil.tryFillContainer
(@NotNull ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static @NotNull FluidActionResult
FluidUtil.tryFillContainerAndStow
(@NotNull 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 @NotNull FluidActionResult
FluidUtil.tryPickUpFluid
(@NotNull 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 @NotNull FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, @NotNull 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.minecraftforge.items
Modifier and TypeMethodDescriptionstatic void
ItemHandlerHelper.giveItemToPlayer
(Player player, @NotNull ItemStack stack) giveItemToPlayer without preferred slotstatic void
ItemHandlerHelper.giveItemToPlayer
(Player player, @NotNull ItemStack stack, int preferredSlot) Inserts the given itemstack into the players inventory.boolean
-
Uses of Player in net.minecraftforge.items.wrapper