Uses of Class
net.minecraft.entity.player.PlayerEntity
Packages that use 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
Methods in net.minecraft.block with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidBeehiveBlock.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.voidBlock.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.voidIceBlock.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.voidTallPlantBlock.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.voidTurtleEggBlock.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.floatAbstractBlock.AbstractBlockState.calcBlockBreakingDelta(PlayerEntity player, BlockView world, BlockPos pos) protected floatAbstractBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) protected floatBambooBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) protected floatBambooShootBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) booleanBarrierBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanFluidFillable.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanKelpBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanKelpPlantBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanSeagrassBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanSlabBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanTallSeagrassBlock.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) default booleanWaterloggable.canFillWithFluid(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) static voidAbstractCandleBlock.extinguish(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) private voidTrapdoorBlock.flip(BlockState state, World world, BlockPos pos, @Nullable PlayerEntity player) private booleanAbstractSignBlock.isOtherPlayerEditing(PlayerEntity player, SignBlockEntity blockEntity) private booleanAbstractSignBlock.isTextLiteralOrEmpty(PlayerEntity player, SignBlockEntity blockEntity, boolean front) voidAbstractBlock.AbstractBlockState.onBlockBreakStart(World world, BlockPos pos, PlayerEntity player) protected voidAbstractBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected voidDragonEggBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected voidNoteBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).protected voidRedstoneOreBlock.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 voidTallPlantBlock.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 ActionResultAbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractFurnaceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAnvilBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBarrelBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBeaconBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBedBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBellBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBrewingStandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCandleCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCartographyTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesBodyBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesHeadBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChiseledBookshelfBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCommandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComparatorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComposterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCrafterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCraftingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDaylightDetectorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDecoratedPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDispenserBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDragonEggBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnchantingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnderChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceGateBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFletchingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFlowerPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultGrindstoneBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultHopperBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJigsawBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJukeboxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLecternBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLeverBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLightBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLoomBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultNoteBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultPistonExtensionBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRedstoneWireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRepeaterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRespawnAnchorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultShulkerBoxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSmithingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStonecutterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStructureBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSweetBerryBushBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultTrapdoorBlock.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 ItemActionResultAbstractBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractCauldronBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultBeehiveBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCampfireBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultChiseledBookshelfBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultComposterBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultDecoratedPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFenceBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFlowerPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultJukeboxBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultLecternBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultNoteBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultPumpkinBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRedstoneOreBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRespawnAnchorBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultSweetBerryBushBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultTntBlock.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 ItemActionResultWallHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) voidAbstractSignBlock.openEditScreen(PlayerEntity player, SignBlockEntity blockEntity, boolean front) protected abstract voidAbstractFurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player) protected voidBlastFurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player) protected voidFurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player) private voidLecternBlock.openScreen(World world, BlockPos pos, PlayerEntity player) protected voidSmokerBlock.openScreen(World world, BlockPos pos, PlayerEntity player) protected voidButtonBlock.playClickSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered) protected static voidLeverBlock.playClickSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) protected voidTrapdoorBlock.playToggleSound(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open) voidButtonBlock.powerOn(BlockState state, World world, BlockPos pos, @Nullable PlayerEntity player) booleanBellBlock.ring(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean checkHitPos) private booleanHangingSignBlock.shouldTryAttaching(PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private booleanWallHangingSignBlock.shouldTryAttaching(BlockState state, PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) protected voidAbstractFireBlock.spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state) protected voidBlock.spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state) voidBeehiveBlock.takeHoney(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) voidLeverBlock.togglePower(BlockState state, World world, BlockPos pos, @Nullable PlayerEntity player) private static voidChiseledBookshelfBlock.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 ItemStackWaterloggable.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) protected static ActionResultCakeBlock.tryEat(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) private static voidChiseledBookshelfBlock.tryRemoveBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, int slot) -
Uses of PlayerEntity in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type PlayerEntityModifier and TypeMethodDescriptionstatic ItemActionResultCauldronBehavior.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 ItemActionResultCauldronBehavior.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
Methods in net.minecraft.block.entity that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionprivate List<PlayerEntity> ViewerCountManager.getViewingPlayers(World world, BlockPos pos) Methods in net.minecraft.block.entity with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidBeehiveBlockEntity.angerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) booleanBrushableBlockEntity.brush(long worldTime, PlayerEntity player, Direction hitDirection) booleanChiseledBookshelfBlockEntity.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanCrafterBlockEntity.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanEnderChestBlockEntity.canPlayerUse(PlayerEntity player) booleanLockableContainerBlockEntity.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanSignBlockEntity.canRunCommandClickEvent(boolean front, PlayerEntity player) booleanLockableContainerBlockEntity.checkUnlocked(PlayerEntity player) static booleanLockableContainerBlockEntity.checkUnlocked(PlayerEntity player, ContainerLock lock, Text containerName) booleanLootableContainerBlockEntity.checkUnlocked(PlayerEntity player) voidViewerCountManager.closeContainer(PlayerEntity player, World world, BlockPos pos, BlockState state) private static ServerCommandSourceSignBlockEntity.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 voidBrushableBlockEntity.finishBrushing(PlayerEntity player) voidBrushableBlockEntity.generateItem(PlayerEntity player) VaultBlockEntity.Server.generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) private ServerCommandSourceLecternBlockEntity.getCommandSource(@Nullable PlayerEntity player) private SignTextSignBlockEntity.getTextWithMessages(PlayerEntity player, List<FilteredMessage> messages, SignText text) booleanSignText.hasRunCommandClickEvent(PlayerEntity player) booleanSignText.hasText(PlayerEntity player) booleanSignBlockEntity.isPlayerFacingFront(PlayerEntity player) protected abstract booleanViewerCountManager.isPlayerViewing(PlayerEntity player) Determines whether the given player is currently viewing this container.private static booleanVaultBlockEntity.Client.isPlayerWithinConnectedParticlesRange(BlockPos pos, VaultSharedData sharedData, PlayerEntity player) voidBarrelBlockEntity.onClose(PlayerEntity player) Called when the inventory is closed.voidChestBlockEntity.onClose(PlayerEntity player) Called when the inventory is closed.voidEnderChestBlockEntity.onClose(PlayerEntity player) voidShulkerBoxBlockEntity.onClose(PlayerEntity player) Called when the inventory is closed.voidBarrelBlockEntity.onOpen(PlayerEntity player) Called when the inventory is opened.voidChestBlockEntity.onOpen(PlayerEntity player) Called when the inventory is opened.voidEnderChestBlockEntity.onOpen(PlayerEntity player) voidShulkerBoxBlockEntity.onOpen(PlayerEntity player) Called when the inventory is opened.voidViewerCountManager.openContainer(PlayerEntity player, World world, BlockPos pos, BlockState state) booleanStructureBlockBlockEntity.openScreen(PlayerEntity player) private ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) booleanSignBlockEntity.runCommandClickEvent(PlayerEntity player, World world, BlockPos pos, boolean front) voidLecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player) private static voidVaultBlockEntity.Client.spawnConnectedParticlesFor(World world, Vec3d pos, PlayerEntity player) private voidBrushableBlockEntity.spawnItem(PlayerEntity player) voidSignBlockEntity.tryChangeText(PlayerEntity player, boolean front, List<FilteredMessage> messages) static voidVaultBlockEntity.Server.tryUnlock(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) voidAbstractFurnaceBlockEntity.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) -
Uses of PlayerEntity in net.minecraft.block.enums
Method parameters in net.minecraft.block.enums with type arguments of type PlayerEntityModifier and TypeMethodDescriptionTrialSpawnerState.getRandomEntity(List<PlayerEntity> players, Set<UUID> entityUuids, TrialSpawnerLogic logic, BlockPos pos, ServerWorld world) -
Uses of PlayerEntity in net.minecraft.block.spawner
Methods in net.minecraft.block.spawner that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionprivate static Optional<com.mojang.datafixers.util.Pair<PlayerEntity, RegistryEntry<StatusEffect>>> TrialSpawnerData.findPlayerWithOmen(ServerWorld world, List<UUID> players) List<? extends PlayerEntity> EntityDetector.Selector.getPlayers(ServerWorld world, Predicate<? super PlayerEntity> predicate) Methods in net.minecraft.block.spawner with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate static voidTrialSpawnerData.applyTrialOmen(PlayerEntity player) static EntityDetector.SelectorEntityDetector.Selector.ofPlayer(PlayerEntity player) Method parameters in net.minecraft.block.spawner with type arguments of type PlayerEntityModifier and TypeMethodDescriptionList<? extends PlayerEntity> EntityDetector.Selector.getPlayers(ServerWorld world, Predicate<? super PlayerEntity> predicate) static EntityDetector.SelectorEntityDetector.Selector.ofPlayers(List<PlayerEntity> players) -
Uses of PlayerEntity in net.minecraft.block.vault
Methods in net.minecraft.block.vault with parameters of type PlayerEntityModifier and TypeMethodDescription(package private) booleanVaultServerData.hasRewardedPlayer(PlayerEntity player) voidVaultServerData.markPlayerAsRewarded(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud that return PlayerEntityMethods in net.minecraft.client.gui.hud with parameters of type PlayerEntityModifier and TypeMethodDescription(package private) static InGameHud.HeartTypeInGameHud.HeartType.fromPlayerState(PlayerEntity player) private static @Nullable BlockStateInGameOverlayRenderer.getInWallBlockState(PlayerEntity player) private static voidInGameHud.renderArmor(DrawContext context, PlayerEntity player, int int2, int int3, int int4, int x) private voidInGameHud.renderFood(DrawContext context, PlayerEntity player, int top, int right) private voidInGameHud.renderHealthBar(DrawContext context, PlayerEntity player, int x, int y, int lines, int regeneratingHeartIndex, float maxHealth, int lastHealth, int health, int absorption, boolean blinking) private voidInGameHud.renderHotbarItem(DrawContext context, int x, int y, RenderTickCounter tickCounter, PlayerEntity player, ItemStack stack, int seed) -
Uses of PlayerEntity in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as PlayerEntityModifier and TypeFieldDescriptionprivate final PlayerEntityAnvilScreen.playerprivate final PlayerEntityBookEditScreen.playerprivate final PlayerEntityCrafterScreen.playerMethods in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanCreativeInventoryScreen.CreativeSlot.canTakeItems(PlayerEntity playerEntity) booleanCreativeInventoryScreen.LockableSlot.canTakeItems(PlayerEntity playerEntity) booleanCreativeInventoryScreen.CreativeScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.voidCreativeInventoryScreen.CreativeSlot.onTakeItem(PlayerEntity player, ItemStack stack) CreativeInventoryScreen.CreativeScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.private booleanCreativeInventoryScreen.shouldShowOperatorTab(PlayerEntity player) Constructors in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntityModifierConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) CreativeScreenHandler(PlayerEntity player) InventoryScreen(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.network
Subclasses of PlayerEntity in net.minecraft.client.networkModifier and TypeClassDescriptionclassclassRepresents the client's own player entity.classRepresents a player entity that is present on the client but is not the client's own player.Methods in net.minecraft.client.network with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidClientPlayerInteractionManager.attackEntity(PlayerEntity player, Entity target) voidClientPlayerInteractionManager.clickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player) voidClientPlayerInteractionManager.copyAbilities(PlayerEntity player) private static ItemStackClientPlayNetworkHandler.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) voidClientPlayerInteractionManager.stopUsingItem(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.render.entity
Fields in net.minecraft.client.render.entity with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate Map<SkinTextures.Model, EntityRenderer<? extends PlayerEntity>> EntityRenderDispatcher.modelRenderersMethods in net.minecraft.client.render.entity that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionstatic Map<SkinTextures.Model, EntityRenderer<? extends PlayerEntity>> EntityRenderers.reloadPlayerRenderers(EntityRendererFactory.Context ctx) Methods in net.minecraft.client.render.entity with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate Vec3dFishingBobberEntityRenderer.getHandPos(PlayerEntity player, float float2, float tickDelta) -
Uses of PlayerEntity in net.minecraft.client.render.entity.feature
Classes in net.minecraft.client.render.entity.feature with type parameters of type PlayerEntityModifier and TypeClassDescriptionclassPlayerHeldItemFeatureRenderer<T extends PlayerEntity,M extends EntityModel<T> & ModelWithArms & ModelWithHead> classShoulderParrotFeatureRenderer<T extends PlayerEntity> -
Uses of PlayerEntity in net.minecraft.client.render.item
Methods in net.minecraft.client.render.item with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate voidHeldItemRenderer.applyBrushTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, PlayerEntity player, float equipProgress) private voidHeldItemRenderer.applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.sound
Fields in net.minecraft.client.sound declared as PlayerEntityConstructors in net.minecraft.client.sound with parameters of type PlayerEntityModifierConstructorDescriptionMinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean underwater) -
Uses of PlayerEntity in net.minecraft.client.world
Methods in net.minecraft.client.world with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidClientWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidClientWorld.playSoundFromEntity(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidClientWorld.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.component.type
Methods in net.minecraft.component.type with parameters of type PlayerEntityModifier and TypeMethodDescriptionintBundleContentsComponent.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) static ItemActionResultJukeboxPlayableComponent.tryPlayStack(World world, BlockPos pos, ItemStack stack, PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity
Fields in net.minecraft.entity declared as PlayerEntityModifier and TypeFieldDescriptionprotected @Nullable PlayerEntityLivingEntity.attackingPlayerprivate PlayerEntityExperienceOrbEntity.targetFields in net.minecraft.entity with type parameters of type PlayerEntityMethods in net.minecraft.entity with parameters of type PlayerEntityModifier and TypeMethodDescriptionEntityType.copier(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) EntityType.copier(ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) protected Vec3dLivingEntity.getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput) protected floatLivingEntity.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.booleanEntity.isInvisibleTo(PlayerEntity player) Returns whether the entity is invisible toplayer.static voidEntityType.loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, NbtComponent nbt) EntityType.nbtCopier(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) voidEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidExperienceOrbEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidItemEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidRideableInventory.openInventory(PlayerEntity player) voidLivingEntity.setAttacking(@Nullable PlayerEntity attacking) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) protected voidLivingEntity.tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput) private voidLivingEntity.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
Fields in net.minecraft.entity.ai.brain with type parameters of type PlayerEntityModifier and TypeFieldDescriptionstatic final MemoryModuleType<PlayerEntity> MemoryModuleType.NEAREST_PLAYER_HOLDING_WANTED_ITEMstatic final MemoryModuleType<List<PlayerEntity>> MemoryModuleType.NEAREST_PLAYERSstatic final MemoryModuleType<PlayerEntity> MemoryModuleType.NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLDstatic final MemoryModuleType<PlayerEntity> MemoryModuleType.NEAREST_VISIBLE_PLAYERstatic final MemoryModuleType<PlayerEntity> MemoryModuleType.NEAREST_VISIBLE_TARGETABLE_PLAYERstatic final MemoryModuleType<PlayerEntity> MemoryModuleType.TEMPTING_PLAYER -
Uses of PlayerEntity in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.entity.ai.brain.task
Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionprivate Optional<PlayerEntity> GiveGiftsToHeroTask.getNearestPlayerIfHero(VillagerEntity villager) private Optional<PlayerEntity> TemptTask.getTemptingPlayer(PathAwareEntity entity) Methods in net.minecraft.entity.ai.brain.task with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate booleanGiveGiftsToHeroTask.isCloseEnough(VillagerEntity villager, PlayerEntity player) private booleanGiveGiftsToHeroTask.isHero(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as PlayerEntityModifier and TypeFieldDescriptionprivate @Nullable PlayerEntityWolfBegGoal.begFromprotected @Nullable PlayerEntityTemptGoal.closestPlayerprivate @Nullable PlayerEntityChaseBoatGoal.passengerMethods in net.minecraft.entity.ai.goal with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.entity.boss.dragon.phase
Methods in net.minecraft.entity.boss.dragon.phase with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidAbstractPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) voidHoldingPatternPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) voidPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) private voidHoldingPatternPhase.strafePlayer(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.damage
Methods in net.minecraft.entity.damage with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate booleanArmorStandEntity.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
Fields in net.minecraft.entity.mob declared as PlayerEntityModifier and TypeFieldDescriptionprivate @Nullable PlayerEntityEndermanEntity.TeleportTowardsPlayerGoal.targetPlayerFields in net.minecraft.entity.mob with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate DisableableFollowTargetGoal<PlayerEntity> WitchEntity.attackPlayerGoalMethods in net.minecraft.entity.mob that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionstatic Optional<PlayerEntity> PiglinBrain.getNearestDetectedPlayer(AbstractPiglinEntity piglin) Methods in net.minecraft.entity.mob with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate static voidPiglinBrain.dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> items) default voidAngerable.forgive(PlayerEntity player) final ActionResultMobEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResultBoggedEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultCreeperEntity.interactMob(PlayerEntity player, Hand hand) HoglinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultMobEntity.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 ActionResultMobEntity.interactWithItem(PlayerEntity player, Hand hand) booleanHostileEntity.isAngryAt(PlayerEntity player) booleanZombifiedPiglinEntity.isAngryAt(PlayerEntity player) (package private) booleanEndermanEntity.isPlayerStaring(PlayerEntity player) static voidPiglinBrain.onGuardedBlockInteracted(PlayerEntity player, boolean blockOpen) voidSlimeEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.protected voidMobEntity.onPlayerSpawnedChild(PlayerEntity player, MobEntity child) static ActionResultPiglinBrain.playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand) voidAngerable.setAttacking(@Nullable PlayerEntity attacking) -
Uses of PlayerEntity in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive declared as PlayerEntityModifier and TypeFieldDescriptionprivate @Nullable PlayerEntityDolphinEntity.SwimWithPlayerGoal.closestPlayerprivate @Nullable PlayerEntityMerchantEntity.customerprivate @Nullable PlayerEntityVillagerEntity.lastCustomerprivate @Nullable PlayerEntityCatEntity.SleepWithOwnerGoal.ownerprivate @Nullable PlayerEntityCatEntity.TemptGoal.playerFields in net.minecraft.entity.passive with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate @Nullable CatEntity.CatFleeGoal<PlayerEntity> CatEntity.fleeGoalprivate @Nullable OcelotEntity.FleeGoal<PlayerEntity> OcelotEntity.fleeGoalMethods in net.minecraft.entity.passive that return PlayerEntityMethods in net.minecraft.entity.passive with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate voidAbstractDonkeyEntity.addChest(PlayerEntity player, ItemStack chest) private voidVillagerEntity.beginTradeWith(PlayerEntity customer) booleanAbstractHorseEntity.bondWithPlayer(PlayerEntity player) voidAxolotlEntity.buffPlayer(PlayerEntity player) private voidTadpoleEntity.decrementItem(PlayerEntity player, ItemStack stack) private voidAllayEntity.decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack) protected voidAnimalEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidAxolotlEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidCatEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidFoxEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) private voidTadpoleEntity.eatSlimeBall(PlayerEntity player, ItemStack stack) voidAbstractHorseEntity.equipHorseArmor(PlayerEntity player, ItemStack stack) protected Vec3dAbstractHorseEntity.getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3dCamelEntity.getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3dPigEntity.getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3dStriderEntity.getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput) intVillagerEntity.getReputation(PlayerEntity player) protected floatAbstractHorseEntity.getSaddledSpeed(PlayerEntity controllingPlayer) protected floatCamelEntity.getSaddledSpeed(PlayerEntity controllingPlayer) protected floatPigEntity.getSaddledSpeed(PlayerEntity controllingPlayer) protected floatStriderEntity.getSaddledSpeed(PlayerEntity controllingPlayer) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) AbstractDonkeyEntity.interactMob(PlayerEntity player, Hand hand) AbstractHorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultAllayEntity.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 ActionResultDolphinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultFishEntity.interactMob(PlayerEntity player, Hand hand) GoatEntity.interactMob(PlayerEntity player, Hand hand) HorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultIronGolemEntity.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 ActionResultSnowGolemEntity.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) voidAnimalEntity.lovePlayer(@Nullable PlayerEntity player) voidArmadilloEntity.lovePlayer(@Nullable PlayerEntity player) voidPufferfishEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.protected voidFoxEntity.onPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidAbstractHorseEntity.openInventory(PlayerEntity player) voidCamelEntity.openInventory(PlayerEntity player) private voidVillagerEntity.prepareOffersFor(PlayerEntity player) protected voidAbstractHorseEntity.putPlayerOnBack(PlayerEntity player) protected voidTraderLlamaEntity.putPlayerOnBack(PlayerEntity player) protected booleanAbstractHorseEntity.receiveFood(PlayerEntity player, ItemStack item) protected booleanCamelEntity.receiveFood(PlayerEntity player, ItemStack item) protected booleanLlamaEntity.receiveFood(PlayerEntity player, ItemStack item) voidMerchantEntity.setCustomer(@Nullable PlayerEntity customer) voidVillagerEntity.setCustomer(@Nullable PlayerEntity customer) voidTameableEntity.setOwner(PlayerEntity player) protected voidAbstractHorseEntity.tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput) protected voidCamelEntity.tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput) protected voidPigEntity.tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput) protected voidStriderEntity.tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput) private voidCatEntity.tryTame(PlayerEntity player) private voidWolfEntity.tryTame(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as PlayerEntityMethods in net.minecraft.entity.player with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanPlayerInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanPlayerEntity.shouldDamagePlayer(PlayerEntity player) voidHungerManager.update(PlayerEntity player) Constructors in net.minecraft.entity.player with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return PlayerEntityMethods in net.minecraft.entity.projectile with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidPersistentProjectileEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidTridentEntity.onPlayerCollision(PlayerEntity player) Called when a player collides with the entity.private booleanFishingBobberEntity.removeIfInvalid(PlayerEntity player) protected booleanPersistentProjectileEntity.tryPickup(PlayerEntity player) protected booleanTridentEntity.tryPickup(PlayerEntity player) Constructors in net.minecraft.entity.projectile with parameters of type PlayerEntityModifierConstructorDescriptionFishingBobberEntity(PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks) WindChargeEntity(PlayerEntity player, World world, double x, double y, double z) -
Uses of PlayerEntity in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type PlayerEntityModifier and TypeMethodDescriptiondefault booleanVehicleInventory.canPlayerAccess(PlayerEntity player) booleanChestBoatEntity.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanStorageMinecartEntity.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.static AbstractMinecartEntityAbstractMinecartEntity.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 voidVehicleInventory.generateInventoryLoot(@Nullable PlayerEntity player) voidChestBoatEntity.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.voidChestBoatEntity.onClose(PlayerEntity player) Called when the inventory is closed.voidChestMinecartEntity.onClose(PlayerEntity player) Called when the inventory is closed.default ActionResultVehicleInventory.open(PlayerEntity player) voidChestBoatEntity.openInventory(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanCraftingInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanCraftingResultInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanDoubleInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanEnderChestInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.static booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player) Returns whetherplayercan use thisblockEntity.static booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player, float range) Returns whetherplayercan use thisblockEntity.booleanInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.booleanSimpleInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.default booleanSingleStackInventory.SingleStackBlockEntityInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.default voidLootableInventory.generateLoot(@Nullable PlayerEntity player) Replaces the contents of this inventory with the generated loot, if it exists.voidDoubleInventory.onClose(PlayerEntity player) Called when the inventory is closed.voidEnderChestInventory.onClose(PlayerEntity player) Called when the inventory is closed.default voidInventory.onClose(PlayerEntity player) Called when the inventory is closed.voidDoubleInventory.onOpen(PlayerEntity player) Called when the inventory is opened.voidEnderChestInventory.onOpen(PlayerEntity player) Called when the inventory is opened.default voidInventory.onOpen(PlayerEntity player) Called when the inventory is opened. -
Uses of PlayerEntity in net.minecraft.item
Fields in net.minecraft.item declared as PlayerEntityMethods in net.minecraft.item that return PlayerEntityMethods in net.minecraft.item with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate voidItemStack.appendAttributeModifiersTooltip(Consumer<Text> textConsumer, @Nullable PlayerEntity player) private voidItemStack.appendAttributeModifierTooltip(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) static ActionResultLeadItem.attachHeldMobsToBlock(PlayerEntity player, World world, BlockPos pos) booleanDebugStickItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.booleanItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.booleanMaceItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.booleanSwordItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.booleanTridentItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.protected booleanDecorationItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected booleanItemFrameItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) booleanHoneycombItem.canUseOnSignText(SignText signText, PlayerEntity player) default booleanSignChangingItem.canUseOnSignText(SignText signText, PlayerEntity player) static TypedActionResult<ItemStack> ItemUsage.consumeHeldItem(World world, PlayerEntity player, Hand hand) Consumes the item thatplayerholds.private BoatEntityBoatItem.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 booleanBundleItem.dropAllBundledItems(ItemStack stack, PlayerEntity player) default TypedActionResult<ItemStack> Equipment.equipAndSwap(Item item, World world, PlayerEntity user, Hand hand) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) Returns the stack to put in the player's hand after exchanging stacks.static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) Returns the stack to put in the player's hand after exchanging stacks.protected ItemStackGlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack) static ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) private HitResultBrushItem.getHitResult(PlayerEntity user) private static doubleMaceItem.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 voidMaceItem.knockbackNearbyEntities(World world, PlayerEntity player, Entity attacked) booleanBundleItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslotgets clicked by the cursor holdingotherStack.booleanItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslotgets clicked by the cursor holdingotherStack.booleanItemStack.onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) voidItem.onCraftByPlayer(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidItemStack.onCraftByPlayer(World world, PlayerEntity player, int amount) voidvoidEntityBucketItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) default voidFluidModificationItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) booleanBundleItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot.booleanItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot.booleanItemStack.onStackClicked(Slot slot, ClickType clickType, PlayerEntity player) booleanBucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanFluidModificationItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanPowderSnowBucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) protected voidBucketItem.playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) protected voidEntityBucketItem.playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) private static voidGoatHornItem.playSound(World world, PlayerEntity player, Instrument instrument) voidItemStack.postDamageEntity(LivingEntity target, PlayerEntity player) booleanItemStack.postHit(LivingEntity target, PlayerEntity player) voidItemStack.postMine(World world, BlockState state, BlockPos pos, PlayerEntity miner) protected booleanBlockItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected booleanSignItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected static BlockHitResultItem.raycast(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling) static booleanWrittenBookItem.resolve(ItemStack book, ServerCommandSource commandSource, @Nullable PlayerEntity player) private static voidDebugStickItem.sendMessage(PlayerEntity player, Text message) 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 booleanDebugStickItem.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.booleanDyeItem.useOnSign(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) booleanGlowInkSacItem.useOnSign(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) booleanHoneycombItem.useOnSign(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) booleanInkSacItem.useOnSign(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) booleanSignChangingItem.useOnSign(World world, SignBlockEntity signBlockEntity, boolean front, PlayerEntity player) static booleanBlockItem.writeNbtToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack) Constructors in net.minecraft.item with parameters of type PlayerEntityModifierConstructorDescriptionItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult) protectedItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit) protectedItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) -
Uses of PlayerEntity in net.minecraft.item.map
Fields in net.minecraft.item.map declared as PlayerEntityFields in net.minecraft.item.map with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate final Map<PlayerEntity, MapState.PlayerUpdateTracker> MapState.updateTrackersByPlayerMethods in net.minecraft.item.map with parameters of type PlayerEntityModifier and TypeMethodDescriptionMapState.getPlayerMarkerPacket(MapIdComponent mapId, PlayerEntity player) MapState.getPlayerSyncData(PlayerEntity player) voidMapState.update(PlayerEntity player, ItemStack stack) Constructors in net.minecraft.item.map with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type PlayerEntityModifier and TypeFieldDescriptionstatic final LootContextParameter<PlayerEntity> LootContextParameters.LAST_DAMAGE_PLAYER -
Uses of PlayerEntity in net.minecraft.recipe
Methods in net.minecraft.recipe with parameters of type PlayerEntityModifier and TypeMethodDescriptiondefault voidRecipeUnlocker.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) -
Uses of PlayerEntity in net.minecraft.screen
Fields in net.minecraft.screen declared as PlayerEntityModifier and TypeFieldDescriptionprivate final PlayerEntityPlayerScreenHandler.ownerprivate final PlayerEntityCrafterScreenHandler.playerprivate final PlayerEntityCraftingScreenHandler.playerprotected final PlayerEntityForgingScreenHandler.playerMethods in net.minecraft.screen with parameters of type PlayerEntityModifier and TypeMethodDescriptionprotected booleanAnvilScreenHandler.canTakeOutput(PlayerEntity player, boolean present) protected abstract booleanForgingScreenHandler.canTakeOutput(PlayerEntity player, boolean present) protected booleanSmithingScreenHandler.canTakeOutput(PlayerEntity player, boolean present) booleanAbstractFurnaceScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanBeaconScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanBrewingStandScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanCartographyTableScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanCrafterScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanCraftingScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanEnchantmentScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanForgingScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanGeneric3x3ContainerScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanGenericContainerScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanGrindstoneScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanHopperScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanHorseScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanLecternScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanLoomScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanMerchantScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanPlayerScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.abstract booleanScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.protected static booleanScreenHandler.canUse(ScreenHandlerContext context, PlayerEntity player, Block block) Returns whether the screen handler can be used.booleanShulkerBoxScreenHandler.canUse(PlayerEntity player) Returns whether the screen handler can be used.booleanStonecutterScreenHandler.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 voidScreenHandler.dropInventory(PlayerEntity player, Inventory inventory) private booleanScreenHandler.handleSlotClick(PlayerEntity player, ClickType clickType, Slot slot, ItemStack stack, ItemStack cursorStack) private voidScreenHandler.internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) The actual logic that handles a slot click.booleanEnchantmentScreenHandler.onButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.booleanLecternScreenHandler.onButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.booleanLoomScreenHandler.onButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.booleanScreenHandler.onButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.booleanStonecutterScreenHandler.onButtonClick(PlayerEntity player, int id) Called whenplayerclicks a button withid.voidBeaconScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidCartographyTableScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidCraftingScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidEnchantmentScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidForgingScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidGeneric3x3ContainerScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidGenericContainerScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidGrindstoneScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidHopperScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidHorseScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidLoomScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidMerchantScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidPlayerScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidShulkerBoxScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidStonecutterScreenHandler.onClosed(PlayerEntity player) Called when this screen handler is closed.voidScreenHandler.onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player) Performs a slot click.voidBrewingStandScreenHandler.PotionSlot.onTakeItem(PlayerEntity player, ItemStack stack) protected voidAnvilScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected abstract voidForgingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected voidSmithingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) AbstractFurnaceScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto 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 atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.abstract ItemStackScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto 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 atslotto 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 atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.static booleanScreenHandler.shouldQuickCraftContinue(int stage, PlayerEntity player) protected static voidCraftingScreenHandler.updateResult(ScreenHandler handler, World world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, @Nullable RecipeEntry<CraftingRecipe> recipe) Constructors in net.minecraft.screen with parameters of type PlayerEntityModifierConstructorDescriptionPlayerScreenHandler(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
Uses of PlayerEntity in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as PlayerEntityModifier and TypeFieldDescriptionprivate final PlayerEntityCraftingResultSlot.playerprivate final PlayerEntityFurnaceOutputSlot.playerprivate final PlayerEntityTradeOutputSlot.playerMethods in net.minecraft.screen.slot with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanArmorSlot.canTakeItems(PlayerEntity playerEntity) booleanCrafterOutputSlot.canTakeItems(PlayerEntity playerEntity) booleanSlot.canTakeItems(PlayerEntity playerEntity) booleanCrafterOutputSlot.canTakePartial(PlayerEntity player) booleanSlot.canTakePartial(PlayerEntity player) voidCrafterOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidCraftingResultSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidFurnaceOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidTradeOutputSlot.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) Constructors in net.minecraft.screen.slot with parameters of type PlayerEntityModifierConstructorDescriptionCraftingResultSlot(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
Methods in net.minecraft.server with parameters of type PlayerEntityModifier and TypeMethodDescriptionPlayerManager.createStatHandler(PlayerEntity player) booleanMinecraftServer.isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player) voidPlayerManager.sendToAround(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet) voidPlayerManager.sendToOtherTeams(PlayerEntity source, Text message) voidPlayerManager.sendToTeam(PlayerEntity source, Text message) -
Uses of PlayerEntity in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate static intSpawnArmorTrimsCommand.execute(ServerCommandSource source, PlayerEntity player) Method parameters in net.minecraft.server.command with type arguments of type PlayerEntityModifier and TypeMethodDescriptionprivate static intWardenSpawnTrackerCommand.clearTracker(ServerCommandSource source, Collection<? extends PlayerEntity> players) private static intWardenSpawnTrackerCommand.setWarningLevel(ServerCommandSource source, Collection<? extends PlayerEntity> players, int warningCount) -
Uses of PlayerEntity in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanMinecraftDedicatedServer.isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.network
Subclasses of PlayerEntity in net.minecraft.server.networkMethods in net.minecraft.server.network with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanServerPlayerEntity.shouldDamagePlayer(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanServerWorld.canPlayerModifyAt(PlayerEntity player, BlockPos pos) Returns whetherplayercan modify blocks atpos.voidServerWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidServerWorld.playSoundFromEntity(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidServerWorld.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.stat
Methods in net.minecraft.stat with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidStatHandler.increaseStat(PlayerEntity player, Stat<?> stat, int value) voidServerStatHandler.setStat(PlayerEntity player, Stat<?> stat, int value) voidStatHandler.setStat(PlayerEntity player, Stat<?> stat, int value) -
Uses of PlayerEntity in net.minecraft.test
Methods in net.minecraft.test that return PlayerEntityMethods in net.minecraft.test with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidTestContext.useBlock(BlockPos pos, PlayerEntity player) voidTestContext.useBlock(BlockPos pos, PlayerEntity player, BlockHitResult result) voidTestContext.useStackOnBlock(PlayerEntity player, ItemStack stack, BlockPos pos, Direction direction) -
Uses of PlayerEntity in net.minecraft.village
Fields in net.minecraft.village declared as PlayerEntityMethods in net.minecraft.village that return PlayerEntityMethods in net.minecraft.village with parameters of type PlayerEntityModifier and TypeMethodDescriptionbooleanMerchantInventory.canPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.default voidMerchant.sendOffers(PlayerEntity player, Text name, int levelProgress) voidMerchant.setCustomer(@Nullable PlayerEntity customer) voidSimpleMerchant.setCustomer(@Nullable PlayerEntity customer) Constructors in net.minecraft.village with parameters of type PlayerEntity -
Uses of PlayerEntity in net.minecraft.world
Methods in net.minecraft.world that return PlayerEntityModifier and TypeMethodDescriptionChunkRegion.getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) default @Nullable PlayerEntityEntityView.getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative) default @Nullable PlayerEntityEntityView.getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate) default @Nullable PlayerEntityEntityView.getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z) default @Nullable PlayerEntityEntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity) default @Nullable PlayerEntityEntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z) default @Nullable PlayerEntityEntityView.getClosestPlayer(Entity entity, double maxDistance) default @Nullable PlayerEntityEntityView.getPlayerByUuid(UUID uuid) Methods in net.minecraft.world that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionChunkRegion.getPlayers()List<? extends PlayerEntity> EntityView.getPlayers()default List<PlayerEntity> EntityView.getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box) Methods in net.minecraft.world with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate voidPlayerSaveHandler.backupCorruptedPlayerData(PlayerEntity player, String extension) booleanWorld.canPlayerModifyAt(PlayerEntity player, BlockPos pos) Returns whetherplayercan modify blocks atpos.CommandBlockExecutor.interact(PlayerEntity player) PlayerSaveHandler.loadPlayerData(PlayerEntity player) private Optional<NbtCompound> PlayerSaveHandler.loadPlayerData(PlayerEntity player, String extension) voidChunkRegion.playSound(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category) voidWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorld.playSound(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSound(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) default voidWorldAccess.playSound(@Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category) voidWorldAccess.playSound(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSoundFromEntity(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSoundFromEntity(@Nullable PlayerEntity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) voidPlayerSaveHandler.savePlayerData(PlayerEntity player) voidChunkRegion.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) voidWorldAccess.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion with type parameters of type PlayerEntityMethods in net.minecraft.world.explosion that return types with arguments of type PlayerEntity