Class ChestMenuData
java.lang.Object
dev.latvian.mods.kubejs.gui.chest.ChestMenuData
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.Containernet.minecraft.world.item.ItemStackfinal net.minecraft.server.level.ServerPlayerbooleanfinal intfinal ChestMenuSlot[]net.minecraft.network.chat.Component -
Constructor Summary
ConstructorsConstructorDescriptionChestMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, int rows) -
Method Summary
Modifier and TypeMethodDescriptionvoidbutton(int x, int y, net.minecraft.world.item.ItemStack stack, net.minecraft.network.chat.Component displayName, ChestMenuClickEvent.Callback leftClicked) getSlot(int x, int y) voidhandleClick(int index, net.minecraft.world.inventory.ClickType type, int button) voidslot(int x0, int y0, int x1, int y1, Consumer<ChestMenuSlot> slot) voidslot(int x, int y, Consumer<ChestMenuSlot> slot) voidsync()
-
Field Details
-
player
public final net.minecraft.server.level.ServerPlayer player -
title
public net.minecraft.network.chat.Component title -
rows
public final int rows -
slots
-
anyClicked
-
inventoryClicked
-
playerSlots
public boolean playerSlots -
closed
-
mouseItem
public net.minecraft.world.item.ItemStack mouseItem -
capturedInventory
public net.minecraft.world.Container capturedInventory
-
-
Constructor Details
-
ChestMenuData
public ChestMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, int rows)
-
-
Method Details
-
getSlot
-
slot
-
slot
-
button
public void button(int x, int y, net.minecraft.world.item.ItemStack stack, net.minecraft.network.chat.Component displayName, ChestMenuClickEvent.Callback leftClicked) -
handleClick
public void handleClick(int index, net.minecraft.world.inventory.ClickType type, int button) -
sync
public void sync()
-