Class LytItemGrid

All Implemented Interfaces:
LytBlockContainer, LytErrorSink, Styleable

public class LytItemGrid extends LytBox
Shows items in a grid-like fashion, i.e. to show-case variants.
  • Constructor Details

    • LytItemGrid

      public LytItemGrid()
  • Method Details

    • computeBoxLayout

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

      public void addItem(net.minecraft.world.item.Item item)