public class PunchTreeStep extends java.lang.Object implements ITutorialStep
| Constructor and Description |
|---|
PunchTreeStep(Tutorial tutorial) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleSetSlot(ItemStack stack)
Called when the player pick up an ItemStack
|
void |
onHitBlock(WorldClient worldIn,
BlockPos pos,
IBlockState state,
float diggingStage)
Called when a player hits block to destroy it.
|
void |
onStop() |
void |
update() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleMouse, handleMovement, onMouseHover, openInventorypublic PunchTreeStep(Tutorial tutorial)
public void update()
update in interface ITutorialSteppublic void onStop()
onStop in interface ITutorialSteppublic void onHitBlock(WorldClient worldIn, BlockPos pos, IBlockState state, float diggingStage)
onHitBlock in interface ITutorialStepworldIn - The world the player is inpos - The block positionstate - The block statediggingStage - The amount of digging, 1.0 means the block is totally digged, -1.0 means the player stoppedpublic void handleSetSlot(ItemStack stack)
handleSetSlot in interface ITutorialStepstack - The ItemStack