Uses of Class
net.minecraft.entity.player.PlayerEntity
Packages that use PlayerEntity
Package
Description
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 stack) voidBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidIceBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidTallPlantBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidTurtleEggBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) 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) 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) voidNoteBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) voidRedstoneOreBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) voidStairsBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) voidAbstractFireBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidBedBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidBeehiveBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidDoorBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidPistonHeadBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidShulkerBoxBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidTallPlantBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidTntBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) voidTripwireBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) 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) AbstractButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.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.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.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.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.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 voidAbstractButtonBlock.playClickSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered) protected voidTrapdoorBlock.playToggleSound(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open) private static voidLecternBlock.putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) booleanBellBlock.ring(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean bool) 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) protected static ActionResultCakeBlock.tryEat(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) -
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> predicate, SoundEvent soundEvent) static ActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) CauldronBehavior.interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
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) booleanAbstractFurnaceBlockEntity.canPlayerUse(PlayerEntity player) booleanBrewingStandBlockEntity.canPlayerUse(PlayerEntity player) booleanEnderChestBlockEntity.canPlayerUse(PlayerEntity player) booleanLootableContainerBlockEntity.canPlayerUse(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) BeaconBlockEntity.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) LecternBlockEntity.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) LockableContainerBlockEntity.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) LootableContainerBlockEntity.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) private ServerCommandSourceLecternBlockEntity.getCommandSource(@Nullable 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) voidLecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player) voidAbstractFurnaceBlockEntity.unlockLastRecipe(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 voidInGameHud.renderHealthBar(MatrixStack matrices, PlayerEntity player, int x, int y, int lines, int regeneratingHeartIndex, float maxHealth, int lastHealth, int health, int absorption, boolean blinking) private voidInGameHud.renderHotbarItem(int x, int y, float tickDelta, 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) voidCreativeInventoryScreen.CreativeSlot.onTakeItem(PlayerEntity player, ItemStack stack) CreativeInventoryScreen.CreativeScreenHandler.transferSlot(PlayerEntity player, int index) Constructors in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntityModifierConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) CreativeInventoryScreen(PlayerEntity player) 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, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidClientWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, 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.create(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) Entity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.Entity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) booleanEntity.isInvisibleTo(PlayerEntity player) static voidEntityType.loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable NbtCompound itemNbt) voidEntity.onPlayerCollision(PlayerEntity player) voidExperienceOrbEntity.onPlayerCollision(PlayerEntity player) voidItemEntity.onPlayerCollision(PlayerEntity player) 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.spawn(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) 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) 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) -
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) 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 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) 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) intVillagerEntity.getReputation(PlayerEntity player) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) AbstractDonkeyEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultAllayEntity.interactMob(PlayerEntity player, Hand hand) AnimalEntity.interactMob(PlayerEntity player, Hand hand) AxolotlEntity.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) 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) protected voidFoxEntity.onPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidAbstractHorseEntity.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 booleanLlamaEntity.receiveFood(PlayerEntity player, ItemStack item) voidMerchantEntity.setCustomer(@Nullable PlayerEntity customer) voidVillagerEntity.setCustomer(@Nullable PlayerEntity customer) voidTameableEntity.setOwner(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) 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) voidTridentEntity.onPlayerCollision(PlayerEntity player) 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 inv, PlayerEntity player) StorageMinecartEntity.createMenu(int syncId, PlayerInventory inv, 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.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.default ActionResultVehicleInventory.open(BiConsumer<GameEvent, Entity> gameEventEmitter, 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) 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) Checks if a player can break a block while holding the item.booleanItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Checks if a player can break a block while holding the item.booleanSwordItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Checks if a player can break a block while holding the item.booleanTridentItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner) Checks if 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) static TypedActionResult<ItemStack>ItemUsage.consumeHeldItem(World world, PlayerEntity player, Hand hand) 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) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) 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) booleanItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) 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) booleanItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) 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 an item is used by a player.BoatItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BowItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BucketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BundleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.CrossbowItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.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 an item is used by a player.ElytraItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EmptyMapItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderEyeItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderPearlItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ExperienceBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FireworkRocketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FishingRodItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.GlassBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.GoatHornItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.HoneyBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.Item.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ItemStack.use(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.LingeringPotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.MilkBucketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.OnAStickItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.PlaceableOnWaterItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.PotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ShieldItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SnowballItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpawnEggItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SplashPotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpyglassItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ThrowablePotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.TridentItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WritableBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WrittenBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) ItemStack.useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) 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) -
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) booleanBeaconScreenHandler.canUse(PlayerEntity player) booleanBrewingStandScreenHandler.canUse(PlayerEntity player) booleanCartographyTableScreenHandler.canUse(PlayerEntity player) booleanCraftingScreenHandler.canUse(PlayerEntity player) booleanEnchantmentScreenHandler.canUse(PlayerEntity player) booleanForgingScreenHandler.canUse(PlayerEntity player) booleanGeneric3x3ContainerScreenHandler.canUse(PlayerEntity player) booleanGenericContainerScreenHandler.canUse(PlayerEntity player) booleanGrindstoneScreenHandler.canUse(PlayerEntity player) booleanHopperScreenHandler.canUse(PlayerEntity player) booleanHorseScreenHandler.canUse(PlayerEntity player) booleanLecternScreenHandler.canUse(PlayerEntity player) booleanLoomScreenHandler.canUse(PlayerEntity player) booleanMerchantScreenHandler.canUse(PlayerEntity player) booleanPlayerScreenHandler.canUse(PlayerEntity player) abstract booleanScreenHandler.canUse(PlayerEntity player) protected static booleanScreenHandler.canUse(ScreenHandlerContext context, PlayerEntity player, Block block) booleanShulkerBoxScreenHandler.canUse(PlayerEntity player) booleanStonecutterScreenHandler.canUse(PlayerEntity player) voidBeaconScreenHandler.close(PlayerEntity player) voidCartographyTableScreenHandler.close(PlayerEntity player) voidCraftingScreenHandler.close(PlayerEntity player) voidEnchantmentScreenHandler.close(PlayerEntity player) voidForgingScreenHandler.close(PlayerEntity player) voidGeneric3x3ContainerScreenHandler.close(PlayerEntity player) voidGenericContainerScreenHandler.close(PlayerEntity player) voidGrindstoneScreenHandler.close(PlayerEntity player) voidHopperScreenHandler.close(PlayerEntity player) voidHorseScreenHandler.close(PlayerEntity player) voidLoomScreenHandler.close(PlayerEntity player) voidMerchantScreenHandler.close(PlayerEntity player) voidPlayerScreenHandler.close(PlayerEntity player) voidScreenHandler.close(PlayerEntity player) voidShulkerBoxScreenHandler.close(PlayerEntity player) voidStonecutterScreenHandler.close(PlayerEntity player) ScreenHandlerFactory.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) SimpleNamedScreenHandlerFactory.createMenu(int syncId, PlayerInventory inv, PlayerEntity player) protected voidScreenHandler.dropInventory(PlayerEntity player, Inventory inventory) 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) booleanLecternScreenHandler.onButtonClick(PlayerEntity player, int id) booleanLoomScreenHandler.onButtonClick(PlayerEntity player, int id) booleanScreenHandler.onButtonClick(PlayerEntity player, int id) booleanStonecutterScreenHandler.onButtonClick(PlayerEntity player, int id) 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) static booleanScreenHandler.shouldQuickCraftContinue(int stage, PlayerEntity player) AbstractFurnaceScreenHandler.transferSlot(PlayerEntity player, int index) BeaconScreenHandler.transferSlot(PlayerEntity player, int index) BrewingStandScreenHandler.transferSlot(PlayerEntity player, int index) CartographyTableScreenHandler.transferSlot(PlayerEntity player, int index) CraftingScreenHandler.transferSlot(PlayerEntity player, int index) EnchantmentScreenHandler.transferSlot(PlayerEntity player, int index) ForgingScreenHandler.transferSlot(PlayerEntity player, int index) Generic3x3ContainerScreenHandler.transferSlot(PlayerEntity player, int index) GenericContainerScreenHandler.transferSlot(PlayerEntity player, int index) GrindstoneScreenHandler.transferSlot(PlayerEntity player, int index) HopperScreenHandler.transferSlot(PlayerEntity player, int index) HorseScreenHandler.transferSlot(PlayerEntity player, int index) LecternScreenHandler.transferSlot(PlayerEntity player, int index) LoomScreenHandler.transferSlot(PlayerEntity player, int index) MerchantScreenHandler.transferSlot(PlayerEntity player, int index) PlayerScreenHandler.transferSlot(PlayerEntity player, int index) abstract ItemStackScreenHandler.transferSlot(PlayerEntity player, int index) ShulkerBoxScreenHandler.transferSlot(PlayerEntity player, int index) StonecutterScreenHandler.transferSlot(PlayerEntity player, int index) protected static voidCraftingScreenHandler.updateResult(ScreenHandler handler, World world, PlayerEntity player, CraftingInventory 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, CraftingInventory 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
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, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidServerWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, 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 PlayerEntity -
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 player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorld.playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract 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 player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorldAccess.playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidWorld.playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) 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.