Skip to content

Commit

Permalink
Make sure lanterns appear in specific order instead of random #28
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMartijn642 committed Aug 1, 2023
1 parent 265caa8 commit 32eb08e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
*/
public class AdditionalLanterns implements ModInitializer {

public static final CreativeItemGroup GROUP = CreativeItemGroup.create("additionallanterns", () -> LanternMaterial.NORMAL.getLanternBlock().asItem());
public static final CreativeItemGroup GROUP = CreativeItemGroup.create("additionallanterns", () -> LanternMaterial.NORMAL.getLanternBlock().asItem())
.filler(items -> {
for(LanternMaterial material : LanternMaterial.values()){
items.accept(material.getLanternBlock().asItem().getDefaultInstance());
for(LanternColor color : LanternColor.values())
items.accept(material.getLanternBlock(color).asItem().getDefaultInstance());
if(material.hasChains)
items.accept(material.getChainBlock().asItem().getDefaultInstance());
}
});

@Override
public void onInitialize(){
Expand Down

0 comments on commit 32eb08e

Please sign in to comment.