public class Tutorial
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ITextComponent |
createKeybindComponent(java.lang.String keybind) |
GameType |
getGameType() |
Minecraft |
getMinecraft() |
void |
handleMouse(MouseHelper p_193299_1_) |
void |
handleMovement(MovementInput p_193293_1_) |
void |
handleSetSlot(ItemStack stack)
Called when the player pick up an ItemStack
|
void |
onHitBlock(WorldClient worldIn,
BlockPos pos,
IBlockState state,
float diggingStage) |
void |
onMouseHover(WorldClient worldIn,
RayTraceResult result) |
void |
openInventory()
Called when the player opens his inventory
|
void |
reload()
Reloads the tutorial step from the game settings
|
void |
setStep(TutorialSteps step)
Sets a new step to the tutorial
|
void |
stop() |
void |
update() |
public Tutorial(Minecraft minecraft)
public void handleMovement(MovementInput p_193293_1_)
public void handleMouse(MouseHelper p_193299_1_)
public void onMouseHover(WorldClient worldIn, RayTraceResult result)
public void onHitBlock(WorldClient worldIn, BlockPos pos, IBlockState state, float diggingStage)
public void openInventory()
public void handleSetSlot(ItemStack stack)
stack
- The ItemStackpublic void stop()
public void reload()
public void update()
public void setStep(TutorialSteps step)
public Minecraft getMinecraft()
public GameType getGameType()
public static ITextComponent createKeybindComponent(java.lang.String keybind)