Uses of Class
net.minecraft.world.entity.player.Player
Package
Description
-
Uses of Player in net.minecraft.client.gui
Modifier and TypeMethodDescription(package private) static Gui.HeartType
protected void
Gui.renderHearts
(PoseStack p_168689_, 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
(int p_168678_, int p_168679_, float p_168680_, Player p_168681_, ItemStack p_168682_, int p_168683_) -
Uses of Player in net.minecraft.client.gui.screens.inventory
Modifier and TypeFieldDescriptionprivate final Player
BookEditScreen.owner
private final Player
AnvilScreen.player
Modifier and TypeMethodDescriptionboolean
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_98519_) 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.playSound
(Player p_104645_, double p_104646_, double p_104647_, double p_104648_, SoundEvent p_104649_, SoundSource p_104650_, float p_104651_, float p_104652_) void
ClientLevel.playSound
(Player p_104659_, Entity p_104660_, SoundEvent p_104661_, SoundSource p_104662_, float p_104663_, float p_104664_) void
MultiPlayerGameMode.releaseUsingItem
(Player p_105278_) MultiPlayerGameMode.useItem
(Player p_105236_, Level p_105237_, InteractionHand p_105238_) -
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_) void
LevelRenderer.levelEvent
(Player p_109533_, int p_109534_, BlockPos p_109535_, int p_109536_) -
Uses of Player in net.minecraft.client.renderer.entity
Modifier and TypeFieldDescriptionprivate Map<String,
EntityRenderer<? extends Player>> EntityRenderDispatcher.playerRenderers
Modifier and TypeMethodDescriptionstatic Map<String,
EntityRenderer<? extends Player>> EntityRenderers.createPlayerRenderers
(EntityRendererProvider.Context p_174052_) Map<String,
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
-
Uses of Player in net.minecraft.network.protocol.game
-
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.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.playSound
(Player p_8675_, double p_8676_, double p_8677_, double p_8678_, SoundEvent p_8679_, SoundSource p_8680_, float p_8681_, float p_8682_) void
ServerLevel.playSound
(Player p_8689_, Entity p_8690_, SoundEvent p_8691_, SoundSource p_8692_, float p_8693_, float p_8694_) 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.broadcastToAllExceptTeam
(Player p_11279_, Component p_11280_) void
PlayerList.broadcastToTeam
(Player p_11250_, Component p_11251_) 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_) void
default void
-
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 TypeMethodDescriptionboolean
Mob.canBeLeashed
(Player p_21418_) boolean
TamableAnimal.canBeLeashed
(Player p_21813_) private InteractionResult
Mob.checkAndHandleImportantInteractions
(Player p_21500_, InteractionHand p_21501_) EntityType.create
(ServerLevel p_20656_, CompoundTag p_20657_, Component p_20658_, Player p_20659_, BlockPos p_20660_, MobSpawnType p_20661_, boolean p_20662_, boolean p_20663_) protected int
LivingEntity.getExperienceReward
(Player p_21201_) protected int
Mob.getExperienceReward
(Player p_21511_) Entity.interact
(Player p_19978_, InteractionHand p_19979_) 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_) 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_20601_, CompoundTag p_20602_, Component p_20603_, Player p_20604_, BlockPos p_20605_, MobSpawnType p_20606_, boolean p_20607_, boolean p_20608_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) void
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 int
Animal.getExperienceReward
(Player p_27590_) protected int
Chicken.getExperienceReward
(Player p_28259_) protected int
WaterAnimal.getExperienceReward
(Player p_30353_) 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
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.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.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_) 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_) 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.openInventory
(Player p_30621_) boolean
AbstractHorse.tameWithName
(Player p_30638_) -
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 int
Zombie.getExperienceReward
(Player p_34322_) (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_) -
Uses of Player in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionboolean
Hoglin.canBeLeashed
(Player p_34506_) protected int
Hoglin.getExperienceReward
(Player p_34544_) 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_) protected int
Piglin.getExperienceReward
(Player p_34763_) 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_) protected int
Player.getExperienceReward
(Player p_36297_) 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_) AbstractMinecartContainer.interact
(Player p_38232_, InteractionHand p_38233_) Boat.interact
(Player p_38330_, InteractionHand p_38331_) Minecart.interact
(Player p_38483_, InteractionHand p_38484_) MinecartCommandBlock.interact
(Player p_38522_, InteractionHand p_38523_) MinecartFurnace.interact
(Player p_38562_, InteractionHand p_38563_) boolean
AbstractMinecartContainer.stillValid
(Player p_38230_) void
AbstractMinecartContainer.unpackLootTable
(Player p_38255_) -
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
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
Slot.allowModification
(Player p_150652_) default void
RecipeHolder.awardUsedRecipes
(Player p_40139_) 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
protected boolean
protected void
void
void
protected abstract void
void
void
void
protected void
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_) 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_) 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
CraftingContainer.stillValid
(Player p_39340_) 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_) void
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_) 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_) boolean
DispensibleContainerItem.emptyContents
(Player p_150821_, Level p_150822_, BlockPos p_150823_, BlockHitResult p_150824_) boolean
SolidBucketItem.emptyContents
(Player p_151192_, Level p_151193_, BlockPos p_151194_, BlockHitResult p_151195_) 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_) void
MapItem.onCraftedBy
(ItemStack p_42913_, Level p_42914_, Player p_42915_) 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_) 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_) 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_) 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_) 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_) WaterLilyBlockItem.use
(Level p_43441_, Player p_43442_, InteractionHand p_43443_) 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.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_) abstract void
Level.playSound
(Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) 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 TypeMethodDescriptionvoid
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_) void
StairBlock.attack
(BlockState p_56896_, Level p_56897_, BlockPos p_56898_, Player p_56899_) 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
BambooBlock.getDestroyProgress
(BlockState p_48901_, Player p_48902_, BlockGetter p_48903_, BlockPos p_48904_) float
BambooSaplingBlock.getDestroyProgress
(BlockState p_48981_, Player p_48982_, BlockGetter p_48983_, BlockPos p_48984_) 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_) private static void
LecternBlock.placeBook
(Player p_153576_, Level p_153577_, BlockPos p_153578_, BlockState p_153579_, ItemStack p_153580_) 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_) void
BaseFireBlock.playerWillDestroy
(Level p_49251_, BlockPos p_49252_, BlockState p_49253_, Player p_49254_) void
BedBlock.playerWillDestroy
(Level p_49505_, BlockPos p_49506_, BlockState p_49507_, Player p_49508_) void
BeehiveBlock.playerWillDestroy
(Level p_49608_, BlockPos p_49609_, BlockState p_49610_, Player p_49611_) void
Block.playerWillDestroy
(Level p_49852_, BlockPos p_49853_, BlockState p_49854_, Player p_49855_) void
DoorBlock.playerWillDestroy
(Level p_52755_, BlockPos p_52756_, BlockState p_52757_, Player p_52758_) void
DoublePlantBlock.playerWillDestroy
(Level p_52878_, BlockPos p_52879_, BlockState p_52880_, Player p_52881_) void
ShulkerBoxBlock.playerWillDestroy
(Level p_56212_, BlockPos p_56213_, BlockState p_56214_, Player p_56215_) void
TntBlock.playerWillDestroy
(Level p_57445_, BlockPos p_57446_, BlockState p_57447_, Player p_57448_) void
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.preventCreativeDropFromBottomPart
(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_) 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_) static boolean
LecternBlock.tryPlaceBook
(Player p_153567_, Level p_153568_, BlockPos p_153569_, BlockState p_153570_, ItemStack p_153571_) 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_) ChestBlock.use
(BlockState p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, InteractionHand p_51535_, BlockHitResult p_51536_) 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_) 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_) 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_) StairBlock.use
(BlockState p_56901_, Level p_56902_, BlockPos p_56903_, Player p_56904_, InteractionHand p_56905_, BlockHitResult p_56906_) 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_) -
Uses of Player in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.awardUsedRecipes
(Player p_58396_) boolean
boolean
static boolean
private CommandSourceStack
LecternBlockEntity.createCommandSourceStack
(Player p_59535_) 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_) void
BeehiveBlockEntity.emptyAllLivingFromHive
(Player p_58749_, BlockState p_58750_, BeehiveBlockEntity.BeeReleaseStatus p_58751_) void
ContainerOpenersCounter.incrementOpeners
(Player p_155453_, Level p_155454_, BlockPos p_155455_, BlockState p_155456_) protected abstract boolean
ContainerOpenersCounter.isOwnContainer
(Player p_155451_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) void
void
void
void
void
boolean
AbstractFurnaceBlockEntity.stillValid
(Player p_58340_) boolean
BrewingStandBlockEntity.stillValid
(Player p_59000_) boolean
EnderChestBlockEntity.stillValid
(Player p_59283_) boolean
RandomizableContainerBlockEntity.stillValid
(Player p_59619_) void
void
void
void
void
RandomizableContainerBlockEntity.unpackLootTable
(Player p_59641_) boolean
-
Uses of Player in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionvoid
PistonHeadBlock.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.minecraftforge.client
Modifier and TypeMethodDescriptionstatic float
ForgeHooksClient.getFieldOfView
(Player entity, float fov) static void
ForgeHooksClient.onMovementInputUpdate
(Player player, Input movementInput) default void
IItemRenderProperties.renderHelmetOverlay
(ItemStack stack, Player player, int width, int height, float partialTick) Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet. -
Uses of Player in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final Player
FOVModifierEvent.entity
private final Player
RenderBlockOverlayEvent.player
Modifier and TypeFieldDescriptionprivate final Map<String,
EntityRenderer<? extends Player>> EntityRenderersEvent.AddLayers.skinMap
Modifier and TypeMethodDescription<R extends LivingEntityRenderer<? extends Player,
? extends EntityModel<? extends Player>>>
RReturns a player skin renderer.<R extends LivingEntityRenderer<? extends Player,
? extends EntityModel<? extends Player>>>
RReturns a player skin renderer.Modifier and TypeMethodDescriptionFOVModifierEvent.getEntity()
RenderBlockOverlayEvent.getPlayer()
The player which the overlay will apply toModifierConstructorDescriptionFOVModifierEvent
(Player entity, float fov) 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) RenderBlockOverlayEvent
(Player player, PoseStack poseStack, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos) RenderPlayerEvent
(Player player, PlayerRenderer renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
Uses of Player in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic CriticalHitEvent
ForgeHooks.getCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) static boolean
ForgeHooks.isCorrectToolForDrops
(BlockState state, Player player) static boolean
ForgeHooks.onAnvilChange
(AnvilMenu container, ItemStack left, ItemStack right, Container outputSlot, String name, int baseCost, Player player) static float
ForgeHooks.onAnvilRepair
(Player player, ItemStack output, ItemStack left, ItemStack right) static boolean
ForgeHooks.onChangeGameMode
(Player player, GameType currentGameMode, GameType newGameMode) Deprecated, for removal: This API element is subject to removal in a future version.static GameType
ForgeHooks.onChangeGameType
(Player player, GameType currentGameType, GameType newGameType) 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) ForgeHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face) static boolean
ForgeHooks.onPickBlock
(HitResult target, Player player, Level level) Called when a player uses 'pick block', calls new Entity and Block hooks.static boolean
ForgeHooks.onPlayerAttackTarget
(Player player, Entity target) static ItemEntity
ForgeHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) ForgeHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) 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.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 ItemStack
IForgeBlock.getCloneItemStack
(BlockState state, HitResult target, BlockGetter level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeBlockState.getCloneItemStack
(HitResult target, BlockGetter level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault AABB
IForgeItem.getSweepHitBox
(ItemStack stack, Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default AABB
IForgeItemStack.getSweepHitBox
(Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default BlockState
IForgeBlock.getToolModifiedState
(BlockState state, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.default BlockState
IForgeBlockState.getToolModifiedState
(Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.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 void
IForgeItem.onArmorTick
(ItemStack stack, Level level, Player player) Called to tick armor in the armor slot.default void
IForgeItemStack.onArmorTick
(Level level, Player player) Called to tick armor in the armor slot.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 boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity. -
Uses of Player in net.minecraftforge.common.util
-
Uses of Player in net.minecraftforge.debug.block
Modifier and TypeMethodDescriptionBlockEntityOnLoadTest.TestBlock.use
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) BlockStateChangeTest.TestBlock.use
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) CustomRespawnTest.CustomRespawnBlock.use
(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult blockHitResult) FullPotsAccessorDemo.DioriteFlowerPotBlock.use
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of Player in net.minecraftforge.debug.client
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.use
(Level level, Player player, InteractionHand hand) -
Uses of Player in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionCustomShieldTest.CustomShieldItem.use
(Level world, Player player, InteractionHand hand) -
Uses of Player in net.minecraftforge.debug.misc
Modifier and TypeMethodDescriptionboolean
ContainerTypeTest.TestContainer.stillValid
(Player playerIn) -
Uses of Player in net.minecraftforge.debug.recipe.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.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final Player
AnvilUpdateEvent.player
final Player
TickEvent.PlayerTickEvent.player
Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.doPlayerHarvestCheck
(Player player, BlockState state, boolean success) static void
ForgeEventFactory.firePlayerChangedDimensionEvent
(Player player, ResourceKey<Level> fromDim, ResourceKey<Level> toDim) 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 boolean
ForgeEventFactory.fireSleepingTimeCheck
(Player player, Optional<BlockPos> sleepingLocation) 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 boolean
ForgeEventFactory.onAnimalTame
(Animal animal, Player tamer) static int
ForgeEventFactory.onApplyBonemeal
(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 InteractionResultHolder<ItemStack>
ForgeEventFactory.onBucketUse
(Player player, Level level, ItemStack stack, HitResult target) static int
ForgeEventFactory.onItemPickup
(ItemEntity entityItem, Player player) static ItemTooltipEvent
ForgeEventFactory.onItemTooltip
(ItemStack itemStack, Player entityPlayer, List<Component> list, TooltipFlag flags) static void
ForgeEventFactory.onPlayerBrewedPotion
(Player player, ItemStack stack) static void
ForgeEventFactory.onPlayerClone
(Player player, Player oldPlayer, boolean wasDeath) static void
ForgeEventFactory.onPlayerDestroyItem
(Player player, ItemStack stack, 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 updateWorldFlag) static void
ForgeEventFactory.onStartEntityTracking
(Entity entity, Player player) static void
ForgeEventFactory.onStopEntityTracking
(Entity entity, Player player) static BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
ForgeEventFactory.renderBlockOverlay
(Player player, PoseStack mat, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos pos) static boolean
ForgeEventFactory.renderFireOverlay
(Player player, PoseStack mat) static boolean
ForgeEventFactory.renderWaterOverlay
(Player player, PoseStack mat) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, int cost, Player player) 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 Player
LivingExperienceDropEvent.attackingPlayer
private final Player
BabyEntitySpawnEvent.causedByPlayer
private final Player
EnderManAngerEvent.player
private final Player
AnimalTameEvent.tamer
Modifier and TypeMethodDescriptionLivingExperienceDropEvent.getAttackingPlayer()
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, Player attackingPlayer, int originalExperience) -
Uses of Player in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final Player
PlayerEvent.entityPlayer
private final Player
PlayerEvent.Clone.original
Modifier and TypeMethodDescriptionPlayerEvent.Clone.getOriginal()
The old EntityPlayer that this new entity is a clone of.ItemTooltipEvent.getPlayer()
This event is fired with a null player during startup when populating search trees for tooltips.PlayerEvent.getPlayer()
ModifierConstructorDescriptionAdvancementEvent
(Player player, Advancement advancement) AnvilRepairEvent
(Player player, ItemStack left, ItemStack right, ItemStack output) ArrowLooseEvent
(Player player, ItemStack bow, Level world, int charge, boolean hasAmmo) ArrowNockEvent
(Player player, ItemStack item, InteractionHand hand, Level world, boolean hasAmmo) AttackEntityEvent
(Player player, Entity target) BonemealEvent
(Player player, Level world, BlockPos pos, BlockState block, ItemStack stack) BreakSpeed
(Player player, BlockState state, float original, 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, ItemStack current, Level world, HitResult target) HarvestCheck
(Player player, BlockState state, boolean success) ItemCraftedEvent
(Player player, ItemStack crafting, Container craftMatrix) ItemPickupEvent
(Player player, ItemEntity entPickedUp, ItemStack stack) ItemSmeltedEvent
(Player player, ItemStack crafting) ItemTooltipEvent
(ItemStack itemStack, Player entityPlayer, List<Component> list, TooltipFlag flags) This event is fired inItemStack.getTooltipLines(Player, TooltipFlag)
, which in turn is called from it's respective GUIContainer.LeftClickBlock
(Player player, BlockPos pos, Direction face) 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, InteractionHand hand) PlayerEvent
(Player player) PlayerFlyableFallEvent
(Player player, float distance, float multiplier) private
PlayerInteractEvent
(Player player, InteractionHand hand, BlockPos pos, Direction face) PlayerLoggedInEvent
(Player player) PlayerLoggedOutEvent
(Player player) PlayerRespawnEvent
(Player player, boolean endConquered) PlayerSetSpawnEvent
(Player player, ResourceKey<Level> spawnWorld, BlockPos newSpawn, boolean forced) PlayerSleepInBedEvent
(Player player, Optional<BlockPos> pos) PlayerWakeUpEvent
(Player player, boolean wakeImmediately, boolean updateWorld) 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) -
Uses of Player in net.minecraftforge.event.village
ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level world, Player player, Vec3 attemptedSpawnPos) -
Uses of Player in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final Player
BlockEvent.BlockToolInteractEvent.player
Deprecated, for removal: This API element is subject to removal in a future version.private final Player
BlockEvent.BreakEvent.player
Reference to the Player who broke the block.Modifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getPlayer()
Deprecated, for removal: This API element is subject to removal in a future version.BlockEvent.BlockToolModificationEvent.getPlayer()
BlockEvent.BreakEvent.getPlayer()
ModifierConstructorDescriptionBlockToolInteractEvent
(LevelAccessor world, BlockPos pos, BlockState originalState, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.BreakEvent
(Level world, BlockPos pos, BlockState state, Player player) -
Uses of Player in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionstatic boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, Level level, BlockPos pos, Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, IFluidHandler handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static FluidActionResult
FluidUtil.tryEmptyContainer
(ItemStack container, IFluidHandler fluidDestination, int maxAmount, 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, 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, Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.tryFillContainerAndStow
(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, 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
(Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(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.void
FluidAttributes.vaporize
(Player player, Level worldIn, BlockPos pos, FluidStack fluidStack) Called instead of placing the fluid block ifDimensionType.ultraWarm()
andFluidAttributes.doesVaporize(BlockAndTintGetter, BlockPos, FluidStack)
are true. -
Uses of Player in net.minecraftforge.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.minecraftforge.items.wrapper
IForgeBlock.getToolModifiedState(BlockState, UseOnContext, ToolAction, boolean)
instead