Modifier and Type | Method and Description |
---|---|
IBlockState |
Block.getStateForPlacement(World world,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer,
EnumHand hand)
Gets the
IBlockState to place |
boolean |
BlockCommandBlock.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockFence.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockChest.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockTNT.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockDaylightDetector.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockDispenser.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockCake.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockDragonEgg.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockWorkbench.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockRedstoneOre.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockFenceGate.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockNote.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockShulkerBox.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockAnvil.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockHopper.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockJukebox.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockLever.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockFlowerPot.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockRedstoneRepeater.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockRedstoneComparator.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockDoor.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockEnderChest.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
Block.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockButton.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockSign.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockCauldron.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockBeacon.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockFurnace.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockBrewingStand.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockBed.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockStairs.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockStructure.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockTrapDoor.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockPistonMoving.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
BlockEnchantmentTable.onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
EntityPlayerSP.activeHand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
EntityPlayerSP.getActiveHand() |
Modifier and Type | Method and Description |
---|---|
void |
EntityPlayerSP.openBook(ItemStack stack,
EnumHand hand) |
void |
EntityPlayerSP.setActiveHand(EnumHand hand) |
void |
EntityPlayerSP.swingArm(EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
PlayerControllerMP.interactWithEntity(EntityPlayer player,
Entity target,
EnumHand hand) |
EnumActionResult |
PlayerControllerMP.interactWithEntity(EntityPlayer player,
Entity target,
RayTraceResult ray,
EnumHand hand) |
EnumActionResult |
PlayerControllerMP.processRightClick(EntityPlayer player,
World worldIn,
EnumHand hand) |
EnumActionResult |
PlayerControllerMP.processRightClickBlock(EntityPlayerSP player,
WorldClient worldIn,
BlockPos pos,
EnumFacing direction,
Vec3d vec,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
void |
ItemRenderer.renderItemInFirstPerson(AbstractClientPlayer player,
float p_187457_2_,
float p_187457_3_,
EnumHand hand,
float p_187457_5_,
ItemStack stack,
float p_187457_7_) |
void |
ItemRenderer.resetEquippedProgress(EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
EnumHand |
EntityLivingBase.swingingHand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
EntityLivingBase.getActiveHand() |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
Entity.applyPlayerInteraction(EntityPlayer player,
Vec3d vec,
EnumHand hand) |
ItemStack |
EntityLivingBase.getHeldItem(EnumHand hand) |
boolean |
Entity.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityLeashKnot.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityLiving.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityAgeable.processInteract(EntityPlayer player,
EnumHand hand) |
protected boolean |
EntityLiving.processInteract(EntityPlayer player,
EnumHand hand) |
void |
EntityLivingBase.setActiveHand(EnumHand hand) |
void |
EntityLivingBase.setHeldItem(EnumHand hand,
ItemStack stack) |
void |
EntityLivingBase.swingArm(EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
EntityArmorStand.applyPlayerInteraction(EntityPlayer player,
Vec3d vec,
EnumHand hand) |
boolean |
EntityMinecartHopper.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMinecartCommandBlock.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMinecartEmpty.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityBoat.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityItemFrame.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMinecartFurnace.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMinecartContainer.processInitialInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMinecart.processInitialInteract(EntityPlayer player,
EnumHand hand) |
private void |
EntityArmorStand.swapItem(EntityPlayer player,
EntityEquipmentSlot p_184795_2_,
ItemStack p_184795_3_,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntityCreeper.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityZombieVillager.processInteract(EntityPlayer player,
EnumHand hand) |
protected boolean |
EntitySnowman.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityPigZombie.processInteract(EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityOcelot.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityPig.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityMooshroom.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityZombieHorse.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityCow.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
AbstractChestHorse.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityVillager.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityWolf.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntitySheep.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityHorse.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntitySkeletonHorse.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityAnimal.processInteract(EntityPlayer player,
EnumHand hand) |
boolean |
EntityParrot.processInteract(EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
EntityPlayer.interactOn(Entity p_190775_1_,
EnumHand p_190775_2_) |
void |
EntityPlayer.openBook(ItemStack stack,
EnumHand hand) |
void |
EntityPlayerMP.openBook(ItemStack stack,
EnumHand hand) |
void |
EntityPlayerMP.swingArm(EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ItemDye.applyBonemeal(ItemStack stack,
World worldIn,
BlockPos target,
EntityPlayer player,
EnumHand hand) |
boolean |
ItemStack.interactWithEntity(EntityPlayer playerIn,
EntityLivingBase entityIn,
EnumHand hand) |
boolean |
Item.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemDye.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemSaddle.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemNameTag.itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
ItemShears.itemInteractionForEntity(ItemStack itemstack,
EntityPlayer player,
EntityLivingBase entity,
EnumHand hand) |
ActionResult<ItemStack> |
ItemGlassBottle.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemPotion.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemEnderPearl.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemWrittenBook.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemArmor.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemExpBottle.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemSplashPotion.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemCarrotOnAStick.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemBoat.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemSnowball.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemEgg.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
Item.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemWritableBook.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemBucketMilk.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemFood.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemEmptyMap.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemEnderEye.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemKnowledgeBook.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemLilyPad.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemBucket.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemElytra.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemFishingRod.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemBow.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemLingeringPotion.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemShield.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemFirework.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ActionResult<ItemStack> |
ItemMonsterPlacer.onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
EnumActionResult |
ItemSnow.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSlab.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemBanner.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemRedstone.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSkull.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSeedFood.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemStack.onItemUse(EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing side,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSpade.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemBlock.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
Item.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemHoe.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemDye.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemMinecart.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemDoor.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemEnderEye.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemBed.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemFlintAndSteel.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemBlockSpecial.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemFireball.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSign.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemRecord.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemArmorStand.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemLead.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemSeeds.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemFirework.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemHangingEntity.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemEndCrystal.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
ItemMonsterPlacer.onItemUse(EntityPlayer player,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
Item.onItemUseFirst(EntityPlayer player,
World world,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ,
EnumHand hand)
This is called when the item is used, before the block is activated.
|
EnumActionResult |
ItemStack.onItemUseFirst(EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumHand hand,
EnumFacing side,
float hitX,
float hitY,
float hitZ) |
ActionResult<ItemStack> |
ItemStack.useItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
CPacketPlayerTryUseItemOnBlock.hand |
private EnumHand |
CPacketAnimation.hand |
private EnumHand |
CPacketPlayerTryUseItem.hand |
private EnumHand |
CPacketUseEntity.hand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
CPacketPlayerTryUseItemOnBlock.getHand() |
EnumHand |
CPacketAnimation.getHand() |
EnumHand |
CPacketPlayerTryUseItem.getHand() |
EnumHand |
CPacketUseEntity.getHand() |
Constructor and Description |
---|
CPacketAnimation(EnumHand handIn) |
CPacketPlayerTryUseItem(EnumHand handIn) |
CPacketPlayerTryUseItemOnBlock(BlockPos posIn,
EnumFacing placedBlockDirectionIn,
EnumHand handIn,
float facingXIn,
float facingYIn,
float facingZIn) |
CPacketUseEntity(Entity entityIn,
EnumHand handIn) |
CPacketUseEntity(Entity entityIn,
EnumHand handIn,
Vec3d hitVecIn) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
DemoPlayerInteractionManager.processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
PlayerInteractionManager.processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
DemoPlayerInteractionManager.processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
EnumActionResult |
PlayerInteractionManager.processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
Modifier and Type | Method and Description |
---|---|
static EnumHand |
EnumHand.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumHand[] |
EnumHand.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ForgeHooksClient.renderSpecificFirstPersonHand(EnumHand hand,
float partialTicks,
float interpPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
RenderSpecificHandEvent.hand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
RenderSpecificHandEvent.getHand() |
Constructor and Description |
---|
RenderSpecificHandEvent(EnumHand hand,
float partialTicks,
float interpolatedPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static void |
ForgeHooks.onEmptyClick(EntityPlayer player,
EnumHand hand) |
static EnumActionResult |
ForgeHooks.onInteractEntity(EntityPlayer player,
Entity entity,
EnumHand hand) |
static EnumActionResult |
ForgeHooks.onInteractEntityAt(EntityPlayer player,
Entity entity,
RayTraceResult ray,
EnumHand hand) |
static EnumActionResult |
ForgeHooks.onInteractEntityAt(EntityPlayer player,
Entity entity,
Vec3d vec3d,
EnumHand hand) |
static EnumActionResult |
ForgeHooks.onItemRightClick(EntityPlayer player,
EnumHand hand) |
static EnumActionResult |
ForgeHooks.onPlaceItemIntoWorld(ItemStack itemstack,
EntityPlayer player,
World world,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ,
EnumHand hand) |
static PlayerInteractEvent.RightClickBlock |
ForgeHooks.onRightClickBlock(EntityPlayer player,
EnumHand hand,
BlockPos pos,
EnumFacing face,
Vec3d hitVec) |
Modifier and Type | Method and Description |
---|---|
static int |
ForgeEventFactory.onApplyBonemeal(EntityPlayer player,
World world,
BlockPos pos,
IBlockState state,
ItemStack stack,
EnumHand hand) |
static ActionResult<ItemStack> |
ForgeEventFactory.onArrowNock(ItemStack item,
World world,
EntityPlayer player,
EnumHand hand,
boolean hasAmmo) |
static BlockEvent.PlaceEvent |
ForgeEventFactory.onPlayerBlockPlace(EntityPlayer player,
BlockSnapshot blockSnapshot,
EnumFacing direction,
EnumHand hand) |
static void |
ForgeEventFactory.onPlayerDestroyItem(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
static BlockEvent.MultiPlaceEvent |
ForgeEventFactory.onPlayerMultiBlockPlace(EntityPlayer player,
java.util.List<BlockSnapshot> blockSnapshots,
EnumFacing direction,
EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
MinecartInteractEvent.hand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
MinecartInteractEvent.getHand() |
Constructor and Description |
---|
MinecartInteractEvent(EntityMinecart minecart,
EntityPlayer player,
EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
ArrowNockEvent.hand |
private EnumHand |
PlayerInteractEvent.hand |
private EnumHand |
BonemealEvent.hand |
private EnumHand |
PlayerDestroyItemEvent.hand |
Modifier and Type | Method and Description |
---|---|
EnumHand |
ArrowNockEvent.getHand() |
EnumHand |
PlayerInteractEvent.getHand() |
EnumHand |
BonemealEvent.getHand() |
EnumHand |
PlayerDestroyItemEvent.getHand() |
Constructor and Description |
---|
ArrowNockEvent(EntityPlayer player,
ItemStack item,
EnumHand hand,
World world,
boolean hasAmmo) |
BonemealEvent(EntityPlayer player,
World world,
BlockPos pos,
IBlockState block,
EnumHand hand,
ItemStack stack) |
EntityInteract(EntityPlayer player,
EnumHand hand,
Entity target) |
EntityInteractSpecific(EntityPlayer player,
EnumHand hand,
Entity target,
Vec3d localPos) |
PlayerDestroyItemEvent(EntityPlayer player,
ItemStack original,
EnumHand hand) |
PlayerInteractEvent(EntityPlayer player,
EnumHand hand,
BlockPos pos,
EnumFacing face) |
RightClickBlock(EntityPlayer player,
EnumHand hand,
BlockPos pos,
EnumFacing face,
Vec3d hitVec) |
RightClickEmpty(EntityPlayer player,
EnumHand hand) |
RightClickItem(EntityPlayer player,
EnumHand hand) |
Modifier and Type | Field and Description |
---|---|
private EnumHand |
BlockEvent.PlaceEvent.hand
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EnumHand |
BlockEvent.PlaceEvent.getHand()
Deprecated.
|
Constructor and Description |
---|
MultiPlaceEvent(java.util.List<BlockSnapshot> blockSnapshots,
IBlockState placedAgainst,
EntityPlayer player,
EnumHand hand) |
PlaceEvent(BlockSnapshot blockSnapshot,
IBlockState placedAgainst,
EntityPlayer player,
EnumHand hand)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
FluidUtil.interactWithFluidHandler(EntityPlayer player,
EnumHand 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(EntityPlayer player,
EnumHand hand,
World world,
BlockPos pos,
EnumFacing side)
Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.
|
ActionResult<ItemStack> |
UniversalBucket.onItemRightClick(World world,
EntityPlayer player,
EnumHand hand) |