TutorialStepInstance .java

net.minecraft.client.tutorial.TutorialStepInstance (interface): members: onOpenInventory, onDestroyBlock, onLookAt, onInput, onMouse, onGetItem, clear.

net.minecraft.client.tutorialinterface38 linesclient926 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

TutorialStepInstance.java38 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.tutorial;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.multiplayer.ClientLevel;
6
import net.minecraft.client.player.ClientInput;
7
import net.minecraft.core.BlockPos;
8
import net.minecraft.world.item.ItemStack;
9
import net.minecraft.world.level.block.state.BlockState;
10
import net.minecraft.world.phys.HitResult;
11
12
@Environment(EnvType.CLIENT)
13
public interface TutorialStepInstance {
14
	default void clear() {
15
	}
16
17
	default void tick() {
18
	}
19
20
	default void onInput(final ClientInput input) {
21
	}
22
23
	default void onMouse(final double xd, final double yd) {
24
	}
25
26
	default void onLookAt(final ClientLevel level, final HitResult hit) {
27
	}
28
29
	default void onDestroyBlock(final ClientLevel level, final BlockPos pos, final BlockState state, final float percent) {
30
	}
31
32
	default void onOpenInventory() {
33
	}
34
35
	default void onGetItem(final ItemStack itemStack) {
36
	}
37
}
38

Decompiled Minecraft 26.3 source of TutorialStepInstance (net/minecraft/client/tutorial/TutorialStepInstance.java) with Mojang official mappings, stored verbatim on the site.