Class ChestMenuData

java.lang.Object
dev.latvian.mods.kubejs.gui.chest.ChestMenuData

public class ChestMenuData extends Object
  • 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

      public final ChestMenuSlot[] slots
    • anyClicked

      public ChestMenuClickEvent.Callback anyClicked
    • inventoryClicked

      public ChestMenuInventoryClickEvent.Callback inventoryClicked
    • playerSlots

      public boolean playerSlots
    • closed

      public Runnable 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

      public ChestMenuSlot getSlot(int x, int y)
    • slot

      public void slot(int x, int y, Consumer<ChestMenuSlot> slot)
    • slot

      public void slot(int x0, int y0, int x1, int y1, Consumer<ChestMenuSlot> 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()