Uses of Class
net.minecraft.entity.player.PlayerEntity
Package
Description
Provides the cauldron behavior system,
which determines what happens when a player interacts with a cauldron.
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of PlayerEntity in net.minecraft.block
Modifier and TypeMethodDescriptionvoid
BeehiveBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
Block.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
IceBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
TallPlantBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
TurtleEggBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.float
AbstractBlock.AbstractBlockState.calcBlockBreakingDelta
(PlayerEntity player, BlockView world, BlockPos pos) protected float
AbstractBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) protected float
BambooBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) protected float
BambooShootBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) boolean
BarrierBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
FluidFillable.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpPlantBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
SeagrassBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
SlabBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
TallSeagrassBlock.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) default boolean
Waterloggable.canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) static void
AbstractCandleBlock.extinguish
(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) private void
TrapdoorBlock.flip
(BlockState state, World world, BlockPos pos, @Nullable PlayerEntity player) private boolean
AbstractSignBlock.isOtherPlayerEditing
(PlayerEntity player, SignBlockEntity blockEntity) private boolean
AbstractSignBlock.isTextLiteralOrEmpty
(PlayerEntity player, SignBlockEntity blockEntity, boolean front) void
AbstractBlock.AbstractBlockState.onBlockBreakStart
(World world, BlockPos pos, PlayerEntity player) protected void
AbstractBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected void
DragonEggBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected void
NoteBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected void
RedstoneOreBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).AbstractFireBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.BedBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.BeehiveBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.Block.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.DecoratedPotBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.DoorBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.PistonHeadBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.ShulkerBoxBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.TallPlantBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.TntBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.TripwireBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.protected static void
TallPlantBlock.onBreakInCreative
(World world, BlockPos pos, BlockState state, PlayerEntity player) Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.AbstractBlock.AbstractBlockState.onUse
(World world, PlayerEntity player, BlockHitResult hit) protected ActionResult
AbstractBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
AbstractFurnaceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
AbstractSignBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
AnvilBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
BarrelBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
BeaconBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
BedBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
BellBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
BrewingStandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ButtonBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CandleCakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CartographyTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CaveVinesBodyBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CaveVinesHeadBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ChiseledBookshelfBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CommandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ComparatorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ComposterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CrafterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
CraftingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
DaylightDetectorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
DecoratedPotBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
DispenserBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
DoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
DragonEggBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
EnchantingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
EnderChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
FenceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
FenceGateBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
FletchingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
FlowerPotBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
GrindstoneBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
HopperBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
JigsawBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
JukeboxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
LecternBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
LeverBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
LightBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
LoomBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
NoteBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
PistonExtensionBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
RedstoneWireBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
RepeaterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
RespawnAnchorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
ShulkerBoxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
SmithingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
StonecutterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
StructureBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
SweetBerryBushBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResult
TrapdoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) AbstractBlock.AbstractBlockState.onUseWithItem
(ItemStack stack, World world, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
AbstractBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
AbstractCauldronBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
AbstractSignBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
BeehiveBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
CakeBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
CampfireBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
CandleBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
CandleCakeBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
ChiseledBookshelfBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
ComposterBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
DecoratedPotBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
FenceBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
FlowerPotBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
HangingSignBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
LecternBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
NoteBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
PumpkinBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
RedstoneOreBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
RespawnAnchorBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
SweetBerryBushBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
TntBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) VaultBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResult
WallHangingSignBlock.onUseWithItem
(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) void
AbstractSignBlock.openEditScreen
(PlayerEntity player, SignBlockEntity blockEntity, boolean front) protected abstract void
AbstractFurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
BlastFurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
FurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) private void
LecternBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
SmokerBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
ButtonBlock.playClickSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered) protected void
TrapdoorBlock.playToggleSound
(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open) boolean
BellBlock.ring
(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean checkHitPos) private boolean
HangingSignBlock.shouldTryAttaching
(PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private boolean
WallHangingSignBlock.shouldTryAttaching
(BlockState state, PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) protected void
AbstractFireBlock.spawnBreakParticles
(World world, PlayerEntity player, BlockPos pos, BlockState state) protected void
Block.spawnBreakParticles
(World world, PlayerEntity player, BlockPos pos, BlockState state) void
BeehiveBlock.takeHoney
(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) private static void
ChiseledBookshelfBlock.tryAddBook
(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) BarrierBlock.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) BubbleColumnBlock.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) default ItemStack
Waterloggable.tryDrainFluid
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) protected static ActionResult
CakeBlock.tryEat
(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) private static void
ChiseledBookshelfBlock.tryRemoveBook
(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, int slot) -
Uses of PlayerEntity in net.minecraft.block.cauldron
Modifier and TypeMethodDescriptionstatic ItemActionResult
CauldronBehavior.emptyCauldron
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> fullPredicate, SoundEvent soundEvent) Empties a cauldron if it's full.static ItemActionResult
CauldronBehavior.fillCauldron
(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) Fills a cauldron from a bucket stack.CauldronBehavior.interact
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) Called when a player interacts with a cauldron. -
Uses of PlayerEntity in net.minecraft.block.entity
Modifier and TypeMethodDescriptionprivate List
<PlayerEntity> ViewerCountManager.getViewingPlayers
(World world, BlockPos pos) Modifier and TypeMethodDescriptionvoid
BeehiveBlockEntity.angerBees
(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) boolean
BrushableBlockEntity.brush
(long worldTime, PlayerEntity player, Direction hitDirection) boolean
ChiseledBookshelfBlockEntity.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
CrafterBlockEntity.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
EnderChestBlockEntity.canPlayerUse
(PlayerEntity player) boolean
LockableContainerBlockEntity.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
SignBlockEntity.canRunCommandClickEvent
(boolean front, PlayerEntity player) boolean
LockableContainerBlockEntity.checkUnlocked
(PlayerEntity player) static boolean
LockableContainerBlockEntity.checkUnlocked
(PlayerEntity player, ContainerLock lock, Text containerName) boolean
LootableContainerBlockEntity.checkUnlocked
(PlayerEntity player) void
ViewerCountManager.closeContainer
(PlayerEntity player, World world, BlockPos pos, BlockState state) private static ServerCommandSource
SignBlockEntity.createCommandSource
(@Nullable PlayerEntity player, World world, BlockPos pos) BeaconBlockEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) LecternBlockEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) LockableContainerBlockEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) LootableContainerBlockEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) private void
BrushableBlockEntity.finishBrushing
(PlayerEntity player) void
BrushableBlockEntity.generateItem
(PlayerEntity player) VaultBlockEntity.Server.generateLoot
(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) private ServerCommandSource
LecternBlockEntity.getCommandSource
(@Nullable PlayerEntity player) private SignText
SignBlockEntity.getTextWithMessages
(PlayerEntity player, List<FilteredMessage> messages, SignText text) boolean
SignText.hasRunCommandClickEvent
(PlayerEntity player) boolean
SignText.hasText
(PlayerEntity player) boolean
SignBlockEntity.isPlayerFacingFront
(PlayerEntity player) protected abstract boolean
ViewerCountManager.isPlayerViewing
(PlayerEntity player) Determines whether the given player is currently viewing this container.private static boolean
VaultBlockEntity.Client.isPlayerWithinConnectedParticlesRange
(BlockPos pos, VaultSharedData sharedData, PlayerEntity player) void
BarrelBlockEntity.onClose
(PlayerEntity player) Called when the inventory is closed.void
ChestBlockEntity.onClose
(PlayerEntity player) Called when the inventory is closed.void
EnderChestBlockEntity.onClose
(PlayerEntity player) void
ShulkerBoxBlockEntity.onClose
(PlayerEntity player) Called when the inventory is closed.void
BarrelBlockEntity.onOpen
(PlayerEntity player) Called when the inventory is opened.void
ChestBlockEntity.onOpen
(PlayerEntity player) Called when the inventory is opened.void
EnderChestBlockEntity.onOpen
(PlayerEntity player) void
ShulkerBoxBlockEntity.onOpen
(PlayerEntity player) Called when the inventory is opened.void
ViewerCountManager.openContainer
(PlayerEntity player, World world, BlockPos pos, BlockState state) boolean
StructureBlockBlockEntity.openScreen
(PlayerEntity player) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack book, @Nullable PlayerEntity player) boolean
SignBlockEntity.runCommandClickEvent
(PlayerEntity player, World world, BlockPos pos, boolean front) void
LecternBlockEntity.setBook
(ItemStack book, @Nullable PlayerEntity player) private static void
VaultBlockEntity.Client.spawnConnectedParticlesFor
(World world, Vec3d pos, PlayerEntity player) private void
BrushableBlockEntity.spawnItem
(PlayerEntity player) void
SignBlockEntity.tryChangeText
(PlayerEntity player, boolean front, List<FilteredMessage> messages) static void
VaultBlockEntity.Server.tryUnlock
(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) void
AbstractFurnaceBlockEntity.unlockLastRecipe
(PlayerEntity player, List<ItemStack> ingredients) -
Uses of PlayerEntity in net.minecraft.block.enums
Modifier and TypeMethodDescriptionTrialSpawnerState.getRandomEntity
(List<PlayerEntity> players, Set<UUID> entityUuids, TrialSpawnerLogic logic, BlockPos pos, ServerWorld world) -
Uses of PlayerEntity in net.minecraft.block.spawner
Modifier and TypeMethodDescriptionList
<? extends PlayerEntity> EntityDetector.Selector.getPlayers
(ServerWorld world, Predicate<? super PlayerEntity> predicate) Modifier and TypeMethodDescriptionprivate void
TrialSpawnerData.applyTrialOmen
(PlayerEntity player, StatusEffectInstance effectInstance) static EntityDetector.Selector
EntityDetector.Selector.ofPlayer
(PlayerEntity player) Modifier and TypeMethodDescriptionList
<? extends PlayerEntity> EntityDetector.Selector.getPlayers
(ServerWorld world, Predicate<? super PlayerEntity> predicate) static EntityDetector.Selector
EntityDetector.Selector.ofPlayers
(List<PlayerEntity> players) -
Uses of PlayerEntity in net.minecraft.block.vault
Modifier and TypeMethodDescription(package private) boolean
VaultServerData.hasRewardedPlayer
(PlayerEntity player) void
VaultServerData.markPlayerAsRewarded
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.gui.hud
Modifier and TypeMethodDescription(package private) static InGameHud.HeartType
InGameHud.HeartType.fromPlayerState
(PlayerEntity player) private static @Nullable BlockState
InGameOverlayRenderer.getInWallBlockState
(PlayerEntity player) private static void
InGameHud.renderArmor
(DrawContext context, PlayerEntity player, int int2, int int3, int int4, int x) private void
InGameHud.renderFood
(DrawContext context, PlayerEntity player, int top, int left) private void
InGameHud.renderHealthBar
(DrawContext context, PlayerEntity player, int x, int y, int lines, int regeneratingHeartIndex, float maxHealth, int lastHealth, int health, int absorption, boolean blinking) private void
InGameHud.renderHotbarItem
(DrawContext context, int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int seed) -
Uses of PlayerEntity in net.minecraft.client.gui.screen.ingame
Modifier and TypeFieldDescriptionprivate final PlayerEntity
AnvilScreen.player
private final PlayerEntity
BookEditScreen.player
private final PlayerEntity
CrafterScreen.player
Modifier and TypeMethodDescriptionboolean
CreativeInventoryScreen.CreativeSlot.canTakeItems
(PlayerEntity playerEntity) boolean
CreativeInventoryScreen.LockableSlot.canTakeItems
(PlayerEntity playerEntity) boolean
CreativeInventoryScreen.CreativeScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.void
CreativeInventoryScreen.CreativeSlot.onTakeItem
(PlayerEntity player, ItemStack stack) CreativeInventoryScreen.CreativeScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.private boolean
CreativeInventoryScreen.shouldShowOperatorTab
(PlayerEntity player) ModifierConstructorDescriptionBookEditScreen
(PlayerEntity player, ItemStack itemStack, Hand hand) CreativeInventoryScreen
(PlayerEntity player, FeatureSet enabledFeatures, boolean operatorTabEnabled) CreativeScreenHandler
(PlayerEntity player) InventoryScreen
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.network
Modifier and TypeClassDescriptionclass
class
Represents the client's own player entity.class
Represents a player entity that is present on the client but is not the client's own player.Modifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.attackEntity
(PlayerEntity player, Entity target) void
ClientPlayerInteractionManager.clickSlot
(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player) void
ClientPlayerInteractionManager.copyAbilities
(PlayerEntity player) private static ItemStack
ClientPlayNetworkHandler.getActiveTotemOfUndying
(PlayerEntity player) ClientPlayerInteractionManager.interactEntity
(PlayerEntity player, Entity entity, Hand hand) ClientPlayerInteractionManager.interactEntityAtLocation
(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) ClientPlayerInteractionManager.interactItem
(PlayerEntity player, Hand hand) void
ClientPlayerInteractionManager.stopUsingItem
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.render.entity
Modifier and TypeFieldDescriptionprivate Map
<SkinTextures.Model, EntityRenderer<? extends PlayerEntity>> EntityRenderDispatcher.modelRenderers
Modifier and TypeMethodDescriptionstatic Map
<SkinTextures.Model, EntityRenderer<? extends PlayerEntity>> EntityRenderers.reloadPlayerRenderers
(EntityRendererFactory.Context ctx) Modifier and TypeMethodDescriptionprivate Vec3d
FishingBobberEntityRenderer.getHandPos
(PlayerEntity player, float float2, float tickDelta) -
Uses of PlayerEntity in net.minecraft.client.render.entity.feature
Modifier and TypeClassDescriptionclass
PlayerHeldItemFeatureRenderer<T extends PlayerEntity,
M extends EntityModel<T> & ModelWithArms & ModelWithHead> class
ShoulderParrotFeatureRenderer<T extends PlayerEntity>
-
Uses of PlayerEntity in net.minecraft.client.sound
ModifierConstructorDescriptionMinecartInsideSoundInstance
(PlayerEntity player, AbstractMinecartEntity minecart, boolean underwater) -
Uses of PlayerEntity in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ClientWorld.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ClientWorld.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.component.type
Modifier and TypeMethodDescriptionint
BundleContentsComponent.Builder.add
(Slot slot, PlayerEntity player) WrittenBookContentComponent.resolve
(ServerCommandSource source, @Nullable PlayerEntity player) private static Optional
<RawFilteredPair<Text>> WrittenBookContentComponent.resolve
(ServerCommandSource source, @Nullable PlayerEntity player, RawFilteredPair<Text> page) -
Uses of PlayerEntity in net.minecraft.entity
Modifier and TypeFieldDescriptionprotected @Nullable PlayerEntity
LivingEntity.attackingPlayer
private PlayerEntity
ExperienceOrbEntity.target
Modifier and TypeMethodDescriptionEntityType.copier
(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) EntityType.copier
(ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) protected Vec3d
LivingEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected float
LivingEntity.getSaddledSpeed
(PlayerEntity controllingPlayer) Entity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.Entity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.boolean
Entity.isInvisibleTo
(PlayerEntity player) Returns whether the entity is invisible toplayer
.static void
EntityType.loadFromEntityNbt
(World world, @Nullable PlayerEntity player, @Nullable Entity entity, NbtComponent nbt) EntityType.nbtCopier
(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) void
Entity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.void
ExperienceOrbEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.void
ItemEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.void
RideableInventory.openInventory
(PlayerEntity player) private int
ExperienceOrbEntity.repairPlayerGears
(PlayerEntity player, int amount) Repairs a player's gears using the experience recursively, until the experience is all used or all gears are repaired.void
LivingEntity.setAttacking
(@Nullable PlayerEntity attacking) EntityType.spawnFromItemStack
(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) protected void
LivingEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) private void
LivingEntity.travelControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) static <T extends LivingEntity & Bucketable>
Optional<ActionResult> Bucketable.tryBucket
(PlayerEntity player, Hand hand, T entity) -
Uses of PlayerEntity in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<PlayerEntity> MemoryModuleType.NEAREST_PLAYER_HOLDING_WANTED_ITEM
static final MemoryModuleType
<List<PlayerEntity>> MemoryModuleType.NEAREST_PLAYERS
static final MemoryModuleType
<PlayerEntity> MemoryModuleType.NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLD
static final MemoryModuleType
<PlayerEntity> MemoryModuleType.NEAREST_VISIBLE_PLAYER
static final MemoryModuleType
<PlayerEntity> MemoryModuleType.NEAREST_VISIBLE_TARGETABLE_PLAYER
static final MemoryModuleType
<PlayerEntity> MemoryModuleType.TEMPTING_PLAYER
-
Uses of PlayerEntity in net.minecraft.entity.ai.brain.sensor
-
Uses of PlayerEntity in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate Optional
<PlayerEntity> GiveGiftsToHeroTask.getNearestPlayerIfHero
(VillagerEntity villager) private Optional
<PlayerEntity> TemptTask.getTemptingPlayer
(PathAwareEntity entity) Modifier and TypeMethodDescriptionprivate boolean
GiveGiftsToHeroTask.isCloseEnough
(VillagerEntity villager, PlayerEntity player) private boolean
GiveGiftsToHeroTask.isHero
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate @Nullable PlayerEntity
WolfBegGoal.begFrom
protected @Nullable PlayerEntity
TemptGoal.closestPlayer
private @Nullable PlayerEntity
ChaseBoatGoal.passenger
-
Uses of PlayerEntity in net.minecraft.entity.boss.dragon.phase
Modifier and TypeMethodDescriptionvoid
AbstractPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
HoldingPatternPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
Phase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) private void
HoldingPatternPhase.strafePlayer
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.damage
-
Uses of PlayerEntity in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprivate boolean
ArmorStandEntity.equip
(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) InteractionEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ItemFrameEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.LeashKnotEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ArmorStandEntity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position. -
Uses of PlayerEntity in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate @Nullable PlayerEntity
EndermanEntity.TeleportTowardsPlayerGoal.targetPlayer
Modifier and TypeFieldDescriptionprivate DisableableFollowTargetGoal
<PlayerEntity> WitchEntity.attackPlayerGoal
Modifier and TypeMethodDescriptionstatic Optional
<PlayerEntity> PiglinBrain.getNearestDetectedPlayer
(AbstractPiglinEntity piglin) Modifier and TypeMethodDescriptionboolean
AmbientEntity.canBeLeashedBy
(PlayerEntity player) boolean
HoglinEntity.canBeLeashedBy
(PlayerEntity player) boolean
MobEntity.canBeLeashedBy
(PlayerEntity player) boolean
WaterCreatureEntity.canBeLeashedBy
(PlayerEntity player) boolean
ZoglinEntity.canBeLeashedBy
(PlayerEntity player) private static void
PiglinBrain.dropBarteredItem
(PiglinEntity piglin, PlayerEntity player, List<ItemStack> items) default void
Angerable.forgive
(PlayerEntity player) final ActionResult
MobEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResult
BoggedEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
CreeperEntity.interactMob
(PlayerEntity player, Hand hand) HoglinEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
MobEntity.interactMob
(PlayerEntity player, Hand hand) PiglinEntity.interactMob
(PlayerEntity player, Hand hand) SkeletonHorseEntity.interactMob
(PlayerEntity player, Hand hand) ZombieHorseEntity.interactMob
(PlayerEntity player, Hand hand) ZombieVillagerEntity.interactMob
(PlayerEntity player, Hand hand) private ActionResult
MobEntity.interactWithItem
(PlayerEntity player, Hand hand) boolean
HostileEntity.isAngryAt
(PlayerEntity player) boolean
ZombifiedPiglinEntity.isAngryAt
(PlayerEntity player) (package private) boolean
EndermanEntity.isPlayerStaring
(PlayerEntity player) static void
PiglinBrain.onGuardedBlockInteracted
(PlayerEntity player, boolean blockOpen) void
SlimeEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.protected void
MobEntity.onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) static ActionResult
PiglinBrain.playerInteract
(PiglinEntity piglin, PlayerEntity player, Hand hand) void
Angerable.setAttacking
(@Nullable PlayerEntity attacking) -
Uses of PlayerEntity in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate @Nullable PlayerEntity
DolphinEntity.SwimWithPlayerGoal.closestPlayer
private @Nullable PlayerEntity
MerchantEntity.customer
private @Nullable PlayerEntity
VillagerEntity.lastCustomer
private @Nullable PlayerEntity
CatEntity.SleepWithOwnerGoal.owner
private @Nullable PlayerEntity
CatEntity.TemptGoal.player
Modifier and TypeFieldDescriptionprivate @Nullable CatEntity.CatFleeGoal
<PlayerEntity> CatEntity.fleeGoal
private @Nullable OcelotEntity.FleeGoal
<PlayerEntity> OcelotEntity.fleeGoal
Modifier and TypeMethodDescriptionprivate void
AbstractDonkeyEntity.addChest
(PlayerEntity player, ItemStack chest) private void
VillagerEntity.beginTradeWith
(PlayerEntity customer) boolean
AbstractHorseEntity.bondWithPlayer
(PlayerEntity player) void
AxolotlEntity.buffPlayer
(PlayerEntity player) boolean
AxolotlEntity.canBeLeashedBy
(PlayerEntity player) boolean
DolphinEntity.canBeLeashedBy
(PlayerEntity player) boolean
MerchantEntity.canBeLeashedBy
(PlayerEntity player) boolean
PandaEntity.canBeLeashedBy
(PlayerEntity player) boolean
SquidEntity.canBeLeashedBy
(PlayerEntity player) boolean
TameableEntity.canBeLeashedBy
(PlayerEntity player) boolean
TurtleEntity.canBeLeashedBy
(PlayerEntity player) boolean
WolfEntity.canBeLeashedBy
(PlayerEntity player) private void
TadpoleEntity.decrementItem
(PlayerEntity player, ItemStack stack) private void
AllayEntity.decrementStackUnlessInCreative
(PlayerEntity player, ItemStack stack) protected void
AnimalEntity.eat
(PlayerEntity player, Hand hand, ItemStack stack) protected void
AxolotlEntity.eat
(PlayerEntity player, Hand hand, ItemStack stack) protected void
CatEntity.eat
(PlayerEntity player, Hand hand, ItemStack stack) protected void
FoxEntity.eat
(PlayerEntity player, Hand hand, ItemStack stack) private void
TadpoleEntity.eatSlimeBall
(PlayerEntity player, ItemStack stack) void
AbstractHorseEntity.equipHorseArmor
(PlayerEntity player, ItemStack stack) protected Vec3d
AbstractHorseEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
CamelEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
PigEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
StriderEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) int
VillagerEntity.getReputation
(PlayerEntity player) protected float
AbstractHorseEntity.getSaddledSpeed
(PlayerEntity controllingPlayer) protected float
CamelEntity.getSaddledSpeed
(PlayerEntity controllingPlayer) protected float
PigEntity.getSaddledSpeed
(PlayerEntity controllingPlayer) protected float
StriderEntity.getSaddledSpeed
(PlayerEntity controllingPlayer) AbstractHorseEntity.interactHorse
(PlayerEntity player, ItemStack stack) AbstractDonkeyEntity.interactMob
(PlayerEntity player, Hand hand) AbstractHorseEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
AllayEntity.interactMob
(PlayerEntity player, Hand hand) AnimalEntity.interactMob
(PlayerEntity player, Hand hand) ArmadilloEntity.interactMob
(PlayerEntity player, Hand hand) AxolotlEntity.interactMob
(PlayerEntity player, Hand hand) CamelEntity.interactMob
(PlayerEntity player, Hand hand) CatEntity.interactMob
(PlayerEntity player, Hand hand) CowEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
DolphinEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
FishEntity.interactMob
(PlayerEntity player, Hand hand) GoatEntity.interactMob
(PlayerEntity player, Hand hand) HorseEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
IronGolemEntity.interactMob
(PlayerEntity player, Hand hand) MooshroomEntity.interactMob
(PlayerEntity player, Hand hand) OcelotEntity.interactMob
(PlayerEntity player, Hand hand) PandaEntity.interactMob
(PlayerEntity player, Hand hand) ParrotEntity.interactMob
(PlayerEntity player, Hand hand) PigEntity.interactMob
(PlayerEntity player, Hand hand) SheepEntity.interactMob
(PlayerEntity player, Hand hand) SnifferEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
SnowGolemEntity.interactMob
(PlayerEntity player, Hand hand) StriderEntity.interactMob
(PlayerEntity player, Hand hand) TadpoleEntity.interactMob
(PlayerEntity player, Hand hand) VillagerEntity.interactMob
(PlayerEntity player, Hand hand) WanderingTraderEntity.interactMob
(PlayerEntity player, Hand hand) WolfEntity.interactMob
(PlayerEntity player, Hand hand) void
AnimalEntity.lovePlayer
(@Nullable PlayerEntity player) void
ArmadilloEntity.lovePlayer
(@Nullable PlayerEntity player) void
PufferfishEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.protected void
FoxEntity.onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) void
AbstractHorseEntity.openInventory
(PlayerEntity player) void
CamelEntity.openInventory
(PlayerEntity player) private void
VillagerEntity.prepareOffersFor
(PlayerEntity player) protected void
AbstractHorseEntity.putPlayerOnBack
(PlayerEntity player) protected void
TraderLlamaEntity.putPlayerOnBack
(PlayerEntity player) protected boolean
AbstractHorseEntity.receiveFood
(PlayerEntity player, ItemStack item) protected boolean
CamelEntity.receiveFood
(PlayerEntity player, ItemStack item) protected boolean
LlamaEntity.receiveFood
(PlayerEntity player, ItemStack item) void
MerchantEntity.setCustomer
(@Nullable PlayerEntity customer) void
VillagerEntity.setCustomer
(@Nullable PlayerEntity customer) void
TameableEntity.setOwner
(PlayerEntity player) protected void
AbstractHorseEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
CamelEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
PigEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
StriderEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) private void
CatEntity.tryTame
(PlayerEntity player) private void
WolfEntity.tryTame
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
PlayerEntity.shouldDamagePlayer
(PlayerEntity player) void
HungerManager.update
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionvoid
PersistentProjectileEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.void
TridentEntity.onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.private boolean
FishingBobberEntity.removeIfInvalid
(PlayerEntity player) protected boolean
PersistentProjectileEntity.tryPickup
(PlayerEntity player) protected boolean
TridentEntity.tryPickup
(PlayerEntity player) ModifierConstructorDescriptionFishingBobberEntity
(PlayerEntity thrower, World world, int luckOfTheSeaLevel, int lureLevel) WindChargeEntity
(PlayerEntity player, World world, double x, double y, double z) -
Uses of PlayerEntity in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptiondefault boolean
VehicleInventory.canPlayerAccess
(PlayerEntity player) boolean
ChestBoatEntity.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
StorageMinecartEntity.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.static AbstractMinecartEntity
AbstractMinecartEntity.create
(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable PlayerEntity player) ChestBoatEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) StorageMinecartEntity.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) default void
VehicleInventory.generateInventoryLoot
(@Nullable PlayerEntity player) void
ChestBoatEntity.generateLoot
(@Nullable PlayerEntity player) BoatEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestBoatEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestMinecartEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.CommandBlockMinecartEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.FurnaceMinecartEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.MinecartEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.StorageMinecartEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.void
ChestBoatEntity.onClose
(PlayerEntity player) Called when the inventory is closed.void
ChestMinecartEntity.onClose
(PlayerEntity player) Called when the inventory is closed.default ActionResult
VehicleInventory.open
(PlayerEntity player) void
ChestBoatEntity.openInventory
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.inventory
Modifier and TypeMethodDescriptionboolean
CraftingInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
CraftingResultInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
DoubleInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
EnderChestInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.static boolean
Inventory.canPlayerUse
(BlockEntity blockEntity, PlayerEntity player) Returns whetherplayer
can use thisblockEntity
.static boolean
Inventory.canPlayerUse
(BlockEntity blockEntity, PlayerEntity player, float range) Returns whetherplayer
can use thisblockEntity
.boolean
Inventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.boolean
SimpleInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.default boolean
SingleStackInventory.SingleStackBlockEntityInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.default void
LootableInventory.generateLoot
(@Nullable PlayerEntity player) Replaces the contents of this inventory with the generated loot, if it exists.void
DoubleInventory.onClose
(PlayerEntity player) Called when the inventory is closed.void
EnderChestInventory.onClose
(PlayerEntity player) Called when the inventory is closed.default void
Inventory.onClose
(PlayerEntity player) Called when the inventory is closed.void
DoubleInventory.onOpen
(PlayerEntity player) Called when the inventory is opened.void
EnderChestInventory.onOpen
(PlayerEntity player) Called when the inventory is opened.default void
Inventory.onOpen
(PlayerEntity player) Called when the inventory is opened. -
Uses of PlayerEntity in net.minecraft.item
Modifier and TypeMethodDescriptionprivate void
ItemStack.appendAttributeModifiersTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player) private void
ItemStack.appendAttributeModifierTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) static ActionResult
LeadItem.attachHeldMobsToBlock
(PlayerEntity player, World world, BlockPos pos) boolean
DebugStickItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
Item.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
MaceItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
SwordItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
TridentItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.protected boolean
DecorationItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected boolean
ItemFrameItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) boolean
HoneycombItem.canUseOnSignText
(SignText signText, PlayerEntity player) default boolean
SignChangingItem.canUseOnSignText
(SignText signText, PlayerEntity player) static TypedActionResult
<ItemStack> ItemUsage.consumeHeldItem
(World world, PlayerEntity player, Hand hand) Consumes the item thatplayer
holds.private BoatEntity
BoatItem.createEntity
(World world, HitResult hitResult, ItemStack stack, PlayerEntity player) FilledMapItem.createSyncPacket
(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.NetworkSyncedItem.createSyncPacket
(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.private static boolean
BundleItem.dropAllBundledItems
(ItemStack stack, PlayerEntity player) default TypedActionResult
<ItemStack> Equipment.equipAndSwap
(Item item, World world, PlayerEntity user, Hand hand) static ItemStack
ItemUsage.exchangeStack
(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) Returns the stack to put in the player's hand after exchanging stacks.static ItemStack
ItemUsage.exchangeStack
(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) Returns the stack to put in the player's hand after exchanging stacks.protected ItemStack
GlassBottleItem.fill
(ItemStack stack, PlayerEntity player, ItemStack outputStack) float
Item.getBonusAttackDamage
(PlayerEntity player, float baseAttackDamage) float
MaceItem.getBonusAttackDamage
(PlayerEntity player, float baseAttackDamage) static ItemStack
BucketItem.getEmptiedStack
(ItemStack stack, PlayerEntity player) private HitResult
BrushItem.getHitResult
(PlayerEntity user) private static double
MaceItem.getKnockback
(PlayerEntity player, LivingEntity attacked, Vec3d distance) private static Predicate
<LivingEntity> MaceItem.getKnockbackPredicate
(PlayerEntity player, Entity attacked) ItemStack.getTooltip
(Item.TooltipContext context, @Nullable PlayerEntity player, TooltipType type) private static void
MaceItem.knockbackNearbyEntities
(World world, PlayerEntity player, Entity attacked) boolean
BundleItem.onClicked
(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslot
gets clicked by the cursor holdingotherStack
.boolean
Item.onClicked
(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslot
gets clicked by the cursor holdingotherStack
.boolean
ItemStack.onClicked
(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) void
Item.onCraftByPlayer
(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.void
ItemStack.onCraftByPlayer
(World world, PlayerEntity player, int amount) void
void
EntityBucketItem.onEmptied
(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) default void
FluidModificationItem.onEmptied
(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) boolean
BundleItem.onStackClicked
(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot
.boolean
Item.onStackClicked
(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot
.boolean
ItemStack.onStackClicked
(Slot slot, ClickType clickType, PlayerEntity player) boolean
BucketItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
FluidModificationItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
PowderSnowBucketItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) protected void
BucketItem.playEmptyingSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) protected void
EntityBucketItem.playEmptyingSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) private static void
GoatHornItem.playSound
(World world, PlayerEntity player, Instrument instrument) void
ItemStack.postHit
(LivingEntity target, PlayerEntity player) void
ItemStack.postMine
(World world, BlockState state, BlockPos pos, PlayerEntity miner) protected boolean
BlockItem.postPlacement
(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected boolean
SignItem.postPlacement
(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected static BlockHitResult
Item.raycast
(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling) static boolean
WrittenBookItem.resolve
(ItemStack book, ServerCommandSource commandSource, @Nullable PlayerEntity player) private static void
DebugStickItem.sendMessage
(PlayerEntity player, Text message) static boolean
MaceItem.shouldDealAdditionalDamage
(PlayerEntity attacker) SpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) private Optional
<BlockState> AxeItem.tryStrip
(World world, BlockPos pos, @Nullable PlayerEntity player, BlockState state) ArmorItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BoatItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BowItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BucketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BundleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.CrossbowItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.private boolean
DebugStickItem.use
(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack) EggItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ElytraItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EmptyMapItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderEyeItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderPearlItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ExperienceBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FireworkRocketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FishingRodItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GlassBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GoatHornItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.HoneyBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Item.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ItemStack.use
(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.LingeringPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.MilkBucketItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OminousBottleItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OnAStickItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PlaceableOnWaterItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ShieldItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SnowballItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpawnEggItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SplashPotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpyglassItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ThrowablePotionItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.TridentItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WindChargeItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WritableBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WrittenBookItem.use
(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.DyeItem.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.ItemStack.useOnEntity
(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.SaddleItem.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.boolean
DyeItem.useOnSign
(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) boolean
GlowInkSacItem.useOnSign
(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) boolean
HoneycombItem.useOnSign
(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) boolean
InkSacItem.useOnSign
(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) boolean
SignChangingItem.useOnSign
(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) static boolean
BlockItem.writeNbtToBlockEntity
(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack) ModifierConstructorDescriptionItemPlacementContext
(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult) protected
ItemPlacementContext
(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) ItemUsageContext
(PlayerEntity player, Hand hand, BlockHitResult hit) protected
ItemUsageContext
(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) -
Uses of PlayerEntity in net.minecraft.item.map
Modifier and TypeFieldDescriptionprivate final Map
<PlayerEntity, MapState.PlayerUpdateTracker> MapState.updateTrackersByPlayer
Modifier and TypeMethodDescriptionMapState.getPlayerMarkerPacket
(MapIdComponent mapId, PlayerEntity player) MapState.getPlayerSyncData
(PlayerEntity player) void
MapState.update
(PlayerEntity player, ItemStack stack) -
Uses of PlayerEntity in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter
<PlayerEntity> LootContextParameters.LAST_DAMAGE_PLAYER
-
Uses of PlayerEntity in net.minecraft.recipe
Modifier and TypeMethodDescriptiondefault void
RecipeUnlocker.unlockLastRecipe
(PlayerEntity player, List<ItemStack> ingredients) -
Uses of PlayerEntity in net.minecraft.screen
Modifier and TypeFieldDescriptionprivate final PlayerEntity
PlayerScreenHandler.owner
private final PlayerEntity
CrafterScreenHandler.player
private final PlayerEntity
CraftingScreenHandler.player
protected final PlayerEntity
ForgingScreenHandler.player
Modifier and TypeMethodDescriptionprotected boolean
AnvilScreenHandler.canTakeOutput
(PlayerEntity player, boolean present) protected abstract boolean
ForgingScreenHandler.canTakeOutput
(PlayerEntity player, boolean present) protected boolean
SmithingScreenHandler.canTakeOutput
(PlayerEntity player, boolean present) boolean
AbstractFurnaceScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
BeaconScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
BrewingStandScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
CartographyTableScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
CrafterScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
CraftingScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
EnchantmentScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
ForgingScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
Generic3x3ContainerScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
GenericContainerScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
GrindstoneScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
HopperScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
HorseScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
LecternScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
LoomScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
MerchantScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
PlayerScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.abstract boolean
ScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.protected static boolean
ScreenHandler.canUse
(ScreenHandlerContext context, PlayerEntity player, Block block) Returns whether the screen handler can be used.boolean
ShulkerBoxScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.boolean
StonecutterScreenHandler.canUse
(PlayerEntity player) Returns whether the screen handler can be used.ScreenHandlerFactory.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) SimpleNamedScreenHandlerFactory.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) protected void
ScreenHandler.dropInventory
(PlayerEntity player, Inventory inventory) private boolean
ScreenHandler.handleSlotClick
(PlayerEntity player, ClickType clickType, Slot slot, ItemStack stack, ItemStack cursorStack) private void
ScreenHandler.internalOnSlotClick
(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) The actual logic that handles a slot click.boolean
EnchantmentScreenHandler.onButtonClick
(PlayerEntity player, int id) Called whenplayer
clicks a button withid
.boolean
LecternScreenHandler.onButtonClick
(PlayerEntity player, int id) Called whenplayer
clicks a button withid
.boolean
LoomScreenHandler.onButtonClick
(PlayerEntity player, int id) Called whenplayer
clicks a button withid
.boolean
ScreenHandler.onButtonClick
(PlayerEntity player, int id) Called whenplayer
clicks a button withid
.boolean
StonecutterScreenHandler.onButtonClick
(PlayerEntity player, int id) Called whenplayer
clicks a button withid
.void
BeaconScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
CartographyTableScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
CraftingScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
EnchantmentScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
ForgingScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
Generic3x3ContainerScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
GenericContainerScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
GrindstoneScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
HopperScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
HorseScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
LoomScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
MerchantScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
PlayerScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
ScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
ShulkerBoxScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.void
StonecutterScreenHandler.onClosed
(PlayerEntity player) Called when this screen handler is closed.(package private) static void
PlayerScreenHandler.onEquipStack
(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) void
ScreenHandler.onSlotClick
(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) Performs a slot click.void
BrewingStandScreenHandler.PotionSlot.onTakeItem
(PlayerEntity player, ItemStack stack) protected void
AnvilScreenHandler.onTakeOutput
(PlayerEntity player, ItemStack stack) protected abstract void
ForgingScreenHandler.onTakeOutput
(PlayerEntity player, ItemStack stack) protected void
SmithingScreenHandler.onTakeOutput
(PlayerEntity player, ItemStack stack) AbstractFurnaceScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.BeaconScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.BrewingStandScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.CartographyTableScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.CrafterScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.CraftingScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.EnchantmentScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.ForgingScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.Generic3x3ContainerScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.GenericContainerScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.GrindstoneScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.HopperScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.HorseScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.LecternScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.LoomScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.MerchantScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.PlayerScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.abstract ItemStack
ScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.ShulkerBoxScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.StonecutterScreenHandler.quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.static boolean
ScreenHandler.shouldQuickCraftContinue
(int stage, PlayerEntity player) protected static void
CraftingScreenHandler.updateResult
(ScreenHandler handler, World world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory) ModifierConstructorDescriptionPlayerScreenHandler
(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
Uses of PlayerEntity in net.minecraft.screen.slot
Modifier and TypeFieldDescriptionprivate final PlayerEntity
CraftingResultSlot.player
private final PlayerEntity
FurnaceOutputSlot.player
private final PlayerEntity
TradeOutputSlot.player
Modifier and TypeMethodDescriptionboolean
CrafterOutputSlot.canTakeItems
(PlayerEntity playerEntity) boolean
Slot.canTakeItems
(PlayerEntity playerEntity) boolean
CrafterOutputSlot.canTakePartial
(PlayerEntity player) boolean
Slot.canTakePartial
(PlayerEntity player) void
CrafterOutputSlot.onTakeItem
(PlayerEntity player, ItemStack stack) void
CraftingResultSlot.onTakeItem
(PlayerEntity player, ItemStack stack) void
FurnaceOutputSlot.onTakeItem
(PlayerEntity player, ItemStack stack) void
Slot.onTakeItem
(PlayerEntity player, ItemStack stack) void
TradeOutputSlot.onTakeItem
(PlayerEntity player, ItemStack stack) CrafterOutputSlot.takeStackRange
(int min, int max, PlayerEntity player) Slot.takeStackRange
(int min, int max, PlayerEntity player) CrafterOutputSlot.tryTakeStackRange
(int min, int max, PlayerEntity player) Slot.tryTakeStackRange
(int min, int max, PlayerEntity player) ModifierConstructorDescriptionCraftingResultSlot
(PlayerEntity player, RecipeInputInventory input, Inventory inventory, int index, int x, int y) FurnaceOutputSlot
(PlayerEntity player, Inventory inventory, int index, int x, int y) TradeOutputSlot
(PlayerEntity player, Merchant merchant, MerchantInventory merchantInventory, int index, int x, int y) -
Uses of PlayerEntity in net.minecraft.server
Modifier and TypeMethodDescriptionPlayerManager.createStatHandler
(PlayerEntity player) boolean
MinecraftServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) void
PlayerManager.sendToAround
(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet) void
PlayerManager.sendToOtherTeams
(PlayerEntity source, Text message) void
PlayerManager.sendToTeam
(PlayerEntity source, Text message) -
Uses of PlayerEntity in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
SpawnArmorTrimsCommand.execute
(ServerCommandSource source, PlayerEntity player) Modifier and TypeMethodDescriptionprivate static int
WardenSpawnTrackerCommand.clearTracker
(ServerCommandSource source, Collection<? extends PlayerEntity> players) private static int
WardenSpawnTrackerCommand.setWarningLevel
(ServerCommandSource source, Collection<? extends PlayerEntity> players, int warningCount) -
Uses of PlayerEntity in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionboolean
MinecraftDedicatedServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.network
Modifier and TypeMethodDescriptionboolean
ServerPlayerEntity.shouldDamagePlayer
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.world
Modifier and TypeMethodDescriptionboolean
ServerWorld.canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.void
ServerWorld.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ServerWorld.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ServerWorld.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.stat
Modifier and TypeMethodDescriptionvoid
StatHandler.increaseStat
(PlayerEntity player, Stat<?> stat, int value) void
ServerStatHandler.setStat
(PlayerEntity player, Stat<?> stat, int value) void
StatHandler.setStat
(PlayerEntity player, Stat<?> stat, int value) -
Uses of PlayerEntity in net.minecraft.test
Modifier and TypeMethodDescriptionvoid
TestContext.useBlock
(BlockPos pos, PlayerEntity player) void
TestContext.useBlock
(BlockPos pos, PlayerEntity player, BlockHitResult result) void
TestContext.useStackOnBlock
(PlayerEntity player, ItemStack stack, BlockPos pos, Direction direction) -
Uses of PlayerEntity in net.minecraft.village
Modifier and TypeMethodDescriptionboolean
MerchantInventory.canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.default void
Merchant.sendOffers
(PlayerEntity player, Text name, int levelProgress) void
Merchant.setCustomer
(@Nullable PlayerEntity customer) void
SimpleMerchant.setCustomer
(@Nullable PlayerEntity customer) -
Uses of PlayerEntity in net.minecraft.world
Modifier and TypeMethodDescriptionChunkRegion.getClosestPlayer
(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(double x, double y, double z, double maxDistance, boolean ignoreCreative) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, double x, double y, double z) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, LivingEntity entity) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(Entity entity, double maxDistance) default @Nullable PlayerEntity
EntityView.getPlayerByUuid
(UUID uuid) Modifier and TypeMethodDescriptionChunkRegion.getPlayers()
List
<? extends PlayerEntity> EntityView.getPlayers()
default List
<PlayerEntity> EntityView.getPlayers
(TargetPredicate targetPredicate, LivingEntity entity, Box box) Modifier and TypeMethodDescriptionprivate void
WorldSaveHandler.backupCorruptedPlayerData
(PlayerEntity player, String extension) boolean
World.canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.CommandBlockExecutor.interact
(PlayerEntity player) WorldSaveHandler.loadPlayerData
(PlayerEntity player) private Optional
<NbtCompound> WorldSaveHandler.loadPlayerData
(PlayerEntity player, String extension) void
ChunkRegion.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) default void
WorldAccess.playSound
(@Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category) void
WorldAccess.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract void
World.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) void
WorldSaveHandler.savePlayerData
(PlayerEntity player) void
ChunkRegion.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) void
WorldAccess.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.world.explosion