Class CreativeTabRegistry

java.lang.Object
dev.architectury.registry.CreativeTabRegistry

public final class CreativeTabRegistry extends Object
Registry for creating or modifying creative tabs.
See Also:
  • Method Details

    • create

      public static CreativeTabRegistry.TabSupplier create(net.minecraft.resources.ResourceLocation name, Supplier<net.minecraft.world.item.ItemStack> icon)
      Creates a deferred creative tab, with a custom icon.

      On fabric, the supplier is always resolvable. On forge, the supplier is only resolvable after the registration of the creative tab.

      Parameters:
      name - the name of the creative tab
      icon - the icon of the creative tab
      Returns:
      the creative tab supplier
    • create

      @Experimental public static CreativeTabRegistry.TabSupplier create(net.minecraft.resources.ResourceLocation name, Consumer<net.minecraft.world.item.CreativeModeTab.Builder> callback)
      Creates a deferred creative tab, with a configurable builder callback.

      On fabric, the supplier is always resolvable. On forge, the supplier is only resolvable after the registration of the creative tab.

      Parameters:
      name - the name of the creative tab
      callback - the builder callback
      Returns:
      the creative tab supplier
    • of

      @Experimental public static CreativeTabRegistry.TabSupplier of(net.minecraft.world.item.CreativeModeTab tab)
      Returns a tab supplier for a tab.
      Parameters:
      tab - the tab
      Returns:
      the tab supplier
    • defer

      @Experimental public static CreativeTabRegistry.TabSupplier defer(net.minecraft.resources.ResourceLocation name)
      Returns a tab supplier for a tab to be created later.
      Parameters:
      name - the name of the creative tab
      Returns:
      the tab supplier
    • modify

      @Experimental public static void modify(net.minecraft.world.item.CreativeModeTab tab, CreativeTabRegistry.ModifyTabCallback filler)
    • modify

      @Experimental public static void modify(CreativeTabRegistry.TabSupplier tab, CreativeTabRegistry.ModifyTabCallback filler)
    • append

      @Experimental public static void append(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.world.level.ItemLike... items)
    • append

      @Experimental public static <I extends net.minecraft.world.level.ItemLike, T extends Supplier<I>> void append(net.minecraft.world.item.CreativeModeTab tab, T... items)
    • appendStack

      @Experimental public static void appendStack(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.world.item.ItemStack... items)
    • appendStack

      @Experimental public static void appendStack(net.minecraft.world.item.CreativeModeTab tab, Supplier<net.minecraft.world.item.ItemStack>... items)
    • append

      @Experimental public static void append(CreativeTabRegistry.TabSupplier tab, net.minecraft.world.level.ItemLike... items)
    • append

      @Experimental public static <I extends net.minecraft.world.level.ItemLike, T extends Supplier<I>> void append(CreativeTabRegistry.TabSupplier tab, T... items)
    • appendStack

      @Experimental public static void appendStack(CreativeTabRegistry.TabSupplier tab, net.minecraft.world.item.ItemStack... items)
    • appendStack

      @Experimental public static void appendStack(CreativeTabRegistry.TabSupplier tab, Supplier<net.minecraft.world.item.ItemStack> item)
    • appendStack

      @Experimental public static void appendStack(CreativeTabRegistry.TabSupplier tab, Supplier<net.minecraft.world.item.ItemStack>... items)
    • appendStack

      @Experimental public static void appendStack(CreativeTabRegistry.TabSupplier tab, Stream<Supplier<net.minecraft.world.item.ItemStack>> items)