コード例 #1
0
 def read(self):
     return c.DataGet(self.storage, self.path, self.type.scale)
コード例 #2
0
 def read(self):
     return c.DataGet(self.entity.ref, self.path, self.type.scale)
コード例 #3
0
 def as_cmd(self):
     return c.DataGet(self.target, c.NbtPath(self.path), self.scale)
コード例 #4
0
 def as_cmd(self, func):
     direct = self.var._direct_nbt()
     assert direct is not None, self.var
     path, storage = direct
     return c.DataGet(storage, path, None)