Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
RidingMinecartTickableSound.player |
Constructor and Description |
---|
RidingMinecartTickableSound(PlayerEntity playerIn,
AbstractMinecartEntity minecartIn) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientPlayerEntity |
class |
ClientPlayerEntity |
class |
RemoteClientPlayerEntity |
Modifier and Type | Method and Description |
---|---|
private PlayerEntity |
IngameGui.getRenderViewPlayer() |
Modifier and Type | Method and Description |
---|---|
private void |
IngameGui.renderHotbarItem(int x,
int y,
float partialTicks,
PlayerEntity player,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
EditBookScreen.editingPlayer |
Constructor and Description |
---|
EditBookScreen(PlayerEntity player,
ItemStack bookIn,
Hand handIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
CreativeScreen.CreativeContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
CreativeScreen.CreativeSlot.canTakeStack(PlayerEntity playerIn) |
boolean |
CreativeScreen.LockedSlot.canTakeStack(PlayerEntity playerIn) |
ItemStack |
CreativeScreen.CreativeSlot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
ItemStack |
CreativeScreen.CreativeContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
Constructor and Description |
---|
CreativeContainer(PlayerEntity player) |
CreativeScreen(PlayerEntity player) |
InventoryScreen(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerController.attackEntity(PlayerEntity playerIn,
Entity targetEntity) |
ActionResultType |
PlayerController.interactWithEntity(PlayerEntity player,
Entity target,
EntityRayTraceResult ray,
Hand hand) |
ActionResultType |
PlayerController.interactWithEntity(PlayerEntity player,
Entity target,
Hand hand) |
void |
PlayerController.onStoppedUsingItem(PlayerEntity playerIn) |
ActionResultType |
PlayerController.processRightClick(PlayerEntity player,
World worldIn,
Hand hand) |
void |
PlayerController.setPlayerCapabilities(PlayerEntity player) |
ItemStack |
PlayerController.windowClick(int windowId,
int slotId,
int mouseButton,
ClickType type,
PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
private static ItemStack |
ClientPlayNetHandler.func_217282_a(PlayerEntity p_217282_0_) |
Modifier and Type | Method and Description |
---|---|
private static org.apache.commons.lang3.tuple.Pair<BlockState,BlockPos> |
OverlayRenderer.getOverlayBlock(PlayerEntity playerIn) |
private static BlockState |
OverlayRenderer.getViewBlockingState(PlayerEntity playerIn) |
void |
WorldRenderer.playEvent(PlayerEntity player,
int type,
BlockPos blockPosIn,
int data) |
Modifier and Type | Class and Description |
---|---|
class |
ParrotVariantLayer<T extends PlayerEntity> |
Modifier and Type | Method and Description |
---|---|
void |
ClientWorld.playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
ClientWorld.playMovingSound(PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch) |
void |
ClientWorld.playSound(PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
Modifier and Type | Field and Description |
---|---|
protected PlayerEntity |
LivingEntity.attackingPlayer |
private PlayerEntity |
NPCMerchant.customer |
Modifier and Type | Field and Description |
---|---|
static EntityType<PlayerEntity> |
EntityType.PLAYER |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
NPCMerchant.getCustomer() |
Modifier and Type | Method and Description |
---|---|
static void |
EntityType.applyItemNBT(World worldIn,
PlayerEntity player,
Entity spawnedEntity,
CompoundNBT itemNBT) |
ActionResultType |
Entity.applyPlayerInteraction(PlayerEntity player,
Vec3d vec,
Hand hand) |
boolean |
MobEntity.canBeLeashedTo(PlayerEntity player) |
T |
EntityType.create(World worldIn,
CompoundNBT compound,
ITextComponent customName,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220349_7_,
boolean p_220349_8_) |
protected int |
LivingEntity.getExperiencePoints(PlayerEntity player) |
protected int |
MobEntity.getExperiencePoints(PlayerEntity player) |
boolean |
Entity.isInvisibleToPlayer(PlayerEntity player) |
protected void |
AgeableEntity.onChildSpawnFromEgg(PlayerEntity playerIn,
AgeableEntity child) |
void |
Entity.onCollideWithPlayer(PlayerEntity entityIn) |
boolean |
MobEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
Entity.processInitialInteract(PlayerEntity player,
Hand hand) |
protected boolean |
MobEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
AgeableEntity.processInteract(PlayerEntity player,
Hand hand) |
void |
NPCMerchant.setCustomer(PlayerEntity player) |
boolean |
LivingEntity.shouldRiderFaceForward(PlayerEntity player)
Returns true if the entity's rider (EntityPlayer) should face forward when mounted.
|
T |
EntityType.spawn(World worldIn,
CompoundNBT compound,
ITextComponent customName,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220342_7_,
boolean p_220342_8_) |
Entity |
EntityType.spawn(World worldIn,
ItemStack stack,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220331_6_,
boolean p_220331_7_) |
Constructor and Description |
---|
NPCMerchant(PlayerEntity p_i50184_1_) |
Modifier and Type | Field and Description |
---|---|
static MemoryModuleType<java.util.List<PlayerEntity>> |
MemoryModuleType.NEAREST_PLAYERS |
static MemoryModuleType<PlayerEntity> |
MemoryModuleType.NEAREST_VISIBLE_PLAYER |
Modifier and Type | Method and Description |
---|---|
private java.util.Optional<PlayerEntity> |
GiveHeroGiftsTask.getNearestPlayer(VillagerEntity p_220400_1_) |
Modifier and Type | Method and Description |
---|---|
private boolean |
GiveHeroGiftsTask.isCloseEnough(VillagerEntity p_220401_1_,
PlayerEntity p_220401_2_) |
private boolean |
GiveHeroGiftsTask.isHero(PlayerEntity p_220402_1_) |
Modifier and Type | Field and Description |
---|---|
protected PlayerEntity |
TemptGoal.closestPlayer |
private PlayerEntity |
BegGoal.player |
Modifier and Type | Method and Description |
---|---|
private boolean |
BegGoal.hasTemptationItemInHand(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
void |
IPhase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
void |
Phase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
void |
HoldingPatternPhase.onCrystalDestroyed(EnderCrystalEntity crystal,
BlockPos pos,
DamageSource dmgSrc,
PlayerEntity plyr) |
private void |
HoldingPatternPhase.strafePlayer(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
ExperienceOrbEntity.closestPlayer |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
ArmorStandEntity.applyPlayerInteraction(PlayerEntity player,
Vec3d vec,
Hand hand) |
private boolean |
ArmorStandEntity.func_226529_a_(PlayerEntity p_226529_1_,
EquipmentSlotType p_226529_2_,
ItemStack p_226529_3_,
Hand p_226529_4_) |
void |
ExperienceOrbEntity.onCollideWithPlayer(PlayerEntity entityIn) |
void |
ItemEntity.onCollideWithPlayer(PlayerEntity entityIn) |
boolean |
BoatEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
ItemFrameEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
LeashKnotEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
Modifier and Type | Method and Description |
---|---|
void |
ContainerMinecartEntity.addLoot(PlayerEntity player) |
Container |
ContainerMinecartEntity.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
boolean |
ContainerMinecartEntity.isUsableByPlayer(PlayerEntity player) |
boolean |
FurnaceMinecartEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
ContainerMinecartEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
MinecartEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
boolean |
MinecartCommandBlockEntity.processInitialInteract(PlayerEntity player,
Hand hand) |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
IMerchant.getCustomer() |
Modifier and Type | Method and Description |
---|---|
default void |
IMerchant.openMerchantContainer(PlayerEntity player,
ITextComponent p_213707_2_,
int level) |
void |
IMerchant.setCustomer(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
AbstractVillagerEntity.customer |
private PlayerEntity |
VillagerEntity.previousCustomer |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
AbstractVillagerEntity.getCustomer() |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractVillagerEntity.canBeLeashedTo(PlayerEntity player) |
private void |
VillagerEntity.displayMerchantGui(PlayerEntity player) |
int |
VillagerEntity.getPlayerReputation(PlayerEntity player) |
boolean |
VillagerEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
WanderingTraderEntity.processInteract(PlayerEntity player,
Hand hand) |
private void |
VillagerEntity.recalculateSpecialPricesFor(PlayerEntity playerIn) |
void |
VillagerEntity.setCustomer(PlayerEntity player) |
void |
AbstractVillagerEntity.setCustomer(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
EndermanEntity.FindPlayerGoal.player |
Modifier and Type | Field and Description |
---|---|
private ToggleableNearestAttackableTargetGoal<PlayerEntity> |
WitchEntity.field_213695_bD |
Modifier and Type | Method and Description |
---|---|
protected int |
ZombieEntity.getExperiencePoints(PlayerEntity player) |
boolean |
ZombiePigmanEntity.isPreventingPlayerRest(PlayerEntity playerIn) |
boolean |
MonsterEntity.isPreventingPlayerRest(PlayerEntity playerIn) |
void |
SlimeEntity.onCollideWithPlayer(PlayerEntity entityIn) |
boolean |
ZombieEntity.processInteract(PlayerEntity player,
Hand hand) |
protected boolean |
CreeperEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
ZombieVillagerEntity.processInteract(PlayerEntity player,
Hand hand) |
private boolean |
EndermanEntity.shouldAttackPlayer(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
CatEntity.MorningGiftGoal.owner |
private PlayerEntity |
DolphinEntity.SwimWithPlayerGoal.targetPlayer |
private PlayerEntity |
TurtleEntity.PlayerTemptGoal.tempter |
private PlayerEntity |
CatEntity.TemptGoal.temptingPlayer |
Modifier and Type | Field and Description |
---|---|
private CatEntity.AvoidPlayerGoal<PlayerEntity> |
CatEntity.avoidPlayerGoal |
private OcelotEntity.AvoidEntityGoal<PlayerEntity> |
OcelotEntity.field_213531_bB |
Modifier and Type | Method and Description |
---|---|
boolean |
WolfEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
DolphinEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
AmbientEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
TameableEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
PandaEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
WaterMobEntity.canBeLeashedTo(PlayerEntity player) |
boolean |
TurtleEntity.canBeLeashedTo(PlayerEntity player) |
protected void |
CatEntity.consumeItemFromStack(PlayerEntity player,
ItemStack stack) |
protected void |
FoxEntity.consumeItemFromStack(PlayerEntity player,
ItemStack stack) |
protected void |
AnimalEntity.consumeItemFromStack(PlayerEntity player,
ItemStack stack) |
protected int |
ChickenEntity.getExperiencePoints(PlayerEntity player) |
protected int |
WaterMobEntity.getExperiencePoints(PlayerEntity player) |
protected int |
AnimalEntity.getExperiencePoints(PlayerEntity player) |
protected void |
FoxEntity.onChildSpawnFromEgg(PlayerEntity playerIn,
AgeableEntity child) |
boolean |
WolfEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
CatEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
CowEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
SheepEntity.processInteract(PlayerEntity player,
Hand hand) |
protected boolean |
DolphinEntity.processInteract(PlayerEntity player,
Hand hand) |
protected boolean |
IronGolemEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
PandaEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
MooshroomEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
ParrotEntity.processInteract(PlayerEntity player,
Hand hand) |
protected boolean |
SnowGolemEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
OcelotEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
PigEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
AnimalEntity.processInteract(PlayerEntity player,
Hand hand) |
void |
AnimalEntity.setInLove(PlayerEntity player) |
void |
TameableEntity.setTamedBy(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
void |
PufferfishEntity.onCollideWithPlayer(PlayerEntity entityIn) |
protected boolean |
AbstractFishEntity.processInteract(PlayerEntity player,
Hand hand) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractHorseEntity.canBeLeashedTo(PlayerEntity player) |
protected boolean |
AbstractHorseEntity.handleEating(PlayerEntity player,
ItemStack stack) |
protected boolean |
LlamaEntity.handleEating(PlayerEntity player,
ItemStack stack) |
protected void |
AbstractHorseEntity.mountTo(PlayerEntity player) |
protected void |
TraderLlamaEntity.mountTo(PlayerEntity player) |
void |
AbstractHorseEntity.openGUI(PlayerEntity playerEntity) |
boolean |
SkeletonHorseEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
HorseEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
ZombieHorseEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
AbstractChestedHorseEntity.processInteract(PlayerEntity player,
Hand hand) |
boolean |
AbstractHorseEntity.setTamedBy(PlayerEntity player) |
Modifier and Type | Class and Description |
---|---|
class |
ServerPlayerEntity |
Modifier and Type | Field and Description |
---|---|
PlayerEntity |
PlayerInventory.player |
Modifier and Type | Method and Description |
---|---|
boolean |
PlayerEntity.canAttackPlayer(PlayerEntity other) |
boolean |
ServerPlayerEntity.canAttackPlayer(PlayerEntity other) |
protected int |
PlayerEntity.getExperiencePoints(PlayerEntity player) |
boolean |
PlayerInventory.isUsableByPlayer(PlayerEntity player) |
Constructor and Description |
---|
PlayerInventory(PlayerEntity playerIn) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
FishingBobberEntity.angler |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
FishingBobberEntity.getAngler() |
Modifier and Type | Method and Description |
---|---|
void |
TridentEntity.onCollideWithPlayer(PlayerEntity entityIn) |
void |
AbstractArrowEntity.onCollideWithPlayer(PlayerEntity entityIn) |
Constructor and Description |
---|
FishingBobberEntity(PlayerEntity p_i50220_1_,
World p_i50220_2_,
int p_i50220_3_,
int p_i50220_4_) |
FishingBobberEntity(World worldIn,
PlayerEntity p_i47290_2_,
double x,
double y,
double z) |
FishingBobberEntity(World p_i50219_1_,
PlayerEntity p_i50219_2_,
int p_i50219_3_,
int p_i50219_4_) |
Modifier and Type | Method and Description |
---|---|
void |
DoubleSidedInventory.closeInventory(PlayerEntity player) |
default void |
IInventory.closeInventory(PlayerEntity player) |
void |
EnderChestInventory.closeInventory(PlayerEntity player) |
boolean |
DoubleSidedInventory.isUsableByPlayer(PlayerEntity player) |
boolean |
CraftingInventory.isUsableByPlayer(PlayerEntity player) |
boolean |
IInventory.isUsableByPlayer(PlayerEntity player) |
boolean |
EnderChestInventory.isUsableByPlayer(PlayerEntity player) |
boolean |
Inventory.isUsableByPlayer(PlayerEntity player) |
boolean |
MerchantInventory.isUsableByPlayer(PlayerEntity player) |
boolean |
CraftResultInventory.isUsableByPlayer(PlayerEntity player) |
default void |
IRecipeHolder.onCrafting(PlayerEntity player) |
void |
DoubleSidedInventory.openInventory(PlayerEntity player) |
default void |
IInventory.openInventory(PlayerEntity player) |
void |
EnderChestInventory.openInventory(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
FurnaceResultSlot.player |
private PlayerEntity |
RepairContainer.player |
private PlayerEntity |
WorkbenchContainer.player |
private PlayerEntity |
MerchantResultSlot.player |
private PlayerEntity |
CraftingResultSlot.player |
private PlayerEntity |
PlayerContainer.player |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<PlayerEntity> |
Container.playerList |
Modifier and Type | Method and Description |
---|---|
boolean |
MerchantContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
CartographyContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
RepairContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
EnchantmentContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
AbstractFurnaceContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
WorkbenchContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
BrewingStandContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
HopperContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
BeaconContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
ChestContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
GrindstoneContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
StonecutterContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
ShulkerBoxContainer.canInteractWith(PlayerEntity playerIn) |
abstract boolean |
Container.canInteractWith(PlayerEntity playerIn) |
boolean |
LecternContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
HorseInventoryContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
LoomContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
PlayerContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
DispenserContainer.canInteractWith(PlayerEntity playerIn) |
boolean |
Slot.canTakeStack(PlayerEntity playerIn) |
protected void |
Container.clearContainer(PlayerEntity playerIn,
World worldIn,
IInventory inventoryIn) |
Container |
IContainerProvider.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
Container |
SimpleNamedContainerProvider.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
boolean |
EnchantmentContainer.enchantItem(PlayerEntity playerIn,
int id) |
boolean |
StonecutterContainer.enchantItem(PlayerEntity playerIn,
int id) |
boolean |
Container.enchantItem(PlayerEntity playerIn,
int id) |
boolean |
LecternContainer.enchantItem(PlayerEntity playerIn,
int id) |
boolean |
LoomContainer.enchantItem(PlayerEntity playerIn,
int id) |
protected static void |
WorkbenchContainer.func_217066_a(int p_217066_0_,
World p_217066_1_,
PlayerEntity p_217066_2_,
CraftingInventory p_217066_3_,
CraftResultInventory p_217066_4_) |
boolean |
Container.getCanCraft(PlayerEntity player) |
static boolean |
Container.isValidDragMode(int dragModeIn,
PlayerEntity player) |
protected static boolean |
Container.isWithinUsableDistance(IWorldPosCallable worldPos,
PlayerEntity playerIn,
Block targetBlock) |
void |
MerchantContainer.onContainerClosed(PlayerEntity playerIn) |
void |
CartographyContainer.onContainerClosed(PlayerEntity playerIn) |
void |
RepairContainer.onContainerClosed(PlayerEntity playerIn) |
void |
EnchantmentContainer.onContainerClosed(PlayerEntity playerIn) |
void |
WorkbenchContainer.onContainerClosed(PlayerEntity playerIn) |
void |
HopperContainer.onContainerClosed(PlayerEntity playerIn) |
void |
BeaconContainer.onContainerClosed(PlayerEntity playerIn) |
void |
ChestContainer.onContainerClosed(PlayerEntity playerIn) |
void |
GrindstoneContainer.onContainerClosed(PlayerEntity playerIn) |
void |
StonecutterContainer.onContainerClosed(PlayerEntity playerIn) |
void |
ShulkerBoxContainer.onContainerClosed(PlayerEntity playerIn) |
void |
Container.onContainerClosed(PlayerEntity playerIn) |
void |
HorseInventoryContainer.onContainerClosed(PlayerEntity playerIn) |
void |
LoomContainer.onContainerClosed(PlayerEntity playerIn) |
void |
PlayerContainer.onContainerClosed(PlayerEntity playerIn) |
void |
DispenserContainer.onContainerClosed(PlayerEntity playerIn) |
ItemStack |
FurnaceResultSlot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
ItemStack |
BrewingStandContainer.PotionSlot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
ItemStack |
MerchantResultSlot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
ItemStack |
CraftingResultSlot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
ItemStack |
Slot.onTake(PlayerEntity thePlayer,
ItemStack stack) |
void |
Container.setCanCraft(PlayerEntity player,
boolean canCraft) |
ItemStack |
Container.slotClick(int slotId,
int dragType,
ClickType clickTypeIn,
PlayerEntity player) |
ItemStack |
MerchantContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
CartographyContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
RepairContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
EnchantmentContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
AbstractFurnaceContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
WorkbenchContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
BrewingStandContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
HopperContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
BeaconContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
ChestContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
GrindstoneContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
StonecutterContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
ShulkerBoxContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
Container.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
HorseInventoryContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
LoomContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
PlayerContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
ItemStack |
DispenserContainer.transferStackInSlot(PlayerEntity playerIn,
int index) |
Constructor and Description |
---|
CraftingResultSlot(PlayerEntity player,
CraftingInventory craftingInventory,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
FurnaceResultSlot(PlayerEntity player,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
MerchantResultSlot(PlayerEntity player,
IMerchant merchant,
MerchantInventory merchantInventory,
int slotIndex,
int xPosition,
int yPosition) |
PlayerContainer(PlayerInventory playerInventory,
boolean localWorld,
PlayerEntity playerIn) |
Modifier and Type | Field and Description |
---|---|
protected PlayerEntity |
ItemUseContext.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
ItemUseContext.getPlayer() |
Constructor and Description |
---|
BlockItemUseContext(World worldIn,
PlayerEntity playerIn,
Hand handIn,
ItemStack stackIn,
BlockRayTraceResult rayTraceResultIn) |
ItemUseContext(PlayerEntity player,
Hand handIn,
BlockRayTraceResult rayTraceResultIn) |
ItemUseContext(World worldIn,
PlayerEntity player,
Hand handIn,
ItemStack heldItem,
BlockRayTraceResult rayTraceResultIn) |
Constructor and Description |
---|
SSpawnPlayerPacket(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
boolean |
MinecraftServer.isBlockProtected(World worldIn,
BlockPos pos,
PlayerEntity playerIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
DedicatedServer.isBlockProtected(World worldIn,
BlockPos pos,
PlayerEntity playerIn) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
DemoPlayerInteractionManager.func_219441_a(PlayerEntity playerIn,
World worldIn,
ItemStack stackIn,
Hand handIn,
BlockRayTraceResult blockRaytraceResultIn) |
ActionResultType |
PlayerInteractionManager.func_219441_a(PlayerEntity playerIn,
World worldIn,
ItemStack stackIn,
Hand handIn,
BlockRayTraceResult blockRaytraceResultIn) |
ServerStatisticsManager |
PlayerList.getPlayerStats(PlayerEntity playerIn) |
ActionResultType |
DemoPlayerInteractionManager.processRightClick(PlayerEntity player,
World worldIn,
ItemStack stack,
Hand hand) |
ActionResultType |
PlayerInteractionManager.processRightClick(PlayerEntity player,
World worldIn,
ItemStack stack,
Hand hand) |
void |
PlayerList.sendMessageToAllTeamMembers(PlayerEntity player,
ITextComponent message) |
void |
PlayerList.sendMessageToTeamOrAllPlayers(PlayerEntity player,
ITextComponent message) |
void |
PlayerList.sendToAllNearExcept(PlayerEntity except,
double x,
double y,
double z,
double radius,
DimensionType dimension,
IPacket<?> packetIn) |
Modifier and Type | Method and Description |
---|---|
void |
StatisticsManager.increment(PlayerEntity player,
Stat<?> stat,
int amount) |
void |
StatisticsManager.setValue(PlayerEntity playerIn,
Stat<?> statIn,
int p_150873_3_) |
void |
ServerStatisticsManager.setValue(PlayerEntity playerIn,
Stat<?> statIn,
int p_150873_3_) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
SignTileEntity.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
SignTileEntity.getPlayer() |
Modifier and Type | Method and Description |
---|---|
void |
BeehiveTileEntity.angerBees(PlayerEntity p_226963_1_,
BlockState p_226963_2_,
BeehiveTileEntity.State p_226963_3_) |
boolean |
EnderChestTileEntity.canBeUsed(PlayerEntity player) |
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_) |
void |
ChestTileEntity.closeInventory(PlayerEntity player) |
void |
BarrelTileEntity.closeInventory(PlayerEntity player) |
void |
ShulkerBoxTileEntity.closeInventory(PlayerEntity player) |
private CommandSource |
LecternTileEntity.createCommandSource(PlayerEntity player) |
Container |
BeaconTileEntity.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
Container |
LockableLootTileEntity.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
Container |
LockableTileEntity.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
Container |
LecternTileEntity.createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
private ItemStack |
LecternTileEntity.ensureResolved(ItemStack stack,
PlayerEntity player) |
boolean |
SignTileEntity.executeCommand(PlayerEntity playerIn) |
void |
LockableLootTileEntity.fillWithLoot(PlayerEntity player) |
void |
AbstractFurnaceTileEntity.func_213995_d(PlayerEntity player) |
boolean |
LockableLootTileEntity.isUsableByPlayer(PlayerEntity player) |
boolean |
BrewingStandTileEntity.isUsableByPlayer(PlayerEntity player) |
boolean |
AbstractFurnaceTileEntity.isUsableByPlayer(PlayerEntity player) |
void |
AbstractFurnaceTileEntity.onCrafting(PlayerEntity player) |
void |
ChestTileEntity.openInventory(PlayerEntity player) |
void |
BarrelTileEntity.openInventory(PlayerEntity player) |
void |
ShulkerBoxTileEntity.openInventory(PlayerEntity player) |
void |
LecternTileEntity.setBook(ItemStack stack,
PlayerEntity player) |
void |
SignTileEntity.setPlayer(PlayerEntity playerIn) |
private static void |
AbstractFurnaceTileEntity.spawnExpOrbs(PlayerEntity player,
int p_214003_1_,
float experience) |
boolean |
CommandBlockLogic.tryOpenEditCommandBlock(PlayerEntity playerIn) |
boolean |
StructureBlockTileEntity.usedBy(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
static DamageSource |
DamageSource.causePlayerDamage(PlayerEntity player) |
void |
FoodStats.tick(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PlayerEntity,Vec3d> |
Explosion.playerKnockbackMap |
Modifier and Type | Method and Description |
---|---|
default PlayerEntity |
IEntityReader.getClosestPlayer(double x,
double y,
double z) |
default PlayerEntity |
IEntityReader.getClosestPlayer(double x,
double y,
double z,
double distance,
boolean creativePlayers) |
default PlayerEntity |
IEntityReader.getClosestPlayer(double x,
double y,
double z,
double distance,
java.util.function.Predicate<Entity> predicate) |
default PlayerEntity |
IEntityReader.getClosestPlayer(Entity entityIn,
double distance) |
default PlayerEntity |
IEntityReader.getClosestPlayer(EntityPredicate predicate,
double x,
double y,
double z) |
default PlayerEntity |
IEntityReader.getClosestPlayer(EntityPredicate predicate,
LivingEntity target) |
default PlayerEntity |
IEntityReader.getClosestPlayer(EntityPredicate predicate,
LivingEntity target,
double p_217372_3_,
double p_217372_5_,
double p_217372_7_) |
default PlayerEntity |
IEntityReader.getPlayerByUuid(java.util.UUID uniqueIdIn) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<PlayerEntity,Vec3d> |
Explosion.getPlayerKnockbackMap() |
java.util.List<? extends PlayerEntity> |
IEntityReader.getPlayers() |
default java.util.List<PlayerEntity> |
IEntityReader.getTargettablePlayersWithinAABB(EntityPredicate predicate,
LivingEntity target,
AxisAlignedBB box) |
Modifier and Type | Method and Description |
---|---|
boolean |
World.canMineBlockBody(PlayerEntity player,
BlockPos pos) |
boolean |
World.extinguishFire(PlayerEntity player,
BlockPos pos,
Direction side) |
boolean |
World.isBlockModifiable(PlayerEntity player,
BlockPos pos) |
void |
IWorld.playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
abstract void |
World.playMovingSound(PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch) |
void |
IWorld.playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
void |
World.playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
abstract void |
World.playSound(PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
WorldGenRegion.getClosestPlayer(double x,
double y,
double z,
double distance,
java.util.function.Predicate<Entity> predicate) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PlayerEntity> |
WorldGenRegion.getPlayers() |
Modifier and Type | Method and Description |
---|---|
void |
WorldGenRegion.playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
WorldGenRegion.playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
Modifier and Type | Method and Description |
---|---|
void |
Raid.increaseLevel(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
boolean |
ServerWorld.canMineBlockBody(PlayerEntity player,
BlockPos pos) |
boolean |
ServerWorld.isBlockModifiable(PlayerEntity player,
BlockPos pos) |
void |
ServerWorld.playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
ServerWorld.playMovingSound(PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch) |
void |
ServerWorld.playSound(PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
Modifier and Type | Field and Description |
---|---|
PlayerEntity |
MapData.MapInfo.player |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PlayerEntity,MapData.MapInfo> |
MapData.playersHashMap |
Modifier and Type | Method and Description |
---|---|
MapData.MapInfo |
MapData.getMapInfo(PlayerEntity player) |
IPacket<?> |
MapData.getMapPacket(ItemStack mapStack,
IBlockReader worldIn,
PlayerEntity player) |
CompoundNBT |
SaveHandler.readPlayerData(PlayerEntity player) |
CompoundNBT |
IPlayerFileData.readPlayerData(PlayerEntity player) |
void |
MapData.updateVisiblePlayers(PlayerEntity player,
ItemStack mapStack) |
void |
SaveHandler.writePlayerData(PlayerEntity player) |
void |
IPlayerFileData.writePlayerData(PlayerEntity player) |
Constructor and Description |
---|
MapInfo(PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
static LootParameter<PlayerEntity> |
LootParameters.LAST_DAMAGE_PLAYER |
Modifier and Type | Method and Description |
---|---|
static float |
ForgeHooksClient.getOffsetFOV(PlayerEntity entity,
float fov) |
static void |
ForgeHooksClient.onInputUpdate(PlayerEntity player,
MovementInput movementInput) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
FOVUpdateEvent.entity |
private PlayerEntity |
RenderBlockOverlayEvent.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
FOVUpdateEvent.getEntity() |
PlayerEntity |
RenderBlockOverlayEvent.getPlayer()
The player which the overlay will apply to
|
Constructor and Description |
---|
FOVUpdateEvent(PlayerEntity entity,
float fov) |
InputUpdateEvent(PlayerEntity player,
MovementInput movementInput) |
PlayerSPPushOutOfBlocksEvent(PlayerEntity player) |
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) |
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal<PlayerEntity> |
ForgeHooks.craftingPlayer |
Modifier and Type | Method and Description |
---|---|
static PlayerEntity |
ForgeHooks.getCraftingPlayer() |
Modifier and Type | Method and Description |
---|---|
static 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) |
static float |
ForgeHooks.onAnvilRepair(PlayerEntity player,
ItemStack output,
ItemStack left,
ItemStack right) |
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,
Vec3d vec3d,
Hand hand) |
static ActionResultType |
ForgeHooks.onItemRightClick(PlayerEntity player,
Hand hand) |
static PlayerInteractEvent.LeftClickBlock |
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) |
static PlayerInteractEvent.RightClickBlock |
ForgeHooks.onRightClickBlock(PlayerEntity player,
Hand hand,
BlockPos pos,
Direction face) |
static void |
ForgeHooks.setCraftingPlayer(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
default 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 |
IForgeDimension.canMineBlock(PlayerEntity player,
BlockPos pos) |
default IForgeDimension.SleepResult |
IForgeDimension.canSleepAt(PlayerEntity player,
BlockPos pos)
Determines if the player can sleep in this world (or if the bed should explode for example).
|
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 type
|
default 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 type
|
default 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 block
|
default ItemStack |
IForgeBlockState.getPickBlock(RayTraceResult target,
IBlockReader world,
BlockPos pos,
PlayerEntity player)
Called when A user uses the creative pick block button on this block
|
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 |
IForgeItemStack.onBlockStartBreak(BlockPos pos,
PlayerEntity player)
Called before a block is broken.
|
default boolean |
IForgeItem.onBlockStartBreak(ItemStack itemstack,
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 world
|
default 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 world
|
default 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,
IFluidState fluid)
Called when a player removes a block.
|
default boolean |
IForgeBlockState.removedByPlayer(World world,
BlockPos pos,
PlayerEntity player,
boolean willHarvest,
IFluidState 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.
|
Modifier and Type | Class and Description |
---|---|
class |
FakePlayer |
Modifier and Type | Method and Description |
---|---|
boolean |
FakePlayer.canAttackPlayer(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
boolean |
ContainerTypeTest.TestContainer.canInteractWith(PlayerEntity playerIn) |
Modifier and Type | Field and Description |
---|---|
PlayerEntity |
TickEvent.PlayerTickEvent.player |
Modifier and Type | Method and Description |
---|---|
static boolean |
ForgeEventFactory.doPlayerHarvestCheck(PlayerEntity player,
BlockState state,
boolean success) |
static float |
ForgeEventFactory.fireBlockHarvesting(NonNullList<ItemStack> drops,
World world,
BlockPos pos,
BlockState state,
int fortune,
float dropChance,
boolean silkTouch,
PlayerEntity player) |
static void |
ForgeEventFactory.firePlayerLoadingEvent(PlayerEntity player,
java.io.File playerDirectory,
java.lang.String uuidString) |
static void |
ForgeEventFactory.firePlayerLoadingEvent(PlayerEntity player,
IPlayerFileData playerFileData,
java.lang.String uuidString) |
static void |
ForgeEventFactory.firePlayerSavingEvent(PlayerEntity player,
java.io.File playerDirectory,
java.lang.String uuidString) |
static boolean |
ForgeEventFactory.fireSleepingTimeCheck(PlayerEntity player,
java.util.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 java.lang.String |
ForgeEventFactory.getPlayerDisplayName(PlayerEntity player,
java.lang.String username)
Deprecated.
|
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,
java.util.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,
java.util.Optional<BlockPos> pos) |
static boolean |
ForgeEventFactory.onPlayerSpawnSet(PlayerEntity player,
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 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) |
Constructor and Description |
---|
PlayerTickEvent(TickEvent.Phase phase,
PlayerEntity player) |
Constructor and Description |
---|
PlayerBrewedPotionEvent(PlayerEntity player,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
ItemTossEvent.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
ItemTossEvent.getPlayer()
The player tossing the item.
|
Constructor and Description |
---|
ItemTossEvent(ItemEntity entityItem,
PlayerEntity player)
Creates a new event for EntityItems tossed by a player.
|
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
LivingExperienceDropEvent.attackingPlayer |
private PlayerEntity |
BabyEntitySpawnEvent.causedByPlayer |
private PlayerEntity |
AnimalTameEvent.tamer |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
LivingExperienceDropEvent.getAttackingPlayer() |
PlayerEntity |
BabyEntitySpawnEvent.getCausedByPlayer() |
PlayerEntity |
AnimalTameEvent.getTamer() |
Constructor and Description |
---|
AnimalTameEvent(AnimalEntity animal,
PlayerEntity tamer) |
LivingExperienceDropEvent(LivingEntity entity,
PlayerEntity attackingPlayer,
int originalExperience) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
PlayerEvent.entityPlayer |
private PlayerEntity |
PlayerEvent.Clone.original |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
PlayerEvent.Clone.getOriginal()
The old EntityPlayer that this new entity is a clone of.
|
PlayerEntity |
PlayerEvent.getPlayer() |
PlayerEntity |
ItemTooltipEvent.getPlayer()
This event is fired with a null player during startup when populating search trees for tooltips.
|
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
VillageSiegeEvent.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
VillageSiegeEvent.getPlayer() |
Constructor and Description |
---|
VillageSiegeEvent(VillageSiege siege,
World world,
PlayerEntity player,
Vec3d attemptedSpawnPos) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
BlockEvent.HarvestDropsEvent.harvester |
private PlayerEntity |
BlockEvent.BreakEvent.player
Reference to the Player who broke the block.
|
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
BlockEvent.HarvestDropsEvent.getHarvester() |
PlayerEntity |
BlockEvent.BreakEvent.getPlayer() |
Constructor and Description |
---|
BreakEvent(World world,
BlockPos pos,
BlockState state,
PlayerEntity player) |
HarvestDropsEvent(World world,
BlockPos pos,
BlockState state,
int fortuneLevel,
float dropChance,
NonNullList<ItemStack> drops,
PlayerEntity harvester,
boolean isSilkTouching) |
Modifier and Type | Method and Description |
---|---|
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 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 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 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.
|
static FluidActionResult |
FluidUtil.tryPlaceFluid(PlayerEntity player,
World world,
Hand hand,
BlockPos pos,
ItemStack container,
FluidStack resource)
ItemStack version of
#tryPlaceFluid(PlayerEntity, World, BlockPos, IFluidHandler, FluidStack) . |
void |
FluidAttributes.vaporize(PlayerEntity player,
World worldIn,
BlockPos pos,
FluidStack fluidStack)
Called instead of placing the fluid block if
Dimension.doesWaterVaporize() and #doesVaporize(FluidStack) are true. |
Modifier and Type | Method and Description |
---|---|
static void |
BasicEventHooks.firePlayerChangedDimensionEvent(PlayerEntity player,
DimensionType fromDim,
DimensionType 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) |
Modifier and Type | Method and Description |
---|---|
boolean |
SlotItemHandler.canTakeStack(PlayerEntity playerIn) |
static void |
ItemHandlerHelper.giveItemToPlayer(PlayerEntity player,
ItemStack stack)
giveItemToPlayer without preferred slot
|
static void |
ItemHandlerHelper.giveItemToPlayer(PlayerEntity player,
ItemStack stack,
int preferredSlot)
Inserts the given itemstack into the players inventory.
|
Modifier and Type | Method and Description |
---|---|
void |
RecipeWrapper.closeInventory(PlayerEntity player) |
boolean |
RecipeWrapper.isUsableByPlayer(PlayerEntity player) |
void |
RecipeWrapper.openInventory(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
static boolean |
PermissionAPI.hasPermission(PlayerEntity player,
java.lang.String node)
Shortcut method using EntityPlayer and creating PlayerContext
|
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
PlayerContext.player |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
WorldContext.getPlayer() |
PlayerEntity |
IContext.getPlayer() |
PlayerEntity |
Context.getPlayer() |
PlayerEntity |
PlayerContext.getPlayer() |
Constructor and Description |
---|
AreaContext(PlayerEntity ep,
AxisAlignedBB aabb) |
BlockPosContext(PlayerEntity ep,
BlockPos pos,
BlockState state,
Direction f) |
BlockPosContext(PlayerEntity ep,
ChunkPos pos) |
PlayerContext(PlayerEntity ep) |
TargetContext(PlayerEntity ep,
Entity entity) |