Class LytSlotGrid

All Implemented Interfaces:
LytBlockContainer, LytErrorSink, Styleable

public class LytSlotGrid extends LytBox
  • Constructor Details

    • LytSlotGrid

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

    • 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
    • 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