Class MenuBuilder<T extends MenuItem>

java.lang.Object
com.guflimc.brick.gui.api.builder.MenuBuilder<T>
Direct Known Subclasses:
SpigotMenuBuilder

public class MenuBuilder<T extends MenuItem> extends Object
  • Field Details

  • Constructor Details

    • MenuBuilder

      public MenuBuilder(Class<T> type)
  • Method Details

    • withItem

      public final MenuBuilder<T> withItem(T item)
    • withItems

      public final MenuBuilder<T> withItems(T... items)
    • withItems

      public final MenuBuilder<T> withItems(Iterable<T> items)
    • withHotbarItem

      public final MenuBuilder<T> withHotbarItem(int index, T item)
    • compile

      protected final T[] compile()