def __getattr__(self, attr):
        if self.__dict__ in attr:
            return self.__dict__[attr]
        if attr == "name":
            r = self.materials.names[self.ID]
        else:
            r = getattr(self.materials, attr)[self.ID]
        if attr in ("name", "aka", "color", "type"):
            r = r[self.blockData]
        return r
dataset/ETHPy150Open mcedit/pymclevel/materials.py/Block.__getattr__/swapped operands of `in`