You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static final RegistrySupplier<CreativeModeTab> BUILDING_BLOCKS = registerTab(
"building_blocks",
Suppliers.memoize(() -> Blocks.STRUCTURE_VOID.asItem().getDefaultInstance()),
Suppliers.memoize(() -> Blocks.STRUCTURE_VOID)
);
public static final RegistrySupplier<CreativeModeTab> FOOD = registerTab(
"food",
Suppliers.memoize(() -> Blocks.STRUCTURE_VOID.asItem().getDefaultInstance()),
Suppliers.memoize(() -> Items.APPLE),
Suppliers.memoize(() -> Items.GOLDEN_APPLE),
Suppliers.memoize(() -> Items.CARROT)
);
public static final RegistrySupplier<CreativeModeTab> COMBAT = registerTab(
"combat",
Suppliers.memoize(() -> Blocks.STRUCTURE_VOID.asItem().getDefaultInstance()),
Suppliers.memoize(() -> Items.NETHERITE_SWORD)
);
When launching the game I expect to see the tabs in this order:
BUILDING_BLOCKS
FOOD
COMBAT
However it seems like they are sorted alphabetically, so they appear like this
BUILDING_BLOCKS
COMBAT
FOOD
Also, the content inside the Creative Tab itself gets sorted randomly.
In the example above, the FOOD tab has 3 items: APPLE, GOLDEN_APPLE and CARROT.
The expected behavior is to find these items in this exact order in the Creative Tab. However this is not guaranteed and sometimes they get placed randomly (like CARROT, APPLE and GOLDEN_APPLE).
I don't know if that's a bug on the API side or there's something wrong in how the Tabs are created and/or the items are added to them
The text was updated successfully, but these errors were encountered:
When registering some Creative Tabs, the order in which they appear in the Creative Menu is different from the order they are registered.
I'm using this method to register a Creative Tab
And calling it like so
When launching the game I expect to see the tabs in this order:
However it seems like they are sorted alphabetically, so they appear like this
Also, the content inside the Creative Tab itself gets sorted randomly.
In the example above, the
FOOD
tab has 3 items:APPLE
,GOLDEN_APPLE
andCARROT
.The expected behavior is to find these items in this exact order in the Creative Tab. However this is not guaranteed and sometimes they get placed randomly (like
CARROT
,APPLE
andGOLDEN_APPLE
).I don't know if that's a bug on the API side or there's something wrong in how the Tabs are created and/or the items are added to them
The text was updated successfully, but these errors were encountered: