mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 19:29:32 +00:00
ItemStack loader
- Load ItemStacks from JSON - items.json specifies all the global item click events
This commit is contained in:
1 parent
59e9e52a2a
commit
413b43dfd1
14 files changed
+227
-28
No files matched your search
@@ -14,6 +14,7 @@ import static slimeknights.mantle.client.book.ResourceHelper.resourceToString;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class SectionData implements IDataItem {
|
||||
|
||||
public String name = null;
|
||||
public String title = "";
|
||||
public ImageData icon = new ImageData();
|
||||
@@ -35,7 +36,7 @@ public class SectionData implements IDataItem {
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
if(name == null)
|
||||
if (name == null)
|
||||
name = "section" + parent.unnamedSectionCounter++;
|
||||
|
||||
name = name.toLowerCase();
|
||||
|
||||
Reference in new issue
Block a user