Show IDs in str(BlockType)

This commit is contained in:
David Vierra 2015-02-04 23:05:13 -10:00
parent 091a86931b
commit 5a105ad8e7

View File

@ -41,7 +41,7 @@ class BlockType(namedtuple("_BlockType", "ID, meta, blocktypeSet")):
return "<BlockType (%d:%d)%s>" % (self.ID, self.meta, names) return "<BlockType (%d:%d)%s>" % (self.ID, self.meta, names)
def __str__(self): def __str__(self):
return "%s (%s%s)" % (self.displayName, self.internalName, self.blockState) return "%s (%s%s) [%s:%s]" % (self.displayName, self.internalName, self.blockState, self.ID, self.meta)
def __cmp__(self, other): def __cmp__(self, other):
if not isinstance(other, BlockType): if not isinstance(other, BlockType):