Exemplo n.º 1
0
 def decode(cls, buf: Buffer) -> PlayClickWindow:
     return cls(
         buf.unpack("B"),
         buf.unpack("h"),
         buf.unpack("b"),
         buf.unpack("h"),
         buf.unpack_varint(),
         buf.unpack_slot(),
     )
Exemplo n.º 2
0
 def decode(cls, buf: Buffer) -> PlayCreativeInventoryAction:
     return cls(buf.unpack("h"), buf.unpack_slot())
Exemplo n.º 3
0
 def decode(cls, buf: Buffer) -> PlayEditBook:
     return cls(buf.unpack_slot(), buf.unpack("?"), buf.unpack_varint())