mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 10:55:06 +00:00
Close #392 Generate Crate Icons Automatically
This commit is contained in:
1 parent
107047a04c
commit
e4b8342e1c
67 files changed
+427
-58
No files matched your search
@@ -230,33 +230,27 @@ public class PluginIC2 extends ForestryPlugin {
|
||||
@Optional.Method(modid = "IC2")
|
||||
protected void registerCrates() {
|
||||
if (resin != null) {
|
||||
ForestryItem.cratedResin.registerItem(new ItemCrated(), "cratedResin");
|
||||
((ItemCrated) ForestryItem.cratedResin.item()).setContained(ForestryItem.cratedResin.getItemStack(), resin);
|
||||
ForestryItem.cratedResin.registerItem(new ItemCrated(resin), "cratedResin");
|
||||
}
|
||||
|
||||
if (rubber != null) {
|
||||
ForestryItem.cratedRubber.registerItem(new ItemCrated(), "cratedRubber");
|
||||
((ItemCrated) ForestryItem.cratedRubber.item()).setContained(ForestryItem.cratedRubber.getItemStack(), rubber);
|
||||
ForestryItem.cratedRubber.registerItem(new ItemCrated(rubber), "cratedRubber");
|
||||
}
|
||||
|
||||
if (scrap != null) {
|
||||
ForestryItem.cratedScrap.registerItem(new ItemCrated(), "cratedScrap");
|
||||
((ItemCrated) ForestryItem.cratedScrap.item()).setContained(ForestryItem.cratedScrap.getItemStack(), scrap);
|
||||
ForestryItem.cratedScrap.registerItem(new ItemCrated(scrap), "cratedScrap");
|
||||
}
|
||||
|
||||
if (uuMatter != null) {
|
||||
ForestryItem.cratedUUM.registerItem(new ItemCrated(), "cratedUUM");
|
||||
((ItemCrated) ForestryItem.cratedUUM.item()).setContained(ForestryItem.cratedUUM.getItemStack(), uuMatter);
|
||||
ForestryItem.cratedUUM.registerItem(new ItemCrated(uuMatter), "cratedUUM");
|
||||
}
|
||||
|
||||
if (silver != null) {
|
||||
ForestryItem.cratedSilver.registerItem(new ItemCrated(), "cratedSilver");
|
||||
((ItemCrated) ForestryItem.cratedSilver.item()).setContained(ForestryItem.cratedSilver.getItemStack(), silver);
|
||||
ForestryItem.cratedSilver.registerItem(new ItemCrated(silver), "cratedSilver");
|
||||
}
|
||||
|
||||
if (brass != null) {
|
||||
ForestryItem.cratedBrass.registerItem(new ItemCrated(), "cratedBrass");
|
||||
((ItemCrated) ForestryItem.cratedBrass.item()).setContained(ForestryItem.cratedBrass.getItemStack(), brass);
|
||||
ForestryItem.cratedBrass.registerItem(new ItemCrated(brass), "cratedBrass");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user