public class DemoWorldManager extends PlayerInteractionManager
theWorld, thisPlayerMP
Constructor and Description |
---|
DemoWorldManager(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 DemoWorldManager(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, @Nullable ItemStack stack, EnumHand hand, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ)
processRightClickBlock
in class PlayerInteractionManager