public class DemoPlayerInteractionManager extends PlayerInteractionManager
Modifier and Type | Field and Description |
---|---|
private int |
demoEndedReminder |
private boolean |
demoTimeExpired |
private boolean |
displayedIntro |
private int |
gameModeTicks |
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) |
private void |
sendDemoReminder() |
boolean |
tryHarvestBlock(BlockPos pos) |
void |
updateBlockRemoving() |
cancelDestroyingBlock, getBlockReachDistance, getGameType, initializeGameType, isCreative, setBlockReachDistance, setGameType, setWorld, survivalOrAdventure
private boolean displayedIntro
private boolean demoTimeExpired
private int demoEndedReminder
private int gameModeTicks
public DemoPlayerInteractionManager(World worldIn)
public void updateBlockRemoving()
updateBlockRemoving
in class PlayerInteractionManager
private void sendDemoReminder()
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