public class DemoWorldManager extends PlayerInteractionManager
player, world| Constructor and Description |
|---|
DemoWorldManager(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockRemoving(BlockPos pos) |
void |
onBlockClicked(BlockPos pos,
EnumFacing side)
If not creative, it calls sendBlockBreakProgress until the block is broken first.
|
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)
Attempts to harvest a block
|
void |
updateBlockRemoving() |
cancelDestroyingBlock, getBlockReachDistance, getGameType, initializeGameType, isCreative, setBlockReachDistance, setGameType, setWorld, survivalOrAdventurepublic DemoWorldManager(World worldIn)
public void updateBlockRemoving()
updateBlockRemoving in class PlayerInteractionManagerpublic void onBlockClicked(BlockPos pos, EnumFacing side)
onBlockClicked in class PlayerInteractionManagerpublic void blockRemoving(BlockPos pos)
blockRemoving 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