ItemStack loader

- Load ItemStacks from JSON
  - items.json specifies all the global item click events
This commit is contained in:
Arthur Uzulin committed 2016-02-06 03:56:07 +11:00
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();