Interface CreativeModeTabEvent.Registrar

Enclosing class:
CreativeModeTabEvent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CreativeModeTabEvent.Registrar
A registrar which is capable of registering new tabs.
  • Method Details

    • registerCreativeModeTab

      @NotNull @NotNull CreativeModeTab registerCreativeModeTab(@NotNull @NotNull Consumer<CreativeModeTab.Builder> configurator, @NotNull @NotNull ResourceLocation name, @NotNull @NotNull List<Object> afters, @NotNull @NotNull List<Object> befores)
      Register a new tab.
      Parameters:
      configurator - The tab configurator to register
      name - The name of the tab.
      afters - A list of tab names (String, ResourceLocations) or tabs that need to appear before this tab in the creative mode menu.
      befores - A list of tab names (String, ResourceLocations) or tabs that need to appear after this tab in the creative mode menu.
      Returns:
      The configured tab.