public class DemoPlayerInteractionManager extends PlayerInteractionManager
player, world| Constructor and Description |
|---|
DemoPlayerInteractionManager(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
startDestroyBlock(BlockPos pos,
EnumFacing side) |
void |
stopDestroyBlock(BlockPos pos) |
void |
tick() |
boolean |
tryHarvestBlock(BlockPos pos) |
abortDestroyBlock, getGameType, initializeGameType, isCreative, setGameType, setWorld, survivalOrAdventurepublic DemoPlayerInteractionManager(World worldIn)
public void tick()
tick in class PlayerInteractionManagerpublic void startDestroyBlock(BlockPos pos, EnumFacing side)
startDestroyBlock in class PlayerInteractionManagerpublic void stopDestroyBlock(BlockPos pos)
stopDestroyBlock in class PlayerInteractionManagerpublic boolean tryHarvestBlock(BlockPos pos)
tryHarvestBlock in class PlayerInteractionManagerpublic EnumActionResult processRightClick(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand)
processRightClick in class PlayerInteractionManagerpublic EnumActionResult processRightClickBlock(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ)
processRightClickBlock in class PlayerInteractionManager