Uses of Class
net.minecraft.entity.player.PlayerEntity
Package
Description
-
Uses of PlayerEntity in net.minecraft.block
Modifier and TypeMethodDescriptionvoid
AbstractBlock.AbstractBlockState.attack
(World p_196942_1_, BlockPos p_196942_2_, PlayerEntity p_196942_3_) void
AbstractBlock.attack
(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) Deprecated.void
DragonEggBlock.attack
(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) void
NoteBlock.attack
(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) void
RedstoneOreBlock.attack
(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) void
StairsBlock.attack
(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) private ActionResultType
CakeBlock.eat
(IWorld p_226911_1_, BlockPos p_226911_2_, BlockState p_226911_3_, PlayerEntity p_226911_4_) float
AbstractBlock.AbstractBlockState.getDestroyProgress
(PlayerEntity p_185903_1_, IBlockReader p_185903_2_, BlockPos p_185903_3_) float
AbstractBlock.getDestroyProgress
(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_) Deprecated.float
BambooBlock.getDestroyProgress
(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_) float
BambooSaplingBlock.getDestroyProgress
(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_) boolean
BellBlock.onHit
(World p_226884_1_, BlockState p_226884_2_, BlockRayTraceResult p_226884_3_, PlayerEntity p_226884_4_, boolean p_226884_5_) protected abstract void
AbstractFurnaceBlock.openContainer
(World p_220089_1_, BlockPos p_220089_2_, PlayerEntity p_220089_3_) protected void
BlastFurnaceBlock.openContainer
(World p_220089_1_, BlockPos p_220089_2_, PlayerEntity p_220089_3_) protected void
FurnaceBlock.openContainer
(World p_220089_1_, BlockPos p_220089_2_, PlayerEntity p_220089_3_) protected void
SmokerBlock.openContainer
(World p_220089_1_, BlockPos p_220089_2_, PlayerEntity p_220089_3_) private void
LecternBlock.openScreen
(World p_220152_1_, BlockPos p_220152_2_, PlayerEntity p_220152_3_) void
BeehiveBlock.playerDestroy
(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) void
Block.playerDestroy
(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) void
DoublePlantBlock.playerDestroy
(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) void
IceBlock.playerDestroy
(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) void
TurtleEggBlock.playerDestroy
(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) void
AbstractFireBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
BedBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
BeehiveBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
Block.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
DoorBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
DoublePlantBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
PistonHeadBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
ShulkerBoxBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
TNTBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) void
TripWireBlock.playerWillDestroy
(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_) protected void
AbstractButtonBlock.playSound
(PlayerEntity p_196367_1_, IWorld p_196367_2_, BlockPos p_196367_3_, boolean p_196367_4_) protected void
TrapDoorBlock.playSound
(PlayerEntity p_185731_1_, World p_185731_2_, BlockPos p_185731_3_, boolean p_185731_4_) protected static void
DoublePlantBlock.preventCreativeDropFromBottomPart
(World p_241471_0_, BlockPos p_241471_1_, BlockState p_241471_2_, PlayerEntity p_241471_3_) void
BeehiveBlock.releaseBeesAndResetHoneyLevel
(World p_226877_1_, BlockState p_226877_2_, BlockPos p_226877_3_, PlayerEntity p_226877_4_, BeehiveTileEntity.State p_226877_5_) AbstractBlock.AbstractBlockState.use
(World p_227031_1_, PlayerEntity p_227031_2_, Hand p_227031_3_, BlockRayTraceResult p_227031_4_) AbstractBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) Deprecated.AbstractButtonBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) AbstractFurnaceBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) AbstractSignBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) AnvilBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BarrelBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BeaconBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BedBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BeehiveBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BellBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) BrewingStandBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CakeBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CampfireBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CartographyTableBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CauldronBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) ChestBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CommandBlockBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) ComparatorBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) ComposterBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) CraftingTableBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) DaylightDetectorBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) DispenserBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) DoorBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) DragonEggBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) EnchantingTableBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) EnderChestBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) FenceBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) FenceGateBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) FletchingTableBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) FlowerPotBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) GrindstoneBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) HopperBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) JigsawBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) JukeboxBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) LecternBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) LeverBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) LoomBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) MovingPistonBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) NoteBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) PumpkinBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) RedstoneOreBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) RedstoneWireBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) RepeaterBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) RespawnAnchorBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) ShulkerBoxBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) SmithingTableBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) StairsBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) StonecutterBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) StructureBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) SweetBerryBushBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) TNTBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) TrapDoorBlock.use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) -
Uses of PlayerEntity in net.minecraft.client.audio
ModifierConstructorDescriptionRidingMinecartTickableSound
(PlayerEntity p_i48613_1_, AbstractMinecartEntity p_i48613_2_) -
Uses of PlayerEntity in net.minecraft.client.entity.player
Modifier and TypeClassDescriptionclass
class
class
-
Uses of PlayerEntity in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate void
IngameGui.renderSlot
(int p_184044_1_, int p_184044_2_, float p_184044_3_, PlayerEntity p_184044_4_, ItemStack p_184044_5_) -
Uses of PlayerEntity in net.minecraft.client.gui.screen
ModifierConstructorDescriptionEditBookScreen
(PlayerEntity p_i51100_1_, ItemStack p_i51100_2_, Hand p_i51100_3_) -
Uses of PlayerEntity in net.minecraft.client.gui.screen.inventory
Modifier and TypeMethodDescriptionboolean
CreativeScreen.CreativeSlot.mayPickup
(PlayerEntity p_82869_1_) boolean
CreativeScreen.LockedSlot.mayPickup
(PlayerEntity p_82869_1_) CreativeScreen.CreativeSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) CreativeScreen.CreativeContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) boolean
CreativeScreen.CreativeContainer.stillValid
(PlayerEntity p_75145_1_) ModifierConstructorDescriptionCreativeContainer
(PlayerEntity p_i1086_1_) CreativeScreen
(PlayerEntity p_i1088_1_) InventoryScreen
(PlayerEntity p_i1094_1_) -
Uses of PlayerEntity in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
PlayerController.adjustPlayer
(PlayerEntity p_78748_1_) void
PlayerController.attack
(PlayerEntity p_78764_1_, Entity p_78764_2_) PlayerController.handleInventoryMouseClick
(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_) PlayerController.interact
(PlayerEntity p_187097_1_, Entity p_187097_2_, Hand p_187097_3_) PlayerController.interactAt
(PlayerEntity p_187102_1_, Entity p_187102_2_, EntityRayTraceResult p_187102_3_, Hand p_187102_4_) void
PlayerController.releaseUsingItem
(PlayerEntity p_78766_1_) PlayerController.useItem
(PlayerEntity p_187101_1_, World p_187101_2_, Hand p_187101_3_) -
Uses of PlayerEntity in net.minecraft.client.network.play
Modifier and TypeMethodDescriptionprivate static ItemStack
ClientPlayNetHandler.findTotem
(PlayerEntity p_217282_0_) -
Uses of PlayerEntity in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionprivate static org.apache.commons.lang3.tuple.Pair<BlockState,
BlockPos> OverlayRenderer.getOverlayBlock
(PlayerEntity p_230018_0_) private static BlockState
OverlayRenderer.getViewBlockingState
(PlayerEntity p_230018_0_) void
WorldRenderer.levelEvent
(PlayerEntity p_180439_1_, int p_180439_2_, BlockPos p_180439_3_, int p_180439_4_) -
Uses of PlayerEntity in net.minecraft.client.renderer.entity.layers
-
Uses of PlayerEntity in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) void
ClientWorld.playSound
(PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_) void
ClientWorld.playSound
(PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_) -
Uses of PlayerEntity in net.minecraft.entity
Modifier and TypeFieldDescriptionprotected PlayerEntity
LivingEntity.lastHurtByPlayer
private final PlayerEntity
NPCMerchant.source
Modifier and TypeMethodDescriptionboolean
MobEntity.canBeLeashed
(PlayerEntity p_184652_1_) private ActionResultType
MobEntity.checkAndHandleImportantInteractions
(PlayerEntity p_233661_1_, Hand p_233661_2_) EntityType.create
(ServerWorld p_220349_1_, CompoundNBT p_220349_2_, ITextComponent p_220349_3_, PlayerEntity p_220349_4_, BlockPos p_220349_5_, SpawnReason p_220349_6_, boolean p_220349_7_, boolean p_220349_8_) protected int
LivingEntity.getExperienceReward
(PlayerEntity p_70693_1_) protected int
MobEntity.getExperienceReward
(PlayerEntity p_70693_1_) Entity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) final ActionResultType
MobEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) Entity.interactAt
(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) boolean
Entity.isInvisibleTo
(PlayerEntity p_98034_1_) private void
MobEntity.maybeDisableShield
(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) protected ActionResultType
MobEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected void
MobEntity.onOffspringSpawnedFromEgg
(PlayerEntity p_213406_1_, MobEntity p_213406_2_) default void
IAngerable.playerDied
(PlayerEntity p_233681_1_) void
Entity.playerTouch
(PlayerEntity p_70100_1_) void
IAngerable.setLastHurtByPlayer
(PlayerEntity p_230246_1_) void
LivingEntity.setLastHurtByPlayer
(PlayerEntity p_230246_1_) void
NPCMerchant.setTradingPlayer
(PlayerEntity p_70932_1_) boolean
LivingEntity.shouldRiderFaceForward
(PlayerEntity player) Returns true if the entity's rider (EntityPlayer) should face forward when mounted.EntityType.spawn
(ServerWorld p_220331_1_, ItemStack p_220331_2_, PlayerEntity p_220331_3_, BlockPos p_220331_4_, SpawnReason p_220331_5_, boolean p_220331_6_, boolean p_220331_7_) EntityType.spawn
(ServerWorld p_220342_1_, CompoundNBT p_220342_2_, ITextComponent p_220342_3_, PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) static void
EntityType.updateCustomEntityTag
(World p_208048_0_, PlayerEntity p_208048_1_, Entity p_208048_2_, CompoundNBT p_208048_3_) -
Uses of PlayerEntity in net.minecraft.entity.ai.brain.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_PLAYER_HOLDING_WANTED_ITEM
static final MemoryModuleType<List<PlayerEntity>>
MemoryModuleType.NEAREST_PLAYERS
static final MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLD
static final MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_VISIBLE_PLAYER
static final MemoryModuleType<PlayerEntity>
MemoryModuleType.NEAREST_VISIBLE_TARGETABLE_PLAYER
-
Uses of PlayerEntity in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate Optional<PlayerEntity>
GiveHeroGiftsTask.getNearestTargetableHero
(VillagerEntity p_220400_1_) Modifier and TypeMethodDescriptionprivate boolean
GiveHeroGiftsTask.isHero
(PlayerEntity p_220402_1_) private boolean
GiveHeroGiftsTask.isWithinThrowingDistance
(VillagerEntity p_220401_1_, PlayerEntity p_220401_2_) -
Uses of PlayerEntity in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate PlayerEntity
FollowBoatGoal.following
private PlayerEntity
BegGoal.player
protected PlayerEntity
TemptGoal.player
Modifier and TypeMethodDescriptionprivate boolean
BegGoal.playerHoldingInteresting
(PlayerEntity p_75382_1_) -
Uses of PlayerEntity in net.minecraft.entity.boss.dragon.phase
Modifier and TypeMethodDescriptionvoid
HoldingPatternPhase.onCrystalDestroyed
(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, PlayerEntity p_188655_4_) void
IPhase.onCrystalDestroyed
(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, PlayerEntity p_188655_4_) void
Phase.onCrystalDestroyed
(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, PlayerEntity p_188655_4_) private void
HoldingPatternPhase.strafePlayer
(PlayerEntity p_188674_1_) -
Uses of PlayerEntity in net.minecraft.entity.item
Modifier and TypeMethodDescriptionBoatEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) ItemFrameEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) LeashKnotEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) ArmorStandEntity.interactAt
(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) void
ExperienceOrbEntity.playerTouch
(PlayerEntity p_70100_1_) void
ItemEntity.playerTouch
(PlayerEntity p_70100_1_) private boolean
ArmorStandEntity.swapItem
(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) -
Uses of PlayerEntity in net.minecraft.entity.item.minecart
Modifier and TypeMethodDescriptionContainerMinecartEntity.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) CommandBlockMinecartEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) ContainerMinecartEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) FurnaceMinecartEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) MinecartEntity.interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) boolean
ContainerMinecartEntity.stillValid
(PlayerEntity p_70300_1_) void
ContainerMinecartEntity.unpackLootTable
(PlayerEntity p_184288_1_) -
Uses of PlayerEntity in net.minecraft.entity.merchant
Modifier and TypeMethodDescriptiondefault void
IMerchant.openTradingScreen
(PlayerEntity p_213707_1_, ITextComponent p_213707_2_, int p_213707_3_) void
IMerchant.setTradingPlayer
(PlayerEntity p_70932_1_) -
Uses of PlayerEntity in net.minecraft.entity.merchant.villager
Modifier and TypeFieldDescriptionprivate PlayerEntity
VillagerEntity.lastTradedPlayer
private PlayerEntity
AbstractVillagerEntity.tradingPlayer
Modifier and TypeMethodDescriptionboolean
AbstractVillagerEntity.canBeLeashed
(PlayerEntity p_184652_1_) int
VillagerEntity.getPlayerReputation
(PlayerEntity p_223107_1_) VillagerEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) WanderingTraderEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) void
AbstractVillagerEntity.setTradingPlayer
(PlayerEntity p_70932_1_) void
VillagerEntity.setTradingPlayer
(PlayerEntity p_70932_1_) private void
VillagerEntity.startTrading
(PlayerEntity p_213740_1_) private void
VillagerEntity.updateSpecialPrices
(PlayerEntity p_213762_1_) -
Uses of PlayerEntity in net.minecraft.entity.monster
Modifier and TypeFieldDescriptionprivate PlayerEntity
EndermanEntity.FindPlayerGoal.pendingTarget
Modifier and TypeMethodDescriptionboolean
HoglinEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
ZoglinEntity.canBeLeashed
(PlayerEntity p_184652_1_) protected int
HoglinEntity.getExperienceReward
(PlayerEntity p_70693_1_) protected int
ZombieEntity.getExperienceReward
(PlayerEntity p_70693_1_) private boolean
EndermanEntity.isLookingAtMe
(PlayerEntity p_70821_1_) boolean
MonsterEntity.isPreventingPlayerRest
(PlayerEntity p_230292_1_) boolean
ZombifiedPiglinEntity.isPreventingPlayerRest
(PlayerEntity p_230292_1_) protected ActionResultType
CreeperEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) HoglinEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) ZombieVillagerEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) void
SlimeEntity.playerTouch
(PlayerEntity p_70100_1_) -
Uses of PlayerEntity in net.minecraft.entity.monster.piglin
Modifier and TypeMethodDescriptionstatic Optional<PlayerEntity>
PiglinTasks.getNearestVisibleTargetablePlayer
(AbstractPiglinEntity p_241432_0_) Modifier and TypeMethodDescriptionstatic void
PiglinTasks.angerNearbyPiglins
(PlayerEntity p_234478_0_, boolean p_234478_1_) protected int
PiglinEntity.getExperienceReward
(PlayerEntity p_70693_1_) PiglinEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) static ActionResultType
PiglinTasks.mobInteract
(PiglinEntity p_234471_0_, PlayerEntity p_234471_1_, Hand p_234471_2_) private static void
PiglinTasks.throwItemsTowardPlayer
(PiglinEntity p_234472_0_, PlayerEntity p_234472_1_, List<ItemStack> p_234472_2_) -
Uses of PlayerEntity in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate PlayerEntity
CatEntity.MorningGiftGoal.ownerPlayer
private PlayerEntity
DolphinEntity.SwimWithPlayerGoal.player
private PlayerEntity
TurtleEntity.PlayerTemptGoal.player
private PlayerEntity
CatEntity.TemptGoal.selectedPlayer
Modifier and TypeFieldDescriptionprivate CatEntity.AvoidPlayerGoal<PlayerEntity>
CatEntity.avoidPlayersGoal
private OcelotEntity.AvoidEntityGoal<PlayerEntity>
OcelotEntity.ocelotAvoidPlayersGoal
Modifier and TypeMethodDescriptionboolean
AmbientEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
DolphinEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
PandaEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
TameableEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
TurtleEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
WaterMobEntity.canBeLeashed
(PlayerEntity p_184652_1_) boolean
WolfEntity.canBeLeashed
(PlayerEntity p_184652_1_) protected int
AnimalEntity.getExperienceReward
(PlayerEntity p_70693_1_) protected int
ChickenEntity.getExperienceReward
(PlayerEntity p_70693_1_) protected int
WaterMobEntity.getExperienceReward
(PlayerEntity p_70693_1_) AnimalEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) CatEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) CowEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected ActionResultType
DolphinEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected ActionResultType
IronGolemEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) MooshroomEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) OcelotEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) PandaEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) ParrotEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) PigEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) SheepEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected ActionResultType
SnowGolemEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) StriderEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) WolfEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected void
FoxEntity.onOffspringSpawnedFromEgg
(PlayerEntity p_213406_1_, MobEntity p_213406_2_) MooshroomEntity.onSheared
(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SheepEntity.onSheared
(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SnowGolemEntity.onSheared
(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) void
AnimalEntity.setInLove
(PlayerEntity p_146082_1_) void
TameableEntity.tame
(PlayerEntity p_193101_1_) protected void
AnimalEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected void
CatEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected void
FoxEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) -
Uses of PlayerEntity in net.minecraft.entity.passive.fish
Modifier and TypeMethodDescriptionprotected ActionResultType
AbstractFishEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) void
PufferfishEntity.playerTouch
(PlayerEntity p_70100_1_) -
Uses of PlayerEntity in net.minecraft.entity.passive.horse
Modifier and TypeMethodDescriptionprotected void
AbstractHorseEntity.doPlayerRide
(PlayerEntity p_110237_1_) protected void
TraderLlamaEntity.doPlayerRide
(PlayerEntity p_110237_1_) AbstractHorseEntity.fedFood
(PlayerEntity p_241395_1_, ItemStack p_241395_2_) protected boolean
AbstractHorseEntity.handleEating
(PlayerEntity p_190678_1_, ItemStack p_190678_2_) protected boolean
LlamaEntity.handleEating
(PlayerEntity p_190678_1_, ItemStack p_190678_2_) AbstractChestedHorseEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) HorseEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) SkeletonHorseEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) ZombieHorseEntity.mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) void
AbstractHorseEntity.openInventory
(PlayerEntity p_110199_1_) boolean
AbstractHorseEntity.tameWithName
(PlayerEntity p_110263_1_) -
Uses of PlayerEntity in net.minecraft.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerEntity.canHarmPlayer
(PlayerEntity p_96122_1_) boolean
ServerPlayerEntity.canHarmPlayer
(PlayerEntity p_96122_1_) protected int
PlayerEntity.getExperienceReward
(PlayerEntity p_70693_1_) boolean
PlayerInventory.stillValid
(PlayerEntity p_70300_1_) -
Uses of PlayerEntity in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionvoid
AbstractArrowEntity.playerTouch
(PlayerEntity p_70100_1_) void
TridentEntity.playerTouch
(PlayerEntity p_70100_1_) private boolean
FishingBobberEntity.shouldStopFishing
(PlayerEntity p_234600_1_) ModifierConstructorDescriptionFishingBobberEntity
(PlayerEntity p_i50220_1_, World p_i50220_2_, int p_i50220_3_, int p_i50220_4_) FishingBobberEntity
(World p_i47290_1_, PlayerEntity p_i47290_2_, double p_i47290_3_, double p_i47290_5_, double p_i47290_7_) private
FishingBobberEntity
(World p_i50219_1_, PlayerEntity p_i50219_2_, int p_i50219_3_, int p_i50219_4_) -
Uses of PlayerEntity in net.minecraft.inventory
Modifier and TypeMethodDescriptiondefault void
IRecipeHolder.awardUsedRecipes
(PlayerEntity p_201560_1_) void
DoubleSidedInventory.startOpen
(PlayerEntity p_174889_1_) void
EnderChestInventory.startOpen
(PlayerEntity p_174889_1_) default void
IInventory.startOpen
(PlayerEntity p_174889_1_) boolean
CraftingInventory.stillValid
(PlayerEntity p_70300_1_) boolean
CraftResultInventory.stillValid
(PlayerEntity p_70300_1_) boolean
DoubleSidedInventory.stillValid
(PlayerEntity p_70300_1_) boolean
EnderChestInventory.stillValid
(PlayerEntity p_70300_1_) boolean
IInventory.stillValid
(PlayerEntity p_70300_1_) boolean
Inventory.stillValid
(PlayerEntity p_70300_1_) boolean
MerchantInventory.stillValid
(PlayerEntity p_70300_1_) void
DoubleSidedInventory.stopOpen
(PlayerEntity p_174886_1_) void
EnderChestInventory.stopOpen
(PlayerEntity p_174886_1_) default void
IInventory.stopOpen
(PlayerEntity p_174886_1_) -
Uses of PlayerEntity in net.minecraft.inventory.container
Modifier and TypeFieldDescriptionprivate final PlayerEntity
PlayerContainer.owner
protected final PlayerEntity
AbstractRepairContainer.player
private final PlayerEntity
CraftingResultSlot.player
private final PlayerEntity
FurnaceResultSlot.player
private final PlayerEntity
MerchantResultSlot.player
private final PlayerEntity
WorkbenchContainer.player
Modifier and TypeMethodDescriptionprotected void
Container.clearContainer
(PlayerEntity p_193327_1_, World p_193327_2_, IInventory p_193327_3_) Container.clicked
(int p_184996_1_, int p_184996_2_, ClickType p_184996_3_, PlayerEntity p_184996_4_) boolean
Container.clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) boolean
EnchantmentContainer.clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) boolean
LecternContainer.clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) boolean
LoomContainer.clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) boolean
StonecutterContainer.clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) IContainerProvider.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) SimpleNamedContainerProvider.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) private ItemStack
Container.doClick
(int p_241440_1_, int p_241440_2_, ClickType p_241440_3_, PlayerEntity p_241440_4_) boolean
Container.isSynched
(PlayerEntity p_75129_1_) static boolean
Container.isValidQuickcraftType
(int p_180610_0_, PlayerEntity p_180610_1_) protected abstract boolean
AbstractRepairContainer.mayPickup
(PlayerEntity p_230303_1_, boolean p_230303_2_) protected boolean
RepairContainer.mayPickup
(PlayerEntity p_230303_1_, boolean p_230303_2_) boolean
Slot.mayPickup
(PlayerEntity p_82869_1_) protected boolean
SmithingTableContainer.mayPickup
(PlayerEntity p_230303_1_, boolean p_230303_2_) protected abstract ItemStack
AbstractRepairContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) BrewingStandContainer.PotionSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) CraftingResultSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) FurnaceResultSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) MerchantResultSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStack
RepairContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) Slot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStack
SmithingTableContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) AbstractFurnaceContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) AbstractRepairContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) BeaconContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) BrewingStandContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) CartographyContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) ChestContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) Container.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) DispenserContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) EnchantmentContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) GrindstoneContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) HopperContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) HorseInventoryContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) LoomContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) MerchantContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) PlayerContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) ShulkerBoxContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) StonecutterContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) WorkbenchContainer.quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) void
AbstractRepairContainer.removed
(PlayerEntity p_75134_1_) void
BeaconContainer.removed
(PlayerEntity p_75134_1_) void
CartographyContainer.removed
(PlayerEntity p_75134_1_) void
ChestContainer.removed
(PlayerEntity p_75134_1_) void
Container.removed
(PlayerEntity p_75134_1_) void
DispenserContainer.removed
(PlayerEntity p_75134_1_) void
EnchantmentContainer.removed
(PlayerEntity p_75134_1_) void
GrindstoneContainer.removed
(PlayerEntity p_75134_1_) void
HopperContainer.removed
(PlayerEntity p_75134_1_) void
HorseInventoryContainer.removed
(PlayerEntity p_75134_1_) void
LoomContainer.removed
(PlayerEntity p_75134_1_) void
MerchantContainer.removed
(PlayerEntity p_75134_1_) void
PlayerContainer.removed
(PlayerEntity p_75134_1_) void
ShulkerBoxContainer.removed
(PlayerEntity p_75134_1_) void
StonecutterContainer.removed
(PlayerEntity p_75134_1_) void
WorkbenchContainer.removed
(PlayerEntity p_75134_1_) void
Container.setSynched
(PlayerEntity p_75128_1_, boolean p_75128_2_) protected static void
WorkbenchContainer.slotChangedCraftingGrid
(int p_217066_0_, World p_217066_1_, PlayerEntity p_217066_2_, CraftingInventory p_217066_3_, CraftResultInventory p_217066_4_) boolean
AbstractFurnaceContainer.stillValid
(PlayerEntity p_75145_1_) boolean
AbstractRepairContainer.stillValid
(PlayerEntity p_75145_1_) boolean
BeaconContainer.stillValid
(PlayerEntity p_75145_1_) boolean
BrewingStandContainer.stillValid
(PlayerEntity p_75145_1_) boolean
CartographyContainer.stillValid
(PlayerEntity p_75145_1_) boolean
ChestContainer.stillValid
(PlayerEntity p_75145_1_) abstract boolean
Container.stillValid
(PlayerEntity p_75145_1_) protected static boolean
Container.stillValid
(IWorldPosCallable p_216963_0_, PlayerEntity p_216963_1_, Block p_216963_2_) boolean
DispenserContainer.stillValid
(PlayerEntity p_75145_1_) boolean
EnchantmentContainer.stillValid
(PlayerEntity p_75145_1_) boolean
GrindstoneContainer.stillValid
(PlayerEntity p_75145_1_) boolean
HopperContainer.stillValid
(PlayerEntity p_75145_1_) boolean
HorseInventoryContainer.stillValid
(PlayerEntity p_75145_1_) boolean
LecternContainer.stillValid
(PlayerEntity p_75145_1_) boolean
LoomContainer.stillValid
(PlayerEntity p_75145_1_) boolean
MerchantContainer.stillValid
(PlayerEntity p_75145_1_) boolean
PlayerContainer.stillValid
(PlayerEntity p_75145_1_) boolean
ShulkerBoxContainer.stillValid
(PlayerEntity p_75145_1_) boolean
StonecutterContainer.stillValid
(PlayerEntity p_75145_1_) boolean
WorkbenchContainer.stillValid
(PlayerEntity p_75145_1_) ModifierConstructorDescriptionCraftingResultSlot
(PlayerEntity p_i45790_1_, CraftingInventory p_i45790_2_, IInventory p_i45790_3_, int p_i45790_4_, int p_i45790_5_, int p_i45790_6_) FurnaceResultSlot
(PlayerEntity p_i45793_1_, IInventory p_i45793_2_, int p_i45793_3_, int p_i45793_4_, int p_i45793_5_) MerchantResultSlot
(PlayerEntity p_i1822_1_, IMerchant p_i1822_2_, MerchantInventory p_i1822_3_, int p_i1822_4_, int p_i1822_5_, int p_i1822_6_) PlayerContainer
(PlayerInventory p_i1819_1_, boolean p_i1819_2_, PlayerEntity p_i1819_3_) -
Uses of PlayerEntity in net.minecraft.item
Modifier and TypeMethodDescriptionstatic boolean
BoneMealItem.applyBonemeal
(ItemStack p_195966_0_, World p_195966_1_, BlockPos p_195966_2_, PlayerEntity player) static ActionResultType
LeadItem.bindPlayerMobs
(PlayerEntity p_226641_0_, World p_226641_1_, BlockPos p_226641_2_) boolean
DebugStickItem.canAttackBlock
(BlockState p_195938_1_, World p_195938_2_, BlockPos p_195938_3_, PlayerEntity p_195938_4_) boolean
Item.canAttackBlock
(BlockState p_195938_1_, World p_195938_2_, BlockPos p_195938_3_, PlayerEntity p_195938_4_) boolean
SwordItem.canAttackBlock
(BlockState p_195938_1_, World p_195938_2_, BlockPos p_195938_3_, PlayerEntity p_195938_4_) boolean
TridentItem.canAttackBlock
(BlockState p_195938_1_, World p_195938_2_, BlockPos p_195938_3_, PlayerEntity p_195938_4_) boolean
BucketItem.emptyBucket
(PlayerEntity p_180616_1_, World p_180616_2_, BlockPos p_180616_3_, BlockRayTraceResult p_180616_4_) protected ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_203790_1_, PlayerEntity p_203790_2_) int
Item.getHarvestLevel
(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) protected SoundEvent
BlockItem.getPlaceSound
(BlockState state, World world, BlockPos pos, PlayerEntity entity) protected static BlockRayTraceResult
Item.getPlayerPOVHitResult
(World p_219968_0_, PlayerEntity p_219968_1_, RayTraceContext.FluidMode p_219968_2_) ItemStack.getTooltipLines
(PlayerEntity p_82840_1_, ITooltipFlag p_82840_2_) IPacket<?>
AbstractMapItem.getUpdatePacket
(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_) IPacket<?>
FilledMapItem.getUpdatePacket
(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_) private void
DebugStickItem.handleInteraction
(PlayerEntity p_195958_1_, BlockState p_195958_2_, IWorld p_195958_3_, BlockPos p_195958_4_, boolean p_195958_5_, ItemStack p_195958_6_) void
ItemStack.hurtEnemy
(LivingEntity p_77961_1_, PlayerEntity p_77961_2_) DyeItem.interactLivingEntity
(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) Item.interactLivingEntity
(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) ItemStack.interactLivingEntity
(PlayerEntity p_111282_1_, LivingEntity p_111282_2_, Hand p_111282_3_) NameTagItem.interactLivingEntity
(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) SaddleItem.interactLivingEntity
(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) ShearsItem.interactLivingEntity
(ItemStack stack, PlayerEntity playerIn, LivingEntity entity, Hand hand) boolean
ArrowItem.isInfinite
(ItemStack stack, ItemStack bow, PlayerEntity player) protected boolean
HangingEntityItem.mayPlace
(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) protected boolean
ItemFrameItem.mayPlace
(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) private static void
DebugStickItem.message
(PlayerEntity p_195956_0_, ITextComponent p_195956_1_) void
ItemStack.mineBlock
(World p_179548_1_, BlockState p_179548_2_, BlockPos p_179548_3_, PlayerEntity p_179548_4_) void
FilledMapItem.onCraftedBy
(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) void
Item.onCraftedBy
(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) void
ItemStack.onCraftedBy
(World p_77980_1_, PlayerEntity p_77980_2_, int p_77980_3_) protected void
BucketItem.playEmptySound
(PlayerEntity p_203791_1_, IWorld p_203791_2_, BlockPos p_203791_3_) protected void
FishBucketItem.playEmptySound
(PlayerEntity p_203791_1_, IWorld p_203791_2_, BlockPos p_203791_3_) static boolean
WrittenBookItem.resolveBookComponents
(ItemStack p_220050_0_, CommandSource p_220050_1_, PlayerEntity p_220050_2_) SpawnEggItem.spawnOffspringFromSpawnEgg
(PlayerEntity p_234809_1_, MobEntity p_234809_2_, EntityType<? extends MobEntity> p_234809_3_, ServerWorld p_234809_4_, Vector3d p_234809_5_, ItemStack p_234809_6_) protected ItemStack
GlassBottleItem.turnBottleIntoItem
(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) static boolean
BlockItem.updateCustomBlockEntityTag
(World p_179224_0_, PlayerEntity p_179224_1_, BlockPos p_179224_2_, ItemStack p_179224_3_) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) ArmorItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BoatItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BowItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BucketItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) CrossbowItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EggItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ElytraItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EnderEyeItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EnderPearlItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ExperienceBottleItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) FireworkRocketItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) FishingRodItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) GlassBottleItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) HoneyBottleItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) Item.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ItemStack.use
(World p_77957_1_, PlayerEntity p_77957_2_, Hand p_77957_3_) KnowledgeBookItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) LilyPadItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) LingeringPotionItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) MapItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) MilkBucketItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) OnAStickItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) PotionItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ShieldItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SnowballItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SpawnEggItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SplashPotionItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ThrowablePotionItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) TridentItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) WritableBookItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) WrittenBookItem.use
(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ModifierConstructorDescriptionBlockItemUseContext
(PlayerEntity p_i241237_1_, Hand p_i241237_2_, ItemStack p_i241237_3_, BlockRayTraceResult p_i241237_4_) BlockItemUseContext
(World p_i50056_1_, PlayerEntity p_i50056_2_, Hand p_i50056_3_, ItemStack p_i50056_4_, BlockRayTraceResult p_i50056_5_) ItemUseContext
(PlayerEntity p_i50033_1_, Hand p_i50033_2_, BlockRayTraceResult p_i50033_3_) ItemUseContext
(World p_i50034_1_, PlayerEntity p_i50034_2_, Hand p_i50034_3_, ItemStack p_i50034_4_, BlockRayTraceResult p_i50034_5_) -
Uses of PlayerEntity in net.minecraft.loot
Modifier and TypeFieldDescriptionstatic final LootParameter<PlayerEntity>
LootParameters.LAST_DAMAGE_PLAYER
-
Uses of PlayerEntity in net.minecraft.network.play.server
-
Uses of PlayerEntity in net.minecraft.server
Modifier and TypeMethodDescriptionboolean
MinecraftServer.isUnderSpawnProtection
(ServerWorld p_175579_1_, BlockPos p_175579_2_, PlayerEntity p_175579_3_) -
Uses of PlayerEntity in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionboolean
DedicatedServer.isUnderSpawnProtection
(ServerWorld p_175579_1_, BlockPos p_175579_2_, PlayerEntity p_175579_3_) -
Uses of PlayerEntity in net.minecraft.server.management
Modifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(PlayerEntity p_148543_1_, double p_148543_2_, double p_148543_4_, double p_148543_6_, double p_148543_8_, RegistryKey<World> p_148543_10_, IPacket<?> p_148543_11_) void
PlayerList.broadcastToAllExceptTeam
(PlayerEntity p_177452_1_, ITextComponent p_177452_2_) void
PlayerList.broadcastToTeam
(PlayerEntity p_177453_1_, ITextComponent p_177453_2_) PlayerList.getPlayerStats
(PlayerEntity p_152602_1_) -
Uses of PlayerEntity in net.minecraft.stats
Modifier and TypeMethodDescriptionvoid
StatisticsManager.increment
(PlayerEntity p_150871_1_, Stat<?> p_150871_2_, int p_150871_3_) void
ServerStatisticsManager.setValue
(PlayerEntity p_150873_1_, Stat<?> p_150873_2_, int p_150873_3_) void
StatisticsManager.setValue
(PlayerEntity p_150873_1_, Stat<?> p_150873_2_, int p_150873_3_) -
Uses of PlayerEntity in net.minecraft.tileentity
Modifier and TypeMethodDescriptionvoid
AbstractFurnaceTileEntity.awardUsedRecipes
(PlayerEntity p_201560_1_) void
AbstractFurnaceTileEntity.awardUsedRecipesAndPopExperience
(PlayerEntity p_235645_1_) boolean
LockableLootTileEntity.canOpen
(PlayerEntity p_213904_1_) boolean
LockableTileEntity.canOpen
(PlayerEntity p_213904_1_) static boolean
LockableTileEntity.canUnlock
(PlayerEntity p_213905_0_, LockCode p_213905_1_, ITextComponent p_213905_2_) private CommandSource
LecternTileEntity.createCommandSourceStack
(PlayerEntity p_214039_1_) BeaconTileEntity.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) LecternTileEntity.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) LockableLootTileEntity.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) LockableTileEntity.createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) void
BeehiveTileEntity.emptyAllLivingFromHive
(PlayerEntity p_226963_1_, BlockState p_226963_2_, BeehiveTileEntity.State p_226963_3_) boolean
SignTileEntity.executeClickCommands
(PlayerEntity p_174882_1_) private ItemStack
LecternTileEntity.resolveBook
(ItemStack p_214047_1_, PlayerEntity p_214047_2_) void
SignTileEntity.setAllowedPlayerEditor
(PlayerEntity p_145912_1_) void
LecternTileEntity.setBook
(ItemStack p_214040_1_, PlayerEntity p_214040_2_) void
BarrelTileEntity.startOpen
(PlayerEntity p_174889_1_) void
ChestTileEntity.startOpen
(PlayerEntity p_174889_1_) void
ShulkerBoxTileEntity.startOpen
(PlayerEntity p_174889_1_) boolean
AbstractFurnaceTileEntity.stillValid
(PlayerEntity p_70300_1_) boolean
BrewingStandTileEntity.stillValid
(PlayerEntity p_70300_1_) boolean
EnderChestTileEntity.stillValid
(PlayerEntity p_145971_1_) boolean
LockableLootTileEntity.stillValid
(PlayerEntity p_70300_1_) void
BarrelTileEntity.stopOpen
(PlayerEntity p_174886_1_) void
ChestTileEntity.stopOpen
(PlayerEntity p_174886_1_) void
ShulkerBoxTileEntity.stopOpen
(PlayerEntity p_174886_1_) void
LockableLootTileEntity.unpackLootTable
(PlayerEntity p_184281_1_) CommandBlockLogic.usedBy
(PlayerEntity p_175574_1_) boolean
StructureBlockTileEntity.usedBy
(PlayerEntity p_189701_1_) -
Uses of PlayerEntity in net.minecraft.util
Modifier and TypeMethodDescriptionstatic ItemStack
DrinkHelper.createFilledResult
(ItemStack p_242398_0_, PlayerEntity p_242398_1_, ItemStack p_242398_2_) static ItemStack
DrinkHelper.createFilledResult
(ItemStack p_241445_0_, PlayerEntity p_241445_1_, ItemStack p_241445_2_, boolean p_241445_3_) static DamageSource
DamageSource.playerAttack
(PlayerEntity p_76365_0_) void
FoodStats.tick
(PlayerEntity p_75118_1_) static ActionResult<ItemStack>
DrinkHelper.useDrink
(World p_234707_0_, PlayerEntity p_234707_1_, Hand p_234707_2_) -
Uses of PlayerEntity in net.minecraft.world
Modifier and TypeMethodDescriptiondefault PlayerEntity
IEntityReader.getNearestPlayer
(double p_217366_1_, double p_217366_3_, double p_217366_5_, double p_217366_7_, boolean p_217366_9_) default PlayerEntity
IEntityReader.getNearestPlayer
(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, Predicate<Entity> p_190525_9_) default PlayerEntity
IEntityReader.getNearestPlayer
(Entity p_217362_1_, double p_217362_2_) default PlayerEntity
IEntityReader.getNearestPlayer
(EntityPredicate p_217359_1_, double p_217359_2_, double p_217359_4_, double p_217359_6_) default PlayerEntity
IEntityReader.getNearestPlayer
(EntityPredicate p_217370_1_, LivingEntity p_217370_2_) default PlayerEntity
IEntityReader.getNearestPlayer
(EntityPredicate p_217372_1_, LivingEntity p_217372_2_, double p_217372_3_, double p_217372_5_, double p_217372_7_) default PlayerEntity
IEntityReader.getPlayerByUUID
(UUID p_217371_1_) Modifier and TypeMethodDescriptionExplosion.getHitPlayers()
default List<PlayerEntity>
IEntityReader.getNearbyPlayers
(EntityPredicate p_217373_1_, LivingEntity p_217373_2_, AxisAlignedBB p_217373_3_) List<? extends PlayerEntity>
IEntityReader.players()
Modifier and TypeMethodDescriptionvoid
IWorld.levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) boolean
World.mayInteract
(PlayerEntity p_175660_1_, BlockPos p_175660_2_) void
IWorld.playSound
(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) abstract void
World.playSound
(PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_) abstract void
World.playSound
(PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_) void
World.playSound
(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) -
Uses of PlayerEntity in net.minecraft.world.gen
Modifier and TypeMethodDescriptionWorldGenRegion.getNearestPlayer
(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, Predicate<Entity> p_190525_9_) Modifier and TypeMethodDescriptionvoid
WorldGenRegion.levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) void
WorldGenRegion.playSound
(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) -
Uses of PlayerEntity in net.minecraft.world.raid
-
Uses of PlayerEntity in net.minecraft.world.server
Modifier and TypeMethodDescriptionvoid
ServerWorld.levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) boolean
ServerWorld.mayInteract
(PlayerEntity p_175660_1_, BlockPos p_175660_2_) void
ServerWorld.playSound
(PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_) void
ServerWorld.playSound
(PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_) -
Uses of PlayerEntity in net.minecraft.world.storage
Modifier and TypeFieldDescriptionprivate final Map<PlayerEntity,
MapData.MapInfo> MapData.carriedByPlayers
Modifier and TypeMethodDescriptionMapData.getHoldingPlayer
(PlayerEntity p_82568_1_) IPacket<?>
MapData.getUpdatePacket
(ItemStack p_176052_1_, IBlockReader p_176052_2_, PlayerEntity p_176052_3_) PlayerData.load
(PlayerEntity p_237336_1_) void
PlayerData.save
(PlayerEntity p_237335_1_) void
MapData.tickCarriedBy
(PlayerEntity p_76191_1_, ItemStack p_76191_2_) -
Uses of PlayerEntity in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic float
ForgeHooksClient.getOffsetFOV
(PlayerEntity entity, float fov) static void
ForgeHooksClient.onInputUpdate
(PlayerEntity player, MovementInput movementInput) -
Uses of PlayerEntity in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final PlayerEntity
FOVUpdateEvent.entity
private final PlayerEntity
RenderBlockOverlayEvent.player
Modifier and TypeMethodDescriptionFOVUpdateEvent.getEntity()
RenderBlockOverlayEvent.getPlayer()
The player which the overlay will apply toModifierConstructorDescriptionFOVUpdateEvent
(PlayerEntity entity, float fov) InputUpdateEvent
(PlayerEntity player, MovementInput movementInput) Post
(PlayerEntity player, PlayerRenderer renderer, float tick, MatrixStack stack, IRenderTypeBuffer buffers, int light) Pre
(PlayerEntity player, PlayerRenderer renderer, float tick, MatrixStack stack, IRenderTypeBuffer buffers, int light) RenderBlockOverlayEvent
(PlayerEntity player, MatrixStack mat, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos) RenderPlayerEvent
(PlayerEntity player, PlayerRenderer renderer, float partialRenderTick, MatrixStack stack, IRenderTypeBuffer buffers, int light) -
Uses of PlayerEntity in net.minecraftforge.common
Modifier and TypeFieldDescriptionprivate static ThreadLocal<PlayerEntity>
ForgeHooks.craftingPlayer
Modifier and TypeMethodDescriptionstatic boolean
ForgeHooks.canHarvestBlock
(BlockState state, PlayerEntity player, IBlockReader world, BlockPos pos) static CriticalHitEvent
ForgeHooks.getCriticalHit
(PlayerEntity player, Entity target, boolean vanillaCritical, float damageModifier) static double
ForgeHooks.getPlayerVisibilityDistance
(PlayerEntity player, double xzDistance, double maxXZDistance) Deprecated.static boolean
ForgeHooks.onAnvilChange
(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, String name, int baseCost, PlayerEntity player) static float
ForgeHooks.onAnvilRepair
(PlayerEntity player, ItemStack output, ItemStack left, ItemStack right) static boolean
ForgeHooks.onChangeGameMode
(PlayerEntity player, GameType currentGameMode, GameType newGameMode) static void
ForgeHooks.onEmptyClick
(PlayerEntity player, Hand hand) static void
ForgeHooks.onEmptyLeftClick
(PlayerEntity player) static ActionResultType
ForgeHooks.onInteractEntity
(PlayerEntity player, Entity entity, Hand hand) static ActionResultType
ForgeHooks.onInteractEntityAt
(PlayerEntity player, Entity entity, RayTraceResult ray, Hand hand) static ActionResultType
ForgeHooks.onInteractEntityAt
(PlayerEntity player, Entity entity, Vector3d vec3d, Hand hand) static ActionResultType
ForgeHooks.onItemRightClick
(PlayerEntity player, Hand hand) ForgeHooks.onLeftClickBlock
(PlayerEntity player, BlockPos pos, Direction face) static boolean
ForgeHooks.onPickBlock
(RayTraceResult target, PlayerEntity player, World world) Called when a player uses 'pick block', calls new Entity and Block hooks.static boolean
ForgeHooks.onPlayerAttackTarget
(PlayerEntity player, Entity target) static ItemEntity
ForgeHooks.onPlayerTossEvent
(PlayerEntity player, ItemStack item, boolean includeName) ForgeHooks.onRightClickBlock
(PlayerEntity player, Hand hand, BlockPos pos, Direction face) Deprecated.ForgeHooks.onRightClickBlock
(PlayerEntity player, Hand hand, BlockPos pos, BlockRayTraceResult hitVec) IForgeShearable.onSheared
(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) Performs the shear function on this object.static void
ForgeHooks.setCraftingPlayer
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.canHarvestBlock
(BlockState state, IBlockReader world, BlockPos pos, PlayerEntity player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IForgeBlockState.canHarvestBlock
(IBlockReader world, BlockPos pos, PlayerEntity player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IForgeItem.doesSneakBypassUse
(ItemStack stack, IWorldReader world, BlockPos pos, PlayerEntity player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default boolean
IForgeItemStack.doesSneakBypassUse
(IWorldReader world, BlockPos pos, PlayerEntity player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?int
IForgeItem.getHarvestLevel
(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) Queries the harvest level of this item stack for the specified tool class, Returns -1 if this tool is not of the specified typedefault int
IForgeItemStack.getHarvestLevel
(ToolType tool, PlayerEntity player, BlockState state) Queries the harvest level of this item stack for the specified tool class, Returns -1 if this tool is not of the specified typedefault ItemStack
IForgeBlock.getPickBlock
(BlockState state, RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeBlockState.getPickBlock
(RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault BlockState
IForgeBlock.getToolModifiedState
(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.default BlockState
IForgeBlockState.getToolModifiedState
(World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.default boolean
IForgeItem.isEnderMask
(ItemStack stack, PlayerEntity player, EndermanEntity endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IForgeItemStack.isEnderMask
(PlayerEntity player, EndermanEntity endermanEntity) Whether this Item can be used to hide player head for enderman.default void
IForgeItem.onArmorTick
(ItemStack stack, World world, PlayerEntity player) Called to tick armor in the armor slot.default void
IForgeItemStack.onArmorTick
(World world, PlayerEntity player) Called to tick armor in the armor slot.default boolean
IForgeItem.onBlockStartBreak
(ItemStack itemstack, BlockPos pos, PlayerEntity player) Called before a block is broken.default boolean
IForgeItemStack.onBlockStartBreak
(BlockPos pos, PlayerEntity player) Called before a block is broken.default boolean
IForgeItem.onDroppedByPlayer
(ItemStack item, PlayerEntity player) Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the worlddefault boolean
IForgeItemStack.onDroppedByPlayer
(PlayerEntity player) Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the worlddefault boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, PlayerEntity player, Entity entity) Called when the player Left Clicks (attacks) an entity.default boolean
IForgeBlock.removedByPlayer
(BlockState state, World world, BlockPos pos, PlayerEntity player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlockState.removedByPlayer
(World world, BlockPos pos, PlayerEntity player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default void
IForgeItem.renderHelmetOverlay
(ItemStack stack, PlayerEntity player, int width, int height, float partialTicks) Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet. -
Uses of PlayerEntity in net.minecraftforge.common.util
-
Uses of PlayerEntity in net.minecraftforge.debug.block
Modifier and TypeMethodDescriptionCustomRespawnTest.CustomRespawnBlock.use
(BlockState p_225533_1_, World world, BlockPos pos, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) FullPotsAccessorDemo.DioriteFlowerPotBlock.use
(BlockState state, World level, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult hit) -
Uses of PlayerEntity in net.minecraftforge.debug.misc
Modifier and TypeMethodDescriptionboolean
ContainerTypeTest.TestContainer.stillValid
(PlayerEntity playerIn) -
Uses of PlayerEntity in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final PlayerEntity
AnvilUpdateEvent.player
final PlayerEntity
TickEvent.PlayerTickEvent.player
Modifier and TypeMethodDescriptionAnvilUpdateEvent.getPlayer()
Nullable in the case someone is using the deprecated constructor.Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.doPlayerHarvestCheck
(PlayerEntity player, BlockState state, boolean success) static void
ForgeEventFactory.firePlayerLoadingEvent
(PlayerEntity player, File playerDirectory, String uuidString) static void
ForgeEventFactory.firePlayerLoadingEvent
(PlayerEntity player, PlayerData playerFileData, String uuidString) static void
ForgeEventFactory.firePlayerSavingEvent
(PlayerEntity player, File playerDirectory, String uuidString) static boolean
ForgeEventFactory.fireSleepingTimeCheck
(PlayerEntity player, Optional<BlockPos> sleepingLocation) static float
ForgeEventFactory.getBreakSpeed
(PlayerEntity player, BlockState state, float original, BlockPos pos) static int
ForgeEventFactory.getExperienceDrop
(LivingEntity entity, PlayerEntity attackingPlayer, int originalExperience) static ITextComponent
ForgeEventFactory.getPlayerDisplayName
(PlayerEntity player, ITextComponent username) static ITextComponent
ForgeEventFactory.getPlayerTabListDisplayName
(PlayerEntity player) static boolean
ForgeEventFactory.onAnimalTame
(AnimalEntity animal, PlayerEntity tamer) static int
ForgeEventFactory.onApplyBonemeal
(PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static int
ForgeEventFactory.onArrowLoose
(ItemStack stack, World world, PlayerEntity player, int charge, boolean hasAmmo) static ActionResult<ItemStack>
ForgeEventFactory.onArrowNock
(ItemStack item, World world, PlayerEntity player, Hand hand, boolean hasAmmo) static ActionResult<ItemStack>
ForgeEventFactory.onBucketUse
(PlayerEntity player, World world, ItemStack stack, RayTraceResult target) static int
ForgeEventFactory.onItemPickup
(ItemEntity entityItem, PlayerEntity player) static ItemTooltipEvent
ForgeEventFactory.onItemTooltip
(ItemStack itemStack, PlayerEntity entityPlayer, List<ITextComponent> list, ITooltipFlag flags) static void
ForgeEventFactory.onPlayerBrewedPotion
(PlayerEntity player, ItemStack stack) static void
ForgeEventFactory.onPlayerClone
(PlayerEntity player, PlayerEntity oldPlayer, boolean wasDeath) static void
ForgeEventFactory.onPlayerDestroyItem
(PlayerEntity player, ItemStack stack, Hand hand) static void
ForgeEventFactory.onPlayerFall
(PlayerEntity player, float distance, float multiplier) static PlayerEntity.SleepResult
ForgeEventFactory.onPlayerSleepInBed
(PlayerEntity player, Optional<BlockPos> pos) static boolean
ForgeEventFactory.onPlayerSpawnSet
(PlayerEntity player, RegistryKey<World> world, BlockPos pos, boolean forced) static void
ForgeEventFactory.onPlayerWakeup
(PlayerEntity player, boolean wakeImmediately, boolean updateWorldFlag) static void
ForgeEventFactory.onStartEntityTracking
(Entity entity, PlayerEntity player) static void
ForgeEventFactory.onStopEntityTracking
(Entity entity, PlayerEntity player) static BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) static boolean
ForgeEventFactory.renderBlockOverlay
(PlayerEntity player, MatrixStack mat, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos pos) static boolean
ForgeEventFactory.renderFireOverlay
(PlayerEntity player, MatrixStack mat) static boolean
ForgeEventFactory.renderWaterOverlay
(PlayerEntity player, MatrixStack mat) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, int cost, PlayerEntity player) PlayerTickEvent
(TickEvent.Phase phase, PlayerEntity player) -
Uses of PlayerEntity in net.minecraftforge.event.brewing
-
Uses of PlayerEntity in net.minecraftforge.event.entity.item
ModifierConstructorDescriptionItemTossEvent
(ItemEntity entityItem, PlayerEntity player) Creates a new event for EntityItems tossed by a player. -
Uses of PlayerEntity in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final PlayerEntity
LivingExperienceDropEvent.attackingPlayer
private final PlayerEntity
BabyEntitySpawnEvent.causedByPlayer
private final PlayerEntity
AnimalTameEvent.tamer
Modifier and TypeMethodDescriptionLivingExperienceDropEvent.getAttackingPlayer()
BabyEntitySpawnEvent.getCausedByPlayer()
AnimalTameEvent.getTamer()
ModifierConstructorDescriptionAnimalTameEvent
(AnimalEntity animal, PlayerEntity tamer) LivingExperienceDropEvent
(LivingEntity entity, PlayerEntity attackingPlayer, int originalExperience) -
Uses of PlayerEntity in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final PlayerEntity
PlayerEvent.entityPlayer
private final PlayerEntity
PlayerEvent.Clone.original
Modifier and TypeMethodDescriptionPlayerEvent.Clone.getOriginal()
The old EntityPlayer that this new entity is a clone of.ItemTooltipEvent.getPlayer()
This event is fired with a null player during startup when populating search trees for tooltips.PlayerEvent.getPlayer()
ModifierConstructorDescriptionAdvancementEvent
(PlayerEntity player, Advancement advancement) AnvilRepairEvent
(PlayerEntity player, ItemStack left, ItemStack right, ItemStack output) ArrowLooseEvent
(PlayerEntity player, ItemStack bow, World world, int charge, boolean hasAmmo) ArrowNockEvent
(PlayerEntity player, ItemStack item, Hand hand, World world, boolean hasAmmo) AttackEntityEvent
(PlayerEntity player, Entity target) BonemealEvent
(PlayerEntity player, World world, BlockPos pos, BlockState block, ItemStack stack) BreakSpeed
(PlayerEntity player, BlockState state, float original, BlockPos pos) Clone
(PlayerEntity _new, PlayerEntity oldPlayer, boolean wasDeath) Close
(PlayerEntity player, Container container) CriticalHitEvent
(PlayerEntity player, Entity target, float damageModifier, boolean vanillaCritical) EntityInteract
(PlayerEntity player, Hand hand, Entity target) EntityInteractSpecific
(PlayerEntity player, Hand hand, Entity target, Vector3d localPos) EntityItemPickupEvent
(PlayerEntity player, ItemEntity item) FillBucketEvent
(PlayerEntity player, ItemStack current, World world, RayTraceResult target) HarvestCheck
(PlayerEntity player, BlockState state, boolean success) ItemCraftedEvent
(PlayerEntity player, ItemStack crafting, IInventory craftMatrix) ItemPickupEvent
(PlayerEntity player, ItemEntity entPickedUp, ItemStack stack) ItemSmeltedEvent
(PlayerEntity player, ItemStack crafting) ItemTooltipEvent
(ItemStack itemStack, PlayerEntity entityPlayer, List<ITextComponent> list, ITooltipFlag flags) This event is fired inItemStack#getTooltip(EntityPlayer, ITooltipFlag)
, which in turn is called from it's respective GUIContainer.LeftClickBlock
(PlayerEntity player, BlockPos pos, Direction face) LeftClickEmpty
(PlayerEntity player) LevelChange
(PlayerEntity player, int levels) LoadFromFile
(PlayerEntity player, File originDirectory, String playerUUID) NameFormat
(PlayerEntity player, ITextComponent username) Open
(PlayerEntity player, Container container) PickupXp
(PlayerEntity player, ExperienceOrbEntity orb) PlayerChangedDimensionEvent
(PlayerEntity player, RegistryKey<World> fromDim, RegistryKey<World> toDim) PlayerChangeGameModeEvent
(PlayerEntity player, GameType currentGameMode, GameType newGameMode) PlayerContainerEvent
(PlayerEntity player, Container container) PlayerDestroyItemEvent
(PlayerEntity player, ItemStack original, Hand hand) PlayerEvent
(PlayerEntity player) PlayerFlyableFallEvent
(PlayerEntity player, float distance, float multiplier) private
PlayerInteractEvent
(PlayerEntity player, Hand hand, BlockPos pos, Direction face) PlayerLoggedInEvent
(PlayerEntity player) PlayerLoggedOutEvent
(PlayerEntity player) PlayerRespawnEvent
(PlayerEntity player, boolean endConquered) PlayerSetSpawnEvent
(PlayerEntity player, RegistryKey<World> spawnWorld, BlockPos newSpawn, boolean forced) PlayerSleepInBedEvent
(PlayerEntity player, Optional<BlockPos> pos) PlayerWakeUpEvent
(PlayerEntity player, boolean wakeImmediately, boolean updateWorld) PlayerXpEvent
(PlayerEntity player) RightClickBlock
(PlayerEntity player, Hand hand, BlockPos pos, Direction face) Deprecated.RightClickBlock
(PlayerEntity player, Hand hand, BlockPos pos, BlockRayTraceResult hitVec) RightClickEmpty
(PlayerEntity player, Hand hand) RightClickItem
(PlayerEntity player, Hand hand) SaveToFile
(PlayerEntity player, File originDirectory, String playerUUID) SleepingTimeCheckEvent
(PlayerEntity player, Optional<BlockPos> sleepingLocation) StartTracking
(PlayerEntity player, Entity target) StopTracking
(PlayerEntity player, Entity target) TabListNameFormat
(PlayerEntity player) Visibility
(PlayerEntity player) Deprecated.XpChange
(PlayerEntity player, int amount) -
Uses of PlayerEntity in net.minecraftforge.event.village
ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, World world, PlayerEntity player, Vector3d attemptedSpawnPos) -
Uses of PlayerEntity in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final PlayerEntity
BlockEvent.BlockToolInteractEvent.player
private final PlayerEntity
BlockEvent.BreakEvent.player
Reference to the Player who broke the block.Modifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getPlayer()
Gets the player using the tool.BlockEvent.BreakEvent.getPlayer()
ModifierConstructorDescriptionBlockToolInteractEvent
(IWorld world, BlockPos pos, BlockState originalState, PlayerEntity player, ItemStack stack, ToolType toolType) BreakEvent
(World world, BlockPos pos, BlockState state, PlayerEntity player) -
Uses of PlayerEntity in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionstatic boolean
FluidUtil.interactWithFluidHandler
(PlayerEntity player, Hand hand, World world, BlockPos pos, Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static boolean
FluidUtil.interactWithFluidHandler
(PlayerEntity player, Hand hand, IFluidHandler handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static FluidActionResult
FluidUtil.tryEmptyContainer
(ItemStack container, IFluidHandler fluidDestination, int maxAmount, PlayerEntity player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, PlayerEntity player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static FluidActionResult
FluidUtil.tryFillContainer
(ItemStack container, IFluidHandler fluidSource, int maxAmount, PlayerEntity player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.tryFillContainerAndStow
(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, PlayerEntity player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, PlayerEntity playerIn, World worldIn, BlockPos pos, Direction side) Attempts to pick up a fluid in the world and put it in an empty container item.static FluidActionResult
FluidUtil.tryPlaceFluid
(PlayerEntity player, World world, Hand hand, BlockPos pos, ItemStack container, FluidStack resource) ItemStack version ofFluidUtil.tryPlaceFluid(PlayerEntity, World, Hand, BlockPos, IFluidHandler, FluidStack)
.static boolean
FluidUtil.tryPlaceFluid
(PlayerEntity player, World world, Hand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Tries to place a fluid resource into the world as a block and drains the fluidSource.void
FluidAttributes.vaporize
(PlayerEntity player, World worldIn, BlockPos pos, FluidStack fluidStack) Called instead of placing the fluid block ifnet.minecraft.world.dimension.Dimension#doesWaterVaporize()
and#doesVaporize(FluidStack)
are true. -
Uses of PlayerEntity in net.minecraftforge.fml.hooks
Modifier and TypeMethodDescriptionstatic void
BasicEventHooks.firePlayerChangedDimensionEvent
(PlayerEntity player, RegistryKey<World> fromDim, RegistryKey<World> toDim) static void
BasicEventHooks.firePlayerCraftingEvent
(PlayerEntity player, ItemStack crafted, IInventory craftMatrix) static void
BasicEventHooks.firePlayerItemPickupEvent
(PlayerEntity player, ItemEntity item, ItemStack clone) static void
BasicEventHooks.firePlayerLoggedIn
(PlayerEntity player) static void
BasicEventHooks.firePlayerLoggedOut
(PlayerEntity player) static void
BasicEventHooks.firePlayerRespawnEvent
(PlayerEntity player, boolean endConquered) static void
BasicEventHooks.firePlayerSmeltedEvent
(PlayerEntity player, ItemStack smelted) static void
BasicEventHooks.onPlayerPostTick
(PlayerEntity player) static void
BasicEventHooks.onPlayerPreTick
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraftforge.items
Modifier and TypeMethodDescriptionstatic void
ItemHandlerHelper.giveItemToPlayer
(PlayerEntity player, ItemStack stack) giveItemToPlayer without preferred slotstatic void
ItemHandlerHelper.giveItemToPlayer
(PlayerEntity player, ItemStack stack, int preferredSlot) Inserts the given itemstack into the players inventory.boolean
SlotItemHandler.mayPickup
(PlayerEntity playerIn) -
Uses of PlayerEntity in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescriptionvoid
RecipeWrapper.startOpen
(PlayerEntity player) boolean
RecipeWrapper.stillValid
(PlayerEntity player) void
RecipeWrapper.stopOpen
(PlayerEntity player) -
Uses of PlayerEntity in net.minecraftforge.server.permission
Modifier and TypeMethodDescriptionstatic boolean
PermissionAPI.hasPermission
(PlayerEntity player, String node) Shortcut method using EntityPlayer and creating PlayerContext -
Uses of PlayerEntity in net.minecraftforge.server.permission.context
Modifier and TypeMethodDescriptionContext.getPlayer()
IContext.getPlayer()
PlayerContext.getPlayer()
WorldContext.getPlayer()
ModifierConstructorDescriptionAreaContext
(PlayerEntity ep, AxisAlignedBB aabb) BlockPosContext
(PlayerEntity ep, BlockPos pos, BlockState state, Direction f) BlockPosContext
(PlayerEntity ep, ChunkPos pos) TargetContext
(PlayerEntity ep, Entity entity)