Package dev.architectury.registry
Class CreativeTabRegistry
java.lang.Object
dev.architectury.registry.CreativeTabRegistry
Registry for creating or modifying creative tabs.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
append
(CreativeTabRegistry.TabSupplier tab, net.minecraft.world.level.ItemLike... items) static <I extends net.minecraft.world.level.ItemLike,
T extends Supplier<I>>
voidappend
(CreativeTabRegistry.TabSupplier tab, T... items) static void
append
(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.world.level.ItemLike... items) static <I extends net.minecraft.world.level.ItemLike,
T extends Supplier<I>>
voidappend
(net.minecraft.world.item.CreativeModeTab tab, T... items) static void
appendStack
(CreativeTabRegistry.TabSupplier tab, Supplier<net.minecraft.world.item.ItemStack> item) static void
appendStack
(CreativeTabRegistry.TabSupplier tab, Supplier<net.minecraft.world.item.ItemStack>... items) static void
appendStack
(CreativeTabRegistry.TabSupplier tab, Stream<Supplier<net.minecraft.world.item.ItemStack>> items) static void
appendStack
(CreativeTabRegistry.TabSupplier tab, net.minecraft.world.item.ItemStack... items) static void
appendStack
(net.minecraft.world.item.CreativeModeTab tab, Supplier<net.minecraft.world.item.ItemStack>... items) static void
appendStack
(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.world.item.ItemStack... items) create
(net.minecraft.resources.ResourceLocation name, Consumer<net.minecraft.world.item.CreativeModeTab.Builder> callback) Creates a deferred creative tab, with a configurable builder callback.create
(net.minecraft.resources.ResourceLocation name, Supplier<net.minecraft.world.item.ItemStack> icon) Creates a deferred creative tab, with a custom icon.defer
(net.minecraft.resources.ResourceLocation name) Returns a tab supplier for a tab to be created later.static void
static void
modify
(net.minecraft.world.item.CreativeModeTab tab, CreativeTabRegistry.ModifyTabCallback filler) of
(net.minecraft.world.item.CreativeModeTab tab) Returns a tab supplier for a tab.
-
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 tabicon
- 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 tabcallback
- 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)
-