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 79ec252 commit f59e57e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@
@Mod("additionallanterns")
public class AdditionalLanterns {

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());
}
});
public static final Logger LOGGER = CommonUtils.getLogger("additionallanterns");

public AdditionalLanterns(){
Expand Down

0 comments on commit f59e57e

Please sign in to comment.