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) floatAbstractBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) Deprecated.floatBambooBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) floatBambooSaplingBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) static voidAbstractCandleBlock.extinguish(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) 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) voidAbstractBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) voidDragonEggBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).voidNoteBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).voidRedstoneOreBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).voidStairsBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).voidAbstractFireBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidBedBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidBeehiveBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidDecoratedPotBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidDoorBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidPistonHeadBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidShulkerBoxBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidTallPlantBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidTntBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidTripwireBlock.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, Hand hand, BlockHitResult hit) AbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) AbstractCauldronBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractFurnaceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AnvilBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BarrelBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeaconBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BedBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeehiveBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BellBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BrewingStandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CampfireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CartographyTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesBodyBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesHeadBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChiseledBookshelfBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CommandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComparatorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComposterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CraftingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DaylightDetectorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DispenserBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DragonEggBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnchantingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnderChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceGateBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FletchingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FlowerPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.GrindstoneBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HangingSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HopperBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JigsawBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JukeboxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LecternBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LeverBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LightBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LoomBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.NoteBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PistonExtensionBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PumpkinBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneOreBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneWireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RepeaterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RespawnAnchorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ShulkerBoxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SmithingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StairsBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StonecutterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StructureBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SweetBerryBushBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TntBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TrapdoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.WallHangingSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.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 voidTrapdoorBlock.playToggleSound(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open) 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) private static voidChiseledBookshelfBlock.tryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) 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 ActionResultCauldronBehavior.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 ActionResultCauldronBehavior.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 with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoidBeehiveBlockEntity.angerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) booleanBrushableBlockEntity.brush(long worldTime, PlayerEntity player, Direction hitDirection) booleanAbstractFurnaceBlockEntity.canPlayerUse(PlayerEntity player) booleanBrewingStandBlockEntity.canPlayerUse(PlayerEntity player) booleanChiseledBookshelfBlockEntity.canPlayerUse(PlayerEntity player) booleanEnderChestBlockEntity.canPlayerUse(PlayerEntity player) booleanJukeboxBlockEntity.canPlayerUse(PlayerEntity player) booleanLootableContainerBlockEntity.canPlayerUse(PlayerEntity player) booleanSignBlockEntity.canRunCommandClickEvent(boolean front, PlayerEntity player) voidLootableContainerBlockEntity.checkLootInteraction(@Nullable 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) private ServerCommandSourceLecternBlockEntity.getCommandSource(@Nullable PlayerEntity player) SignBlockEntity.getTextFacing(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.voidBarrelBlockEntity.onClose(PlayerEntity player) voidChestBlockEntity.onClose(PlayerEntity player) voidEnderChestBlockEntity.onClose(PlayerEntity player) voidShulkerBoxBlockEntity.onClose(PlayerEntity player) voidBarrelBlockEntity.onOpen(PlayerEntity player) voidChestBlockEntity.onOpen(PlayerEntity player) voidEnderChestBlockEntity.onOpen(PlayerEntity player) voidShulkerBoxBlockEntity.onOpen(PlayerEntity player) 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 voidBrushableBlockEntity.spawnItem(PlayerEntity player) voidSignBlockEntity.tryChangeText(PlayerEntity player, boolean front, List<FilteredMessage> messages) voidAbstractFurnaceBlockEntity.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) -
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 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, float float2, 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.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) CreativeInventoryScreen(PlayerEntity player, FeatureSet enabledFeatures, boolean operatorTabEnabled) 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<String,EntityRenderer<? extends PlayerEntity>> EntityRenderDispatcher.modelRenderersMethods in net.minecraft.client.render.entity that return types with arguments of type PlayerEntityModifier and TypeMethodDescriptionstatic Map<String,EntityRenderer<? extends PlayerEntity>> EntityRenderers.reloadPlayerRenderers(EntityRendererFactory.Context ctx) -
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.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 except, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidClientWorld.playSoundFromEntity(@Nullable PlayerEntity except, 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.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, @Nullable NbtCompound itemNbt) 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) private intExperienceOrbEntity.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.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 TypeMethodDescriptionbooleanAmbientEntity.canBeLeashedBy(PlayerEntity player) booleanHoglinEntity.canBeLeashedBy(PlayerEntity player) booleanMobEntity.canBeLeashedBy(PlayerEntity player) booleanWaterCreatureEntity.canBeLeashedBy(PlayerEntity player) booleanZoglinEntity.canBeLeashedBy(PlayerEntity player) private voidMobEntity.disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack) private 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 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 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) booleanAxolotlEntity.canBeLeashedBy(PlayerEntity player) booleanDolphinEntity.canBeLeashedBy(PlayerEntity player) booleanMerchantEntity.canBeLeashedBy(PlayerEntity player) booleanPandaEntity.canBeLeashedBy(PlayerEntity player) booleanSquidEntity.canBeLeashedBy(PlayerEntity player) booleanTameableEntity.canBeLeashedBy(PlayerEntity player) booleanTurtleEntity.canBeLeashedBy(PlayerEntity player) booleanWolfEntity.canBeLeashedBy(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) 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) 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) -
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) 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 luckOfTheSeaLevel, int lureLevel) -
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) booleanStorageMinecartEntity.canPlayerUse(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) voidChestMinecartEntity.onClose(PlayerEntity player) 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) booleanCraftingResultInventory.canPlayerUse(PlayerEntity player) booleanDoubleInventory.canPlayerUse(PlayerEntity player) booleanEnderChestInventory.canPlayerUse(PlayerEntity player) static booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player) static booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player, int range) booleanInventory.canPlayerUse(PlayerEntity player) booleanSimpleInventory.canPlayerUse(PlayerEntity player) voidDoubleInventory.onClose(PlayerEntity player) voidEnderChestInventory.onClose(PlayerEntity player) default voidInventory.onClose(PlayerEntity player) voidDoubleInventory.onOpen(PlayerEntity player) voidEnderChestInventory.onOpen(PlayerEntity player) default voidInventory.onOpen(PlayerEntity player) -
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 TypeMethodDescriptionstatic 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.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.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) ItemStack.getTooltip(@Nullable PlayerEntity player, TooltipContext context) 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) voidFilledMapItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidItemStack.onCraft(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.postHit(LivingEntity target, PlayerEntity attacker) 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, @Nullable 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 static StringWrittenBookItem.textToJson(@Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player, String text) 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.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.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(int id, 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.network.packet.s2c.play
Constructors in net.minecraft.network.packet.s2c.play with parameters of type PlayerEntity -
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 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.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.(package private) static voidPlayerScreenHandler.onEquipStack(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) 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.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, class_8566 craftingInventory, CraftingResultInventory resultInventory) 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 TypeMethodDescriptionbooleanSlot.canTakeItems(PlayerEntity playerEntity) booleanSlot.canTakePartial(PlayerEntity player) voidCraftingResultSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidFurnaceOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidTradeOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) Slot.takeStackRange(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, class_8566 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 except, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidServerWorld.playSoundFromEntity(@Nullable PlayerEntity except, 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 PlayerEntityModifier and TypeMethodDescriptionTestContext.createMockCreativePlayer()TestContext.createMockSurvivalPlayer()Methods 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) default voidMerchant.sendOffers(PlayerEntity player, Text test, 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.village.raid
Methods in net.minecraft.village.raid 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 TypeMethodDescriptionbooleanWorld.canPlayerModifyAt(PlayerEntity player, BlockPos pos) Returns whetherplayercan modify blocks atpos.CommandBlockExecutor.interact(PlayerEntity player) WorldSaveHandler.loadPlayerData(PlayerEntity player) voidChunkRegion.playSound(@Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSound(@Nullable PlayerEntity except, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSound(@Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorld.playSound(@Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSound(@Nullable PlayerEntity except, 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 except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorldSaveHandler.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
AbstractBlock.AbstractBlockState.calcBlockBreakingDelta(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos)instead.