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:
parent
c0910ddfd0
commit
03eb0081a4
@ -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
|
||||
|
Reference in New Issue
Block a user