Show IDs in str(BlockType)
This commit is contained in:
parent
091a86931b
commit
5a105ad8e7
@ -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):
|
||||||
|
Reference in New Issue
Block a user