@Environment(value=CLIENT) public class TutorialManager extends Object
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private TutorialStepHandler |
currentHandler |
Constructor and Description |
---|
TutorialManager(MinecraftClient minecraftClient) |
Modifier and Type | Method and Description |
---|---|
void |
createHandler() |
void |
destroyHandler() |
MinecraftClient |
getClient() |
GameMode |
getGameMode() |
static Text |
getKeybindName(String string) |
void |
onBlockAttacked(ClientWorld world,
BlockPos pos,
BlockState state,
float float2) |
void |
onInventoryOpened() |
void |
onMovement(Input input) |
void |
onSlotUpdate(ItemStack itemStack) |
void |
onUpdateMouse(double deltaX,
double deltaY) |
void |
setStep(TutorialStep tutorialStep) |
void |
tick() |
void |
tick(ClientWorld world,
HitResult hitResult) |
private final MinecraftClient client
@Nullable private TutorialStepHandler currentHandler
public TutorialManager(MinecraftClient minecraftClient)
public void onMovement(Input input)
public void onUpdateMouse(double deltaX, double deltaY)
public void tick(@Nullable ClientWorld world, @Nullable HitResult hitResult)
public void onBlockAttacked(ClientWorld world, BlockPos pos, BlockState state, float float2)
public void onInventoryOpened()
public void onSlotUpdate(ItemStack itemStack)
public void destroyHandler()
public void createHandler()
public void tick()
public void setStep(TutorialStep tutorialStep)
public MinecraftClient getClient()
public GameMode getGameMode()