public class DemoPlayerInteractionManager extends PlayerInteractionManager
player, world
Constructor and Description |
---|
DemoPlayerInteractionManager(World worldIn) |
Modifier and Type | Method and Description |
---|---|
void |
blockRemoving(BlockPos pos) |
void |
onBlockClicked(BlockPos pos,
EnumFacing side) |
EnumActionResult |
processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
boolean |
tryHarvestBlock(BlockPos pos) |
void |
updateBlockRemoving() |
cancelDestroyingBlock, getBlockReachDistance, getGameType, initializeGameType, isCreative, setBlockReachDistance, setGameType, setWorld, survivalOrAdventure
public DemoPlayerInteractionManager(World worldIn)
public void updateBlockRemoving()
updateBlockRemoving
in class PlayerInteractionManager
public void onBlockClicked(BlockPos pos, EnumFacing side)
onBlockClicked
in class PlayerInteractionManager
public void blockRemoving(BlockPos pos)
blockRemoving
in class PlayerInteractionManager
public boolean tryHarvestBlock(BlockPos pos)
tryHarvestBlock
in class PlayerInteractionManager
public EnumActionResult processRightClick(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand)
processRightClick
in class PlayerInteractionManager
public EnumActionResult processRightClickBlock(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ)
processRightClickBlock
in class PlayerInteractionManager