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(), )
def decode(cls, buf: Buffer) -> PlayCreativeInventoryAction: return cls(buf.unpack("h"), buf.unpack_slot())
def decode(cls, buf: Buffer) -> PlayEditBook: return cls(buf.unpack_slot(), buf.unpack("?"), buf.unpack_varint())