Class LytSlotGrid

All Implemented Interfaces:
LytBlockContainer, LytErrorSink, Styleable

public class LytSlotGrid extends LytBox
  • Constructor Details

    • LytSlotGrid

      public LytSlotGrid(int width, int height)
  • Method Details

    • columnFromStack

      public static LytSlotGrid columnFromStack(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty)
    • rowFromStacks

      public static LytSlotGrid rowFromStacks(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty)
    • column

      public static LytSlotGrid column(List<net.minecraft.world.item.crafting.Ingredient> ingredients, boolean skipEmpty)
    • row

      public static LytSlotGrid row(List<net.minecraft.world.item.crafting.Ingredient> ingredients, boolean skipEmpty)
    • isRenderEmptySlots

      public boolean isRenderEmptySlots()
    • setRenderEmptySlots

      public void setRenderEmptySlots(boolean renderEmptySlots)
    • computeBoxLayout

      protected LytRect computeBoxLayout(LayoutContext context, int x, int y, int availableWidth)
      Specified by:
      computeBoxLayout in class LytBox
    • setItem

      public void setItem(int x, int y, net.minecraft.world.item.ItemStack item)
    • setIngredient

      public void setIngredient(int x, int y, net.minecraft.world.item.crafting.Ingredient ingredient)
    • render

      public void render(RenderContext context)
      Overrides:
      render in class LytBox