Created
May 5, 2011 04:14
-
-
Save MostAwesomeDude/956528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dump.py b/dump.py | |
index 5298ae5..51e9cdd 100644 | |
--- a/dump.py | |
+++ b/dump.py | |
@@ -191,6 +191,16 @@ def items_pass(jar, name): | |
return ret | |
+def blocks_pass(jar, name): | |
+ """ | |
+ Get data about blocks. | |
+ """ | |
+ | |
+ cf = ClassFile(jar[name], str_as_buffer=True) | |
+ import pdb; pdb.set_trace() | |
+ | |
+ return {} | |
+ | |
def stats_US(jar): | |
""" | |
Get's statistic and achievement name's and description's. | |
@@ -247,6 +257,9 @@ def main(argv=None): | |
elif type_ == "item_superclass": | |
# Get the basic item constructors | |
out["items"] = items_pass(jar, "%s.class" % name) | |
+ elif type_ == "block_superclass": | |
+ # Retrieve block information | |
+ out["blocks"] = blocks_pass(jar, "%s.class" % name) | |
json.dump(out, output, sort_keys=True, indent=4) | |
output.write("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment