@Override
public WindowSlotMessage decode(ByteBuf buffer) throws IOException {
int id = buffer.readUnsignedByte();
int slot = buffer.readUnsignedShort();
ItemStack item = VanillaByteBufUtils.readItemStack(buffer);
return new WindowSlotMessage(id, slot, item);
}