ItemSlotMouseAction .java

net.minecraft.client.gui.ItemSlotMouseAction (interface): members: onStopHovering, onSlotClicked, onMouseScrolled, matches. imports: ContainerInput, Slot.

net.minecraft.client.guiinterface19 linesclient586 B

API Surface (0)

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

Code Graph: Dependencies (3)

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

Full Source

ItemSlotMouseAction.java19 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.world.inventory.ContainerInput;
6
import net.minecraft.world.inventory.Slot;
7
import net.minecraft.world.item.ItemStack;
8
9
@Environment(EnvType.CLIENT)
10
public interface ItemSlotMouseAction {
11
	boolean matches(final Slot slot);
12
13
	boolean onMouseScrolled(final double scrollX, final double scrollY, final int slotIndex, final ItemStack itemStack);
14
15
	void onStopHovering(final Slot hoveredSlot);
16
17
	void onSlotClicked(final Slot slot, ContainerInput containerInput);
18
}
19

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