def get_cmd(self): return c.BossbarSet(self.bar.ref, 'max', c.SimpleResolve(str(self.max)))
def get_cmd(self): return c.BossbarSet(self.bar.ref, 'value', c.SimpleResolve(str(self.val)))
def _to_resolve(self, arg): return c.SimpleResolve(str(arg.as_coord) \ if isinstance(arg, (RelPosVal, AncPosVal)) \ else str(arg))