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, survivalOrAdventureprivate boolean displayedIntro
private boolean demoTimeExpired
private int demoEndedReminder
private int gameModeTicks
public DemoPlayerInteractionManager(World worldIn)
public void updateBlockRemoving()
updateBlockRemoving in class PlayerInteractionManagerprivate void sendDemoReminder()
public 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