Add function to ResourceLoader for listing all block models

xxx only lists Vanilla models. haven't looked at mods with models yet.
This commit is contained in:
David Vierra 2015-04-15 00:31:56 -10:00
parent c0910ddfd0
commit 03eb0081a4

View File

@ -33,3 +33,9 @@ class ResourceLoader(object):
raise ResourceNotFound("Resource %s not found in search path" % path)
return stream
def blockModelPaths(self):
for zf in self.zipFiles:
for name in zf.namelist():
if name.startswith("assets/minecraft/models/block"):
yield name