Uses of Class
net.minecraft.entity.player.PlayerEntity
-
Uses of PlayerEntity in net.minecraft.block
Methods in net.minecraft.block with parameters of type PlayerEntity Modifier and Type Method Description voidBeehiveBlock. 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)Deprecated.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.ActionResultAbstractBlock.AbstractBlockState. onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)ActionResultAbstractBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Deprecated.ActionResultAbstractButtonBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractCauldronBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractFurnaceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractSignBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAnvilBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBarrelBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBeaconBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBedBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBeehiveBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBellBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBrewingStandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCampfireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCandleBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCandleCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCartographyTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCaveVinesBodyBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCaveVinesHeadBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCommandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultComparatorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultComposterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCraftingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDaylightDetectorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDispenserBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDragonEggBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultEnchantingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultEnderChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFenceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFenceGateBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFletchingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFlowerPotBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultGrindstoneBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultHopperBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultJigsawBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultJukeboxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLecternBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLeverBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLightBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLoomBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultNoteBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultPistonExtensionBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultPumpkinBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRedstoneOreBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRedstoneWireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRepeaterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRespawnAnchorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultShulkerBoxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultSmithingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStairsBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStonecutterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStructureBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultSweetBerryBushBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultTntBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultTrapdoorBlock. 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 PlayerEntity Modifier and Type Method Description static 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)ActionResultCauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
Uses of PlayerEntity in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as PlayerEntity Modifier and Type Field Description private PlayerEntitySignBlockEntity. editorMethods in net.minecraft.block.entity that return PlayerEntity Modifier and Type Method Description PlayerEntitySignBlockEntity. getEditor()Methods in net.minecraft.block.entity with parameters of type PlayerEntity Modifier and Type Method Description voidBeehiveBlockEntity. 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)voidChestStateManager. closeChest(PlayerEntity player, World world, BlockPos pos, BlockState state)@Nullable ScreenHandlerBeaconBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)ScreenHandlerLecternBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)@Nullable ScreenHandlerLockableContainerBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)@Nullable ScreenHandlerLootableContainerBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)private ServerCommandSourceLecternBlockEntity. getCommandSource(@Nullable PlayerEntity player)protected abstract booleanChestStateManager. isPlayerViewing(PlayerEntity player)Determines whether the given player is currently viewing this chest.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)voidChestStateManager. openChest(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)voidSignBlockEntity. setEditor(PlayerEntity player)voidAbstractFurnaceBlockEntity. unlockLastRecipe(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud that return PlayerEntity Modifier and Type Method Description private PlayerEntityInGameHud. getCameraPlayer()Methods in net.minecraft.client.gui.hud with parameters of type PlayerEntity Modifier and Type Method Description private static @Nullable BlockStateInGameOverlayRenderer. getInWallBlockState(PlayerEntity player)private voidInGameHud. renderHotbarItem(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int int2) -
Uses of PlayerEntity in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as PlayerEntity Modifier and Type Field Description private PlayerEntityAnvilScreen. field_29348private PlayerEntityBookEditScreen. playerMethods in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntity Modifier and Type Method Description booleanCreativeInventoryScreen.CreativeSlot. canTakeItems(PlayerEntity playerEntity)booleanCreativeInventoryScreen.LockableSlot. canTakeItems(PlayerEntity playerEntity)booleanCreativeInventoryScreen.CreativeScreenHandler. canUse(PlayerEntity player)voidCreativeInventoryScreen.CreativeSlot. onTakeItem(PlayerEntity player, ItemStack stack)ItemStackCreativeInventoryScreen.CreativeScreenHandler. transferSlot(PlayerEntity player, int index)Constructors in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntity Constructor Description BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand)CreativeInventoryScreen(PlayerEntity player)CreativeScreenHandler(PlayerEntity playerEntity)InventoryScreen(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.network
Subclasses of PlayerEntity in net.minecraft.client.network Modifier and Type Class Description classAbstractClientPlayerEntityclassClientPlayerEntityRepresents the client's own player entity.classOtherClientPlayerEntityRepresents 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 PlayerEntity Modifier and Type Method Description voidClientPlayerInteractionManager. attackEntity(PlayerEntity player, Entity target)voidClientPlayerInteractionManager. clickSlot(int syncId, int slotId, int clickData, SlotActionType actionType, PlayerEntity playerEntity)voidClientPlayerInteractionManager. copyAbilities(PlayerEntity player)private static ItemStackClientPlayNetworkHandler. getActiveTotemOfUndying(PlayerEntity player)ActionResultClientPlayerInteractionManager. interactEntity(PlayerEntity player, Entity entity, Hand hand)ActionResultClientPlayerInteractionManager. interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)ActionResultClientPlayerInteractionManager. interactItem(PlayerEntity player, World world, Hand hand)voidClientPlayerInteractionManager. stopUsingItem(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type PlayerEntity Modifier and Type Method Description voidWorldRenderer. processWorldEvent(PlayerEntity source, int eventId, BlockPos pos, int data) -
Uses of PlayerEntity in net.minecraft.client.render.entity
Fields in net.minecraft.client.render.entity with type parameters of type PlayerEntity Modifier and Type Field Description private Map<String,EntityRenderer<? extends PlayerEntity>>EntityRenderDispatcher. modelRenderersMethods in net.minecraft.client.render.entity that return types with arguments of type PlayerEntity Modifier and Type Method Description static 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 PlayerEntity Modifier and Type Class Description classPlayerHeldItemFeatureRenderer<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 PlayerEntity Modifier and Type Field Description private PlayerEntityMinecartInsideSoundInstance. playerConstructors in net.minecraft.client.sound with parameters of type PlayerEntity Constructor Description MinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean bool) -
Uses of PlayerEntity in net.minecraft.client.world
Methods in net.minecraft.client.world with parameters of type PlayerEntity Modifier and Type Method Description voidClientWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)voidClientWorld. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)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 PlayerEntity Modifier and Type Field Description protected @Nullable PlayerEntityLivingEntity. attackingPlayerprivate PlayerEntityExperienceOrbEntity. targetFields in net.minecraft.entity with type parameters of type PlayerEntity Modifier and Type Field Description static EntityType<PlayerEntity>EntityType. PLAYERMethods in net.minecraft.entity with parameters of type PlayerEntity Modifier and Type Method Description TEntityType. create(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)protected intLivingEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.ActionResultEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultEntity. 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)private intExperienceOrbEntity. method_35051(PlayerEntity playerEntity, int int2)voidEntity. onPlayerCollision(PlayerEntity player)voidExperienceOrbEntity. onPlayerCollision(PlayerEntity player)voidItemEntity. onPlayerCollision(PlayerEntity player)voidLivingEntity. setAttacking(@Nullable PlayerEntity attacking)TEntityType. spawn(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)@Nullable EntityEntityType. 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 PlayerEntity Modifier and Type Field Description static MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_PLAYER_HOLDING_WANTED_ITEMstatic MemoryModuleType<List<PlayerEntity>>MemoryModuleType. NEAREST_PLAYERSstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLDstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_VISIBLE_PLAYERstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_VISIBLE_TARGETABLE_PLAYERstatic 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 Modifier and Type Method Description private booleanTemptationsSensor. test(PlayerEntity player) -
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 PlayerEntity Modifier and Type Method Description private 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 PlayerEntity Modifier and Type Method Description private 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 PlayerEntity Modifier and Type Field Description private PlayerEntityWolfBegGoal. begFromprotected PlayerEntityTemptGoal. closestPlayerprivate PlayerEntityChaseBoatGoal. passengerMethods in net.minecraft.entity.ai.goal with parameters of type PlayerEntity Modifier and Type Method Description private booleanWolfBegGoal. isAttractive(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.boss.dragon.phase
Methods in net.minecraft.entity.boss.dragon.phase with parameters of type PlayerEntity Modifier and Type Method Description voidAbstractPhase. 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 Modifier and Type Method Description static DamageSourceDamageSource. player(PlayerEntity attacker) -
Uses of PlayerEntity in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration with parameters of type PlayerEntity Modifier and Type Method Description private booleanArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)ActionResultItemFrameEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultLeashKnotEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultArmorStandEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) -
Uses of PlayerEntity in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as PlayerEntity Modifier and Type Field Description private PlayerEntityEndermanEntity.TeleportTowardsPlayerGoal. targetPlayerFields in net.minecraft.entity.mob with type parameters of type PlayerEntity Modifier and Type Field Description private DisableableFollowTargetGoal<PlayerEntity>WitchEntity. attackPlayerGoalMethods in net.minecraft.entity.mob that return types with arguments of type PlayerEntity Modifier and Type Method Description static Optional<PlayerEntity>PiglinBrain. getNearestDetectedPlayer(AbstractPiglinEntity piglin)Methods in net.minecraft.entity.mob with parameters of type PlayerEntity Modifier and Type Method Description booleanAmbientEntity. 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> list)default voidAngerable. forgive(PlayerEntity player)protected intHoglinEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intMobEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intPiglinEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intWaterCreatureEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intZombieEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.ActionResultMobEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.protected ActionResultCreeperEntity. interactMob(PlayerEntity player, Hand hand)ActionResultHoglinEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultMobEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPiglinEntity. interactMob(PlayerEntity player, Hand hand)ActionResultSkeletonHorseEntity. interactMob(PlayerEntity player, Hand hand)ActionResultZombieHorseEntity. interactMob(PlayerEntity player, Hand hand)ActionResultZombieVillagerEntity. interactMob(PlayerEntity player, Hand hand)private ActionResultMobEntity. interactWithItem(PlayerEntity player, Hand hand)booleanHostileEntity. isAngryAt(PlayerEntity player)booleanZombifiedPiglinEntity. isAngryAt(PlayerEntity player)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 PlayerEntity Modifier and Type Field Description private PlayerEntityDolphinEntity.SwimWithPlayerGoal. closestPlayerprivate @Nullable PlayerEntityMerchantEntity. customerprivate @Nullable PlayerEntityVillagerEntity. lastCustomerprivate PlayerEntityCatEntity.SleepWithOwnerGoal. ownerprivate @Nullable PlayerEntityCatEntity.TemptGoal. playerFields in net.minecraft.entity.passive with type parameters of type PlayerEntity Modifier and Type Field Description private CatEntity.CatFleeGoal<PlayerEntity>CatEntity. fleeGoalprivate OcelotEntity.FleeGoal<PlayerEntity>OcelotEntity. fleeGoalMethods in net.minecraft.entity.passive that return PlayerEntity Modifier and Type Method Description @Nullable PlayerEntityMerchantEntity. getCurrentCustomer()Methods in net.minecraft.entity.passive with parameters of type PlayerEntity Modifier and Type Method Description private voidVillagerEntity. beginTradeWith(PlayerEntity customer)booleanHorseBaseEntity. bondWithPlayer(PlayerEntity player)static voidAxolotlEntity. buffPlayer(PlayerEntity playerEntity)booleanAxolotlEntity. canBeLeashedBy(PlayerEntity player)booleanDolphinEntity. canBeLeashedBy(PlayerEntity player)booleanMerchantEntity. canBeLeashedBy(PlayerEntity player)booleanPandaEntity. canBeLeashedBy(PlayerEntity player)booleanTameableEntity. canBeLeashedBy(PlayerEntity player)booleanTurtleEntity. canBeLeashedBy(PlayerEntity player)booleanWolfEntity. canBeLeashedBy(PlayerEntity player)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)intVillagerEntity. getReputation(PlayerEntity player)protected intAnimalEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intChickenEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.ActionResultHorseBaseEntity. interactHorse(PlayerEntity player, ItemStack stack)ActionResultAbstractDonkeyEntity. interactMob(PlayerEntity player, Hand hand)ActionResultAnimalEntity. interactMob(PlayerEntity player, Hand hand)ActionResultAxolotlEntity. interactMob(PlayerEntity player, Hand hand)ActionResultCatEntity. interactMob(PlayerEntity player, Hand hand)ActionResultCowEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultDolphinEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultFishEntity. interactMob(PlayerEntity player, Hand hand)ActionResultGoatEntity. interactMob(PlayerEntity player, Hand hand)ActionResultHorseEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultIronGolemEntity. interactMob(PlayerEntity player, Hand hand)ActionResultMooshroomEntity. interactMob(PlayerEntity player, Hand hand)ActionResultOcelotEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPandaEntity. interactMob(PlayerEntity player, Hand hand)ActionResultParrotEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPigEntity. interactMob(PlayerEntity player, Hand hand)ActionResultSheepEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultSnowGolemEntity. interactMob(PlayerEntity player, Hand hand)ActionResultStriderEntity. interactMob(PlayerEntity player, Hand hand)ActionResultVillagerEntity. interactMob(PlayerEntity player, Hand hand)ActionResultWanderingTraderEntity. interactMob(PlayerEntity player, Hand hand)ActionResultWolfEntity. interactMob(PlayerEntity player, Hand hand)voidAnimalEntity. lovePlayer(@Nullable PlayerEntity player)voidPufferfishEntity. onPlayerCollision(PlayerEntity player)protected voidFoxEntity. onPlayerSpawnedChild(PlayerEntity player, MobEntity child)voidHorseBaseEntity. openInventory(PlayerEntity player)private voidVillagerEntity. prepareOffersFor(PlayerEntity player)protected voidHorseBaseEntity. putPlayerOnBack(PlayerEntity player)protected voidTraderLlamaEntity. putPlayerOnBack(PlayerEntity player)protected booleanHorseBaseEntity. receiveFood(PlayerEntity player, ItemStack item)protected booleanLlamaEntity. receiveFood(PlayerEntity player, ItemStack item)voidMerchantEntity. setCurrentCustomer(@Nullable PlayerEntity customer)voidVillagerEntity. setCurrentCustomer(@Nullable PlayerEntity customer)voidTameableEntity. setOwner(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as PlayerEntity Modifier and Type Field Description PlayerEntityPlayerInventory. playerMethods in net.minecraft.entity.player with parameters of type PlayerEntity Modifier and Type Method Description booleanPlayerInventory. canPlayerUse(PlayerEntity player)protected intPlayerEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.booleanPlayerEntity. shouldDamagePlayer(PlayerEntity player)voidHungerManager. update(PlayerEntity player)Constructors in net.minecraft.entity.player with parameters of type PlayerEntity Constructor Description PlayerInventory(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return PlayerEntity Modifier and Type Method Description @Nullable PlayerEntityFishingBobberEntity. getPlayerOwner()Methods in net.minecraft.entity.projectile with parameters of type PlayerEntity Modifier and Type Method Description voidPersistentProjectileEntity. 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 PlayerEntity Constructor Description FishingBobberEntity(PlayerEntity thrower, World world, int lureLevel, int luckOfTheSeaLevel) -
Uses of PlayerEntity in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type PlayerEntity Modifier and Type Method Description booleanStorageMinecartEntity. canPlayerUse(PlayerEntity player)@Nullable ScreenHandlerStorageMinecartEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)voidStorageMinecartEntity. generateLoot(@Nullable PlayerEntity player)ActionResultBoatEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultCommandBlockMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultFurnaceMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultStorageMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity. -
Uses of PlayerEntity in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type PlayerEntity Modifier and Type Method Description booleanCraftingInventory. 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 PlayerEntity Modifier and Type Field Description private @Nullable PlayerEntityItemUsageContext. playerMethods in net.minecraft.item that return PlayerEntity Modifier and Type Method Description @Nullable PlayerEntityItemUsageContext. getPlayer()Methods in net.minecraft.item with parameters of type PlayerEntity Modifier and Type Method Description static 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)@Nullable Packet<?>FilledMapItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.@Nullable Packet<?>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)List<Text>ItemStack. getTooltip(@Nullable PlayerEntity player, TooltipContext context)private static StringWrittenBookItem. method_33826(@Nullable ServerCommandSource serverCommandSource, @Nullable PlayerEntity playerEntity, String string)booleanBundleItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItemStack. onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)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)voidBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)voidEntityBucketItem. 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)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)Optional<MobEntity>SpawnEggItem. spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)TypedActionResult<ItemStack>ArmorItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BoatItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BundleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>CrossbowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.private voidDebugStickItem. use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)TypedActionResult<ItemStack>EggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ElytraItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EmptyMapItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderEyeItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderPearlItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ExperienceBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FireworkItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FishingRodItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>GlassBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>HoneyBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>Item. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ItemStack. use(World world, PlayerEntity user, Hand hand)TypedActionResult<ItemStack>KnowledgeBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LilyPadItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LingeringPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>MilkBucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>OnAStickItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>PotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ShieldItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SnowballItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpawnEggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SplashPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpyglassItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ThrowablePotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>TridentItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>WritableBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>WrittenBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.ActionResultDyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItemStack. useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)ActionResultNameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultSaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)static booleanBlockItem. writeTagToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack)Constructors in net.minecraft.item with parameters of type PlayerEntity Constructor Description ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit)ItemUsageContext(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 PlayerEntity Modifier and Type Field Description PlayerEntityMapState.PlayerUpdateTracker. playerFields in net.minecraft.item.map with type parameters of type PlayerEntity Modifier and Type Field Description private Map<PlayerEntity,MapState.PlayerUpdateTracker>MapState. updateTrackersByPlayerMethods in net.minecraft.item.map with parameters of type PlayerEntity Modifier and Type Method Description @Nullable Packet<?>MapState. getPlayerMarkerPacket(int id, PlayerEntity player)MapState.PlayerUpdateTrackerMapState. getPlayerSyncData(PlayerEntity player)voidMapState. update(PlayerEntity player, ItemStack stack)Constructors in net.minecraft.item.map with parameters of type PlayerEntity Constructor Description PlayerUpdateTracker(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type PlayerEntity Modifier and Type Field Description static 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 Constructor Description PlayerSpawnS2CPacket(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.recipe
Methods in net.minecraft.recipe with parameters of type PlayerEntity Modifier and Type Method Description default voidRecipeUnlocker. unlockLastRecipe(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.screen
Fields in net.minecraft.screen declared as PlayerEntity Modifier and Type Field Description private PlayerEntityPlayerScreenHandler. ownerprivate PlayerEntityCraftingScreenHandler. playerprotected PlayerEntityForgingScreenHandler. playerMethods in net.minecraft.screen with parameters of type PlayerEntity Modifier and Type Method Description protected 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)@Nullable ScreenHandlerScreenHandlerFactory. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)ScreenHandlerSimpleNamedScreenHandlerFactory. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)protected voidScreenHandler. dropInventory(PlayerEntity player, Inventory inventory)private voidScreenHandler. internalOnSlotClick(int slotIndex, int clickData, 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 clickData, 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)ItemStackAbstractFurnaceScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBeaconScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBrewingStandScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCartographyTableScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCraftingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackEnchantmentScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackForgingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGeneric3x3ContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGenericContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGrindstoneScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHopperScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHorseScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackLoomScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackMerchantScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackPlayerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackShulkerBoxScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackStonecutterScreenHandler. transferSlot(PlayerEntity player, int index)protected static voidCraftingScreenHandler. updateResult(ScreenHandler screenHandler, World world, PlayerEntity player, CraftingInventory craftingInventory, CraftingResultInventory resultInventory)Constructors in net.minecraft.screen with parameters of type PlayerEntity Constructor Description PlayerScreenHandler(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
Uses of PlayerEntity in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as PlayerEntity Modifier and Type Field Description private PlayerEntityCraftingResultSlot. playerprivate PlayerEntityFurnaceOutputSlot. playerprivate PlayerEntityTradeOutputSlot. playerMethods in net.minecraft.screen.slot with parameters of type PlayerEntity Modifier and Type Method Description booleanSlot. 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)ItemStackSlot. takeStackRange(int min, int max, PlayerEntity player)Optional<ItemStack>Slot. tryTakeStackRange(int min, int max, PlayerEntity player)Constructors in net.minecraft.screen.slot with parameters of type PlayerEntity Constructor Description CraftingResultSlot(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 PlayerEntity Modifier and Type Method Description ServerStatHandlerPlayerManager. 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.dedicated
Methods in net.minecraft.server.dedicated with parameters of type PlayerEntity Modifier and Type Method Description booleanMinecraftDedicatedServer. isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.network
Subclasses of PlayerEntity in net.minecraft.server.network Modifier and Type Class Description classServerPlayerEntityMethods in net.minecraft.server.network with parameters of type PlayerEntity Modifier and Type Method Description booleanServerPlayerEntity. shouldDamagePlayer(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type PlayerEntity Modifier and Type Method Description booleanServerWorld. canPlayerModifyAt(PlayerEntity player, BlockPos pos)voidServerWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)voidServerWorld. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)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 PlayerEntity Modifier and Type Method Description voidStatHandler. 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 Modifier and Type Method Description PlayerEntityStartupParameter. method_36021() -
Uses of PlayerEntity in net.minecraft.village
Fields in net.minecraft.village declared as PlayerEntity Modifier and Type Field Description private PlayerEntitySimpleMerchant. playerMethods in net.minecraft.village that return PlayerEntity Modifier and Type Method Description @Nullable PlayerEntityMerchant. getCurrentCustomer()PlayerEntitySimpleMerchant. getCurrentCustomer()Methods in net.minecraft.village with parameters of type PlayerEntity Modifier and Type Method Description booleanMerchantInventory. canPlayerUse(PlayerEntity player)default voidMerchant. sendOffers(PlayerEntity player, Text test, int levelProgress)voidMerchant. setCurrentCustomer(@Nullable PlayerEntity customer)voidSimpleMerchant. setCurrentCustomer(@Nullable PlayerEntity customer)Constructors in net.minecraft.village with parameters of type PlayerEntity Constructor Description SimpleMerchant(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.village.raid
Methods in net.minecraft.village.raid with parameters of type PlayerEntity Modifier and Type Method Description voidRaid. start(PlayerEntity player) -
Uses of PlayerEntity in net.minecraft.world
Methods in net.minecraft.world that return PlayerEntity Modifier and Type Method Description @Nullable PlayerEntityChunkRegion. 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 PlayerEntity Modifier and Type Method Description List<PlayerEntity>ChunkRegion. 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 PlayerEntity Modifier and Type Method Description booleanWorld. canPlayerModifyAt(PlayerEntity player, BlockPos pos)ActionResultCommandBlockExecutor. interact(PlayerEntity player)@Nullable NbtCompoundWorldSaveHandler. loadPlayerData(PlayerEntity player)voidChunkRegion. playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)abstract voidWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)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)abstract voidWorld. playSoundFromEntity(@Nullable PlayerEntity player, 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 PlayerEntity Modifier and Type Field Description private Map<PlayerEntity,Vec3d>Explosion. affectedPlayersMethods in net.minecraft.world.explosion that return types with arguments of type PlayerEntity Modifier and Type Method Description Map<PlayerEntity,Vec3d>Explosion. getAffectedPlayers()