Skip to content

Commit

Permalink
Fix creative tab ordering [build] [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Jun 27, 2023
1 parent 6ae88f3 commit 5161d4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* Add more info to JEI about Statue Upgrading
* Fix creative tab ordering
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ curseforge_id=253172
modrinth_id=hsCeX7k7

# Version
version=0.3.6.1
version=0.3.6.2

# Dependencies
jei_version=15.0.0.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
import net.minecraft.world.inventory.MenuType;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
Expand Down Expand Up @@ -286,13 +287,15 @@ private static Block.Properties blockBuilder() {

public static final RegistryObject<CreativeModeTab> STATUES_BLOCKS = CREATIVE_MODE_TABS.register("blocks", () -> CreativeModeTab.builder()
.icon(() -> new ItemStack(StatueRegistry.SLIME_STATUE.get()))
.withTabsBefore(CreativeModeTabs.SPAWN_EGGS)
.title(Component.translatable("itemGroup.statues.blocks"))
.displayItems((displayParameters, output) -> {
List<ItemStack> stacks = StatueRegistry.BLOCKS.getEntries().stream().map(reg -> new ItemStack(reg.get())).toList();
output.acceptAll(stacks);
}).build());
public static final RegistryObject<CreativeModeTab> STATUES_ITEMS = CREATIVE_MODE_TABS.register("items", () -> CreativeModeTab.builder()
.icon(() -> new ItemStack(StatueRegistry.STATUE_CORE.get()))
.withTabsBefore(CreativeModeTabs.SPAWN_EGGS)
.title(Component.translatable("itemGroup.statues.items"))
.displayItems((displayParameters, output) -> {
List<ItemStack> stacks = StatueRegistry.ITEMS.getEntries().stream()
Expand Down

0 comments on commit 5161d4e

Please sign in to comment.