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, wait
handleMouse, handleMovement, onMouseHover, openInventory
public PunchTreeStep(Tutorial tutorial)
public void update()
update
in interface ITutorialStep
public void onStop()
onStop
in interface ITutorialStep
public void onHitBlock(WorldClient worldIn, BlockPos pos, IBlockState state, float diggingStage)
onHitBlock
in interface ITutorialStep
worldIn
- 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 ITutorialStep
stack
- The ItemStack