Uses of Class
net.minecraft.entity.player.PlayerEntity
Packages that use PlayerEntity
Package
Description
-
Uses of PlayerEntity in net.minecraft.block
Methods in net.minecraft.block with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoid
BeehiveBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
Block.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
IceBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
TallPlantBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
TurtleEggBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
float
AbstractBlock.AbstractBlockState.calcBlockBreakingDelta(PlayerEntity player, BlockView world, BlockPos pos)
float
AbstractBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
Deprecated.float
BambooBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
float
BambooSaplingBlock.calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
static void
AbstractCandleBlock.extinguish(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos)
void
AbstractBlock.AbstractBlockState.onBlockBreakStart(World world, BlockPos pos, PlayerEntity player)
void
AbstractBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
Deprecated.void
DragonEggBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
void
NoteBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
void
RedstoneOreBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
void
StairsBlock.onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
void
AbstractFireBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
BedBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
BeehiveBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
Block.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
DoorBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
PistonHeadBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
ShulkerBoxBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
TallPlantBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
TntBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
void
TripwireBlock.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
protected static void
TallPlantBlock.onBreakInCreative(World world, BlockPos pos, BlockState state, PlayerEntity player)
Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.AbstractBlock.AbstractBlockState.onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)
AbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Deprecated.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 void
AbstractFurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player)
protected void
BlastFurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player)
protected void
FurnaceBlock.openScreen(World world, BlockPos pos, PlayerEntity player)
private void
LecternBlock.openScreen(World world, BlockPos pos, PlayerEntity player)
protected void
SmokerBlock.openScreen(World world, BlockPos pos, PlayerEntity player)
protected void
AbstractButtonBlock.playClickSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered)
protected void
TrapdoorBlock.playToggleSound(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open)
private static void
LecternBlock.putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)
static boolean
LecternBlock.putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)
boolean
BellBlock.ring(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean bool)
protected void
AbstractFireBlock.spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state)
protected void
Block.spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state)
void
BeehiveBlock.takeHoney(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState)
protected static ActionResult
CakeBlock.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 ActionResult
CauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent)
static ActionResult
CauldronBehavior.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 TypeMethodDescriptionvoid
BeehiveBlockEntity.angerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState)
boolean
AbstractFurnaceBlockEntity.canPlayerUse(PlayerEntity player)
boolean
BrewingStandBlockEntity.canPlayerUse(PlayerEntity player)
boolean
EnderChestBlockEntity.canPlayerUse(PlayerEntity player)
boolean
LootableContainerBlockEntity.canPlayerUse(PlayerEntity player)
void
LootableContainerBlockEntity.checkLootInteraction(@Nullable PlayerEntity player)
boolean
LockableContainerBlockEntity.checkUnlocked(PlayerEntity player)
static boolean
LockableContainerBlockEntity.checkUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)
boolean
LootableContainerBlockEntity.checkUnlocked(PlayerEntity player)
void
ChestStateManager.closeChest(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 ServerCommandSource
LecternBlockEntity.getCommandSource(@Nullable PlayerEntity player)
protected abstract boolean
ChestStateManager.isPlayerViewing(PlayerEntity player)
Determines whether the given player is currently viewing this chest.void
BarrelBlockEntity.onClose(PlayerEntity player)
void
ChestBlockEntity.onClose(PlayerEntity player)
void
EnderChestBlockEntity.onClose(PlayerEntity player)
void
ShulkerBoxBlockEntity.onClose(PlayerEntity player)
void
BarrelBlockEntity.onOpen(PlayerEntity player)
void
ChestBlockEntity.onOpen(PlayerEntity player)
void
EnderChestBlockEntity.onOpen(PlayerEntity player)
void
ShulkerBoxBlockEntity.onOpen(PlayerEntity player)
void
ChestStateManager.openChest(PlayerEntity player, World world, BlockPos pos, BlockState state)
boolean
StructureBlockBlockEntity.openScreen(PlayerEntity player)
private ItemStack
LecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player)
void
LecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player)
void
AbstractFurnaceBlockEntity.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 TypeMethodDescriptionprivate static @Nullable BlockState
InGameOverlayRenderer.getInWallBlockState(PlayerEntity player)
private void
InGameHud.method_37298(MatrixStack matrixStack, PlayerEntity playerEntity, int int2, int int3, int int4, int int5, float float2, int int6, int int7, int int8, boolean bool)
(package private) static InGameHud.class_6411
InGameHud.class_6411.method_37301(PlayerEntity playerEntity)
private void
InGameHud.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 PlayerEntityModifier and TypeFieldDescriptionprivate PlayerEntity
AnvilScreen.player
private PlayerEntity
BookEditScreen.player
Methods in net.minecraft.client.gui.screen.ingame with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
CreativeInventoryScreen.CreativeSlot.canTakeItems(PlayerEntity playerEntity)
boolean
CreativeInventoryScreen.LockableSlot.canTakeItems(PlayerEntity playerEntity)
boolean
CreativeInventoryScreen.CreativeScreenHandler.canUse(PlayerEntity player)
void
CreativeInventoryScreen.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 TypeClassDescriptionclass
class
Represents the client's own player entity.class
Represents a player entity that is present on the client but is not the client's own player.Methods in net.minecraft.client.network with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.attackEntity(PlayerEntity player, Entity target)
void
ClientPlayerInteractionManager.clickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity playerEntity)
void
ClientPlayerInteractionManager.copyAbilities(PlayerEntity player)
private static ItemStack
ClientPlayNetworkHandler.getActiveTotemOfUndying(PlayerEntity player)
ClientPlayerInteractionManager.interactEntity(PlayerEntity player, Entity entity, Hand hand)
ClientPlayerInteractionManager.interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)
ClientPlayerInteractionManager.interactItem(PlayerEntity player, World world, Hand hand)
void
ClientPlayerInteractionManager.stopUsingItem(PlayerEntity player)
-
Uses of PlayerEntity in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type PlayerEntityModifier and TypeMethodDescriptionvoid
WorldRenderer.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 PlayerEntityModifier and TypeFieldDescriptionprivate Map<String,EntityRenderer<? extends PlayerEntity>>
EntityRenderDispatcher.modelRenderers
Methods 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 TypeClassDescriptionclass
PlayerHeldItemFeatureRenderer<T extends PlayerEntity,M extends EntityModel<T> & ModelWithArms & ModelWithHead>
class
ShoulderParrotFeatureRenderer<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 TypeMethodDescriptionvoid
ClientWorld.playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
ClientWorld.playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
ClientWorld.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 PlayerEntity
LivingEntity.attackingPlayer
private PlayerEntity
ExperienceOrbEntity.target
Fields 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)
protected int
LivingEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.Entity.interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.Entity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
boolean
Entity.isInvisibleTo(PlayerEntity player)
static void
EntityType.loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable NbtCompound itemNbt)
void
Entity.onPlayerCollision(PlayerEntity player)
void
ExperienceOrbEntity.onPlayerCollision(PlayerEntity player)
void
ItemEntity.onPlayerCollision(PlayerEntity player)
private int
ExperienceOrbEntity.repairPlayerGears(PlayerEntity player, int amount)
Repairs a player's gears using the experience recursively, until the experience is all used or all gears are repaired.void
LivingEntity.setAttacking(@Nullable PlayerEntity attacking)
EntityType.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 MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_PLAYER_HOLDING_WANTED_ITEM
static MemoryModuleType<List<PlayerEntity>>
MemoryModuleType.NEAREST_PLAYERS
static MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLD
static MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_VISIBLE_PLAYER
static MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_VISIBLE_TARGETABLE_PLAYER
static 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 boolean
GiveGiftsToHeroTask.isCloseEnough(VillagerEntity villager, PlayerEntity player)
private boolean
GiveGiftsToHeroTask.isHero(PlayerEntity player)
-
Uses of PlayerEntity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as PlayerEntityModifier and TypeFieldDescriptionprivate PlayerEntity
WolfBegGoal.begFrom
protected PlayerEntity
TemptGoal.closestPlayer
private PlayerEntity
ChaseBoatGoal.passenger
Methods 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 TypeMethodDescriptionvoid
AbstractPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)
void
HoldingPatternPhase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)
void
Phase.crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)
private void
HoldingPatternPhase.strafePlayer(PlayerEntity player)
-
Uses of PlayerEntity in net.minecraft.entity.damage
Methods in net.minecraft.entity.damage with parameters of type PlayerEntityModifier and TypeMethodDescriptionstatic DamageSource
DamageSource.player(PlayerEntity attacker)
-
Uses of PlayerEntity in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate boolean
ArmorStandEntity.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 PlayerEntity
EndermanEntity.TeleportTowardsPlayerGoal.targetPlayer
Fields in net.minecraft.entity.mob with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate DisableableFollowTargetGoal<PlayerEntity>
WitchEntity.attackPlayerGoal
Methods 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 TypeMethodDescriptionboolean
AmbientEntity.canBeLeashedBy(PlayerEntity player)
boolean
HoglinEntity.canBeLeashedBy(PlayerEntity player)
boolean
MobEntity.canBeLeashedBy(PlayerEntity player)
boolean
WaterCreatureEntity.canBeLeashedBy(PlayerEntity player)
boolean
ZoglinEntity.canBeLeashedBy(PlayerEntity player)
private void
MobEntity.disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack)
private static void
PiglinBrain.dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list)
default void
Angerable.forgive(PlayerEntity player)
protected int
HoglinEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.protected int
MobEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.protected int
PiglinEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.protected int
WaterCreatureEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.protected int
ZombieEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.MobEntity.interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.protected ActionResult
CreeperEntity.interactMob(PlayerEntity player, Hand hand)
HoglinEntity.interactMob(PlayerEntity player, Hand hand)
protected ActionResult
MobEntity.interactMob(PlayerEntity player, Hand hand)
PiglinEntity.interactMob(PlayerEntity player, Hand hand)
SkeletonHorseEntity.interactMob(PlayerEntity player, Hand hand)
ZombieHorseEntity.interactMob(PlayerEntity player, Hand hand)
ZombieVillagerEntity.interactMob(PlayerEntity player, Hand hand)
private ActionResult
MobEntity.interactWithItem(PlayerEntity player, Hand hand)
boolean
HostileEntity.isAngryAt(PlayerEntity player)
boolean
ZombifiedPiglinEntity.isAngryAt(PlayerEntity player)
(package private) boolean
EndermanEntity.isPlayerStaring(PlayerEntity player)
static void
PiglinBrain.onGuardedBlockInteracted(PlayerEntity player, boolean blockOpen)
void
SlimeEntity.onPlayerCollision(PlayerEntity player)
protected void
MobEntity.onPlayerSpawnedChild(PlayerEntity player, MobEntity child)
static ActionResult
PiglinBrain.playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand)
void
Angerable.setAttacking(@Nullable PlayerEntity attacking)
-
Uses of PlayerEntity in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive declared as PlayerEntityModifier and TypeFieldDescriptionprivate PlayerEntity
DolphinEntity.SwimWithPlayerGoal.closestPlayer
private @Nullable PlayerEntity
MerchantEntity.customer
private @Nullable PlayerEntity
VillagerEntity.lastCustomer
private PlayerEntity
CatEntity.SleepWithOwnerGoal.owner
private @Nullable PlayerEntity
CatEntity.TemptGoal.player
Fields in net.minecraft.entity.passive with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate CatEntity.CatFleeGoal<PlayerEntity>
CatEntity.fleeGoal
private OcelotEntity.FleeGoal<PlayerEntity>
OcelotEntity.fleeGoal
Methods in net.minecraft.entity.passive that return PlayerEntityMethods in net.minecraft.entity.passive with parameters of type PlayerEntityModifier and TypeMethodDescriptionprivate void
VillagerEntity.beginTradeWith(PlayerEntity customer)
boolean
HorseBaseEntity.bondWithPlayer(PlayerEntity player)
void
AxolotlEntity.buffPlayer(PlayerEntity playerEntity)
boolean
AxolotlEntity.canBeLeashedBy(PlayerEntity player)
boolean
DolphinEntity.canBeLeashedBy(PlayerEntity player)
boolean
MerchantEntity.canBeLeashedBy(PlayerEntity player)
boolean
PandaEntity.canBeLeashedBy(PlayerEntity player)
boolean
SquidEntity.canBeLeashedBy(PlayerEntity player)
boolean
TameableEntity.canBeLeashedBy(PlayerEntity player)
boolean
TurtleEntity.canBeLeashedBy(PlayerEntity player)
boolean
WolfEntity.canBeLeashedBy(PlayerEntity player)
protected void
AnimalEntity.eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
AxolotlEntity.eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
CatEntity.eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
FoxEntity.eat(PlayerEntity player, Hand hand, ItemStack stack)
int
VillagerEntity.getReputation(PlayerEntity player)
protected int
AnimalEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.protected int
ChickenEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.HorseBaseEntity.interactHorse(PlayerEntity player, ItemStack stack)
AbstractDonkeyEntity.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 ActionResult
DolphinEntity.interactMob(PlayerEntity player, Hand hand)
protected ActionResult
FishEntity.interactMob(PlayerEntity player, Hand hand)
GoatEntity.interactMob(PlayerEntity player, Hand hand)
HorseEntity.interactMob(PlayerEntity player, Hand hand)
protected ActionResult
IronGolemEntity.interactMob(PlayerEntity player, Hand hand)
MooshroomEntity.interactMob(PlayerEntity player, Hand hand)
OcelotEntity.interactMob(PlayerEntity player, Hand hand)
PandaEntity.interactMob(PlayerEntity player, Hand hand)
ParrotEntity.interactMob(PlayerEntity player, Hand hand)
PigEntity.interactMob(PlayerEntity player, Hand hand)
SheepEntity.interactMob(PlayerEntity player, Hand hand)
protected ActionResult
SnowGolemEntity.interactMob(PlayerEntity player, Hand hand)
StriderEntity.interactMob(PlayerEntity player, Hand hand)
VillagerEntity.interactMob(PlayerEntity player, Hand hand)
WanderingTraderEntity.interactMob(PlayerEntity player, Hand hand)
WolfEntity.interactMob(PlayerEntity player, Hand hand)
void
AnimalEntity.lovePlayer(@Nullable PlayerEntity player)
void
PufferfishEntity.onPlayerCollision(PlayerEntity player)
protected void
FoxEntity.onPlayerSpawnedChild(PlayerEntity player, MobEntity child)
void
HorseBaseEntity.openInventory(PlayerEntity player)
private void
VillagerEntity.prepareOffersFor(PlayerEntity player)
protected void
HorseBaseEntity.putPlayerOnBack(PlayerEntity player)
protected void
TraderLlamaEntity.putPlayerOnBack(PlayerEntity player)
protected boolean
HorseBaseEntity.receiveFood(PlayerEntity player, ItemStack item)
protected boolean
LlamaEntity.receiveFood(PlayerEntity player, ItemStack item)
void
MerchantEntity.setCurrentCustomer(@Nullable PlayerEntity customer)
void
VillagerEntity.setCurrentCustomer(@Nullable PlayerEntity customer)
void
TameableEntity.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 TypeMethodDescriptionboolean
PlayerInventory.canPlayerUse(PlayerEntity player)
protected int
PlayerEntity.getXpToDrop(PlayerEntity player)
Called when this entity is killed and returns the amount of experience to drop.boolean
PlayerEntity.shouldDamagePlayer(PlayerEntity player)
void
HungerManager.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 TypeMethodDescriptionvoid
PersistentProjectileEntity.onPlayerCollision(PlayerEntity player)
void
TridentEntity.onPlayerCollision(PlayerEntity player)
private boolean
FishingBobberEntity.removeIfInvalid(PlayerEntity player)
protected boolean
PersistentProjectileEntity.tryPickup(PlayerEntity player)
protected boolean
TridentEntity.tryPickup(PlayerEntity player)
Constructors in net.minecraft.entity.projectile with parameters of type PlayerEntityModifierConstructorDescriptionFishingBobberEntity(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 PlayerEntityModifier and TypeMethodDescriptionboolean
StorageMinecartEntity.canPlayerUse(PlayerEntity player)
StorageMinecartEntity.createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
void
StorageMinecartEntity.generateLoot(@Nullable PlayerEntity player)
BoatEntity.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. -
Uses of PlayerEntity in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
CraftingInventory.canPlayerUse(PlayerEntity player)
boolean
CraftingResultInventory.canPlayerUse(PlayerEntity player)
boolean
DoubleInventory.canPlayerUse(PlayerEntity player)
boolean
EnderChestInventory.canPlayerUse(PlayerEntity player)
boolean
Inventory.canPlayerUse(PlayerEntity player)
boolean
SimpleInventory.canPlayerUse(PlayerEntity player)
void
DoubleInventory.onClose(PlayerEntity player)
void
EnderChestInventory.onClose(PlayerEntity player)
default void
Inventory.onClose(PlayerEntity player)
void
DoubleInventory.onOpen(PlayerEntity player)
void
EnderChestInventory.onOpen(PlayerEntity player)
default void
Inventory.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 ActionResult
LeadItem.attachHeldMobsToBlock(PlayerEntity player, World world, BlockPos pos)
boolean
DebugStickItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
Checks if a player can break a block while holding the item.boolean
Item.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
Checks if a player can break a block while holding the item.boolean
SwordItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
Checks if a player can break a block while holding the item.boolean
TridentItem.canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
Checks if a player can break a block while holding the item.protected boolean
DecorationItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)
protected boolean
ItemFrameItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)
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 boolean
BundleItem.dropAllBundledItems(ItemStack stack, PlayerEntity player)
static ItemStack
ItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)
static ItemStack
ItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)
protected ItemStack
GlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)
static ItemStack
BucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player)
ItemStack.getTooltip(@Nullable PlayerEntity player, TooltipContext context)
private static String
WrittenBookItem.method_33826(@Nullable ServerCommandSource serverCommandSource, @Nullable PlayerEntity playerEntity, String string)
boolean
BundleItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
boolean
Item.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
boolean
ItemStack.onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
void
FilledMapItem.onCraft(ItemStack stack, World world, PlayerEntity player)
Called when a player acquires the item by crafting, smelting, smithing, etc.void
Item.onCraft(ItemStack stack, World world, PlayerEntity player)
Called when a player acquires the item by crafting, smelting, smithing, etc.void
ItemStack.onCraft(World world, PlayerEntity player, int amount)
void
void
EntityBucketItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
default void
FluidModificationItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
boolean
BundleItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
boolean
Item.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
boolean
ItemStack.onStackClicked(Slot slot, ClickType clickType, PlayerEntity player)
boolean
BucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)
boolean
FluidModificationItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)
boolean
PowderSnowBucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)
protected void
BucketItem.playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos)
protected void
EntityBucketItem.playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos)
void
ItemStack.postHit(LivingEntity target, PlayerEntity attacker)
void
ItemStack.postMine(World world, BlockState state, BlockPos pos, PlayerEntity miner)
protected boolean
BlockItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)
protected boolean
SignItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)
protected static BlockHitResult
Item.raycast(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling)
static boolean
WrittenBookItem.resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player)
private static void
DebugStickItem.sendMessage(PlayerEntity player, Text message)
SpawnEggItem.spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)
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 boolean
DebugStickItem.use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)
EggItem.use(World world, PlayerEntity user, Hand hand)
Called when 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.FireworkItem.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.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.LilyPadItem.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.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 boolean
BlockItem.writeTagToBlockEntity(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)
protected
ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit)
protected
ItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
-
Uses of PlayerEntity in net.minecraft.item.map
Fields in net.minecraft.item.map declared as PlayerEntityFields in net.minecraft.item.map with type parameters of type PlayerEntityModifier and TypeFieldDescriptionprivate Map<PlayerEntity,MapState.PlayerUpdateTracker>
MapState.updateTrackersByPlayer
Methods in net.minecraft.item.map with parameters of type PlayerEntityModifier and TypeMethodDescriptionMapState.getPlayerMarkerPacket(int id, PlayerEntity player)
MapState.getPlayerSyncData(PlayerEntity player)
void
MapState.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 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 void
RecipeUnlocker.unlockLastRecipe(PlayerEntity player)
-
Uses of PlayerEntity in net.minecraft.screen
Fields in net.minecraft.screen declared as PlayerEntityModifier and TypeFieldDescriptionprivate PlayerEntity
PlayerScreenHandler.owner
private PlayerEntity
CraftingScreenHandler.player
protected PlayerEntity
ForgingScreenHandler.player
Methods in net.minecraft.screen with parameters of type PlayerEntityModifier and TypeMethodDescriptionprotected boolean
AnvilScreenHandler.canTakeOutput(PlayerEntity player, boolean present)
protected abstract boolean
ForgingScreenHandler.canTakeOutput(PlayerEntity player, boolean present)
protected boolean
SmithingScreenHandler.canTakeOutput(PlayerEntity player, boolean present)
boolean
AbstractFurnaceScreenHandler.canUse(PlayerEntity player)
boolean
BeaconScreenHandler.canUse(PlayerEntity player)
boolean
BrewingStandScreenHandler.canUse(PlayerEntity player)
boolean
CartographyTableScreenHandler.canUse(PlayerEntity player)
boolean
CraftingScreenHandler.canUse(PlayerEntity player)
boolean
EnchantmentScreenHandler.canUse(PlayerEntity player)
boolean
ForgingScreenHandler.canUse(PlayerEntity player)
boolean
Generic3x3ContainerScreenHandler.canUse(PlayerEntity player)
boolean
GenericContainerScreenHandler.canUse(PlayerEntity player)
boolean
GrindstoneScreenHandler.canUse(PlayerEntity player)
boolean
HopperScreenHandler.canUse(PlayerEntity player)
boolean
HorseScreenHandler.canUse(PlayerEntity player)
boolean
LecternScreenHandler.canUse(PlayerEntity player)
boolean
LoomScreenHandler.canUse(PlayerEntity player)
boolean
MerchantScreenHandler.canUse(PlayerEntity player)
boolean
PlayerScreenHandler.canUse(PlayerEntity player)
abstract boolean
ScreenHandler.canUse(PlayerEntity player)
protected static boolean
ScreenHandler.canUse(ScreenHandlerContext context, PlayerEntity player, Block block)
boolean
ShulkerBoxScreenHandler.canUse(PlayerEntity player)
boolean
StonecutterScreenHandler.canUse(PlayerEntity player)
void
BeaconScreenHandler.close(PlayerEntity playerEntity)
void
CartographyTableScreenHandler.close(PlayerEntity playerEntity)
void
CraftingScreenHandler.close(PlayerEntity playerEntity)
void
EnchantmentScreenHandler.close(PlayerEntity playerEntity)
void
ForgingScreenHandler.close(PlayerEntity playerEntity)
void
Generic3x3ContainerScreenHandler.close(PlayerEntity playerEntity)
void
GenericContainerScreenHandler.close(PlayerEntity playerEntity)
void
GrindstoneScreenHandler.close(PlayerEntity playerEntity)
void
HopperScreenHandler.close(PlayerEntity playerEntity)
void
HorseScreenHandler.close(PlayerEntity playerEntity)
void
LoomScreenHandler.close(PlayerEntity playerEntity)
void
MerchantScreenHandler.close(PlayerEntity playerEntity)
void
PlayerScreenHandler.close(PlayerEntity playerEntity)
void
ScreenHandler.close(PlayerEntity playerEntity)
void
ShulkerBoxScreenHandler.close(PlayerEntity playerEntity)
void
StonecutterScreenHandler.close(PlayerEntity playerEntity)
ScreenHandlerFactory.createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
SimpleNamedScreenHandlerFactory.createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
protected void
ScreenHandler.dropInventory(PlayerEntity player, Inventory inventory)
private void
ScreenHandler.internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
The actual logic that handles a slot click.boolean
EnchantmentScreenHandler.onButtonClick(PlayerEntity player, int id)
boolean
LecternScreenHandler.onButtonClick(PlayerEntity player, int id)
boolean
LoomScreenHandler.onButtonClick(PlayerEntity player, int id)
boolean
ScreenHandler.onButtonClick(PlayerEntity player, int id)
boolean
StonecutterScreenHandler.onButtonClick(PlayerEntity player, int id)
void
ScreenHandler.onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
Performs a slot click.void
BrewingStandScreenHandler.PotionSlot.onTakeItem(PlayerEntity player, ItemStack stack)
protected void
AnvilScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack)
protected abstract void
ForgingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack)
protected void
SmithingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack)
static boolean
ScreenHandler.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)
LoomScreenHandler.transferSlot(PlayerEntity player, int index)
MerchantScreenHandler.transferSlot(PlayerEntity player, int index)
PlayerScreenHandler.transferSlot(PlayerEntity player, int index)
ScreenHandler.transferSlot(PlayerEntity player, int index)
ShulkerBoxScreenHandler.transferSlot(PlayerEntity player, int index)
StonecutterScreenHandler.transferSlot(PlayerEntity player, int index)
protected static void
CraftingScreenHandler.updateResult(ScreenHandler screenHandler, 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 PlayerEntity
CraftingResultSlot.player
private PlayerEntity
FurnaceOutputSlot.player
private PlayerEntity
TradeOutputSlot.player
Methods in net.minecraft.screen.slot with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
Slot.canTakeItems(PlayerEntity playerEntity)
boolean
Slot.canTakePartial(PlayerEntity player)
void
CraftingResultSlot.onTakeItem(PlayerEntity player, ItemStack stack)
void
FurnaceOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack)
void
Slot.onTakeItem(PlayerEntity player, ItemStack stack)
void
TradeOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack)
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)
boolean
MinecraftServer.isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player)
void
PlayerManager.sendToAround(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet)
void
PlayerManager.sendToOtherTeams(PlayerEntity source, Text message)
void
PlayerManager.sendToTeam(PlayerEntity source, Text message)
-
Uses of PlayerEntity in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
MinecraftDedicatedServer.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 TypeMethodDescriptionboolean
ServerPlayerEntity.shouldDamagePlayer(PlayerEntity player)
-
Uses of PlayerEntity in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
ServerWorld.canPlayerModifyAt(PlayerEntity player, BlockPos pos)
void
ServerWorld.playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
ServerWorld.playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
ServerWorld.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 TypeMethodDescriptionvoid
StatHandler.increaseStat(PlayerEntity player, Stat<?> stat, int value)
void
ServerStatHandler.setStat(PlayerEntity player, Stat<?> stat, int value)
void
StatHandler.setStat(PlayerEntity player, Stat<?> stat, int value)
-
Uses of PlayerEntity in net.minecraft.test
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 PlayerEntityModifier and TypeMethodDescriptionMerchant.getCurrentCustomer()
SimpleMerchant.getCurrentCustomer()
Methods in net.minecraft.village with parameters of type PlayerEntityModifier and TypeMethodDescriptionboolean
MerchantInventory.canPlayerUse(PlayerEntity player)
default void
Merchant.sendOffers(PlayerEntity player, Text test, int levelProgress)
void
Merchant.setCurrentCustomer(@Nullable PlayerEntity customer)
void
SimpleMerchant.setCurrentCustomer(@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 PlayerEntity
EntityView.getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)
default @Nullable PlayerEntity
EntityView.getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate)
default @Nullable PlayerEntity
EntityView.getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z)
default @Nullable PlayerEntity
EntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)
default @Nullable PlayerEntity
EntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)
default @Nullable PlayerEntity
EntityView.getClosestPlayer(Entity entity, double maxDistance)
default @Nullable PlayerEntity
EntityView.getPlayerByUuid(UUID uuid)
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 TypeMethodDescriptionboolean
World.canPlayerModifyAt(PlayerEntity player, BlockPos pos)
CommandBlockExecutor.interact(PlayerEntity player)
WorldSaveHandler.loadPlayerData(PlayerEntity player)
void
ChunkRegion.playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)
abstract void
World.playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
World.playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
WorldAccess.playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)
abstract void
World.playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
WorldSaveHandler.savePlayerData(PlayerEntity player)
void
ChunkRegion.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data)
void
WorldAccess.syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data)
-
Uses of PlayerEntity in net.minecraft.world.explosion
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