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 ace789c commit 950c672
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.supermartijn642.core.item.CreativeItemGroup;
import com.supermartijn642.core.registry.GeneratorRegistrationHandler;
import com.supermartijn642.core.registry.RegistrationHandler;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Mod;
import org.apache.logging.log4j.Logger;

Expand All @@ -14,7 +15,16 @@
@Mod(modid = "@mod_id@", name = "@mod_name@", version = "@mod_version@", dependencies = "required-after:forge@@forge_dependency@;required-after:supermartijn642corelib@@core_library_dependency@")
public class AdditionalLanterns {

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

public AdditionalLanterns(){
Expand Down

0 comments on commit 950c672

Please sign in to comment.