示例#1
0
 def write(self, nbt: NBTStream):
     nbt.put_short(self.value)
示例#2
0
 def write(self, nbt: NBTStream):
     nbt.put_double(self.value)
示例#3
0
 def read(self, nbt: NBTStream, tracker: ReaderTracker):
     self.value = nbt.get_signed_short()
示例#4
0
 def write(self, nbt: NBTStream):
     nbt.put_byte(self.value)
示例#5
0
 def read(self, nbt: NBTStream, tracker: ReaderTracker):
     self.value = nbt.get_double()
 def write(self, nbt: NBTStream):
     nbt.put_int(len(self.value))
     nbt.put(bytes(self.value))
 def read(self, nbt: NBTStream, tracker: ReaderTracker):
     self.value = nbt.get(nbt.get_int())
示例#8
0
 def write(self, nbt: NBTStream):
     nbt.put_int_array(self.value)
示例#9
0
 def write(self, nbt: NBTStream):
     nbt.put_string(self.value)
示例#10
0
 def read(self, nbt: NBTStream, tracker: ReaderTracker):
     self.value = nbt.get_string()