package net.minecraft.client.tutorial; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.ClientInput; import net.minecraft.core.BlockPos; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.phys.HitResult; @Environment(EnvType.CLIENT) public interface TutorialStepInstance { default void clear() { } default void tick() { } default void onInput(ClientInput input) { } default void onMouse(double velocityX, double velocityY) { } /** * Handles blocks and entities hovering */ default void onLookAt(ClientLevel level, HitResult result) { } /** * Called when a player hits block to destroy it. */ default void onDestroyBlock(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) { } /** * Called when the player opens his inventory */ default void onOpenInventory() { } /** * Called when the player pick up an ItemStack */ default void onGetItem(ItemStack stack) { } }