public IAEItemStack readItem(ByteBuf stream) throws IOException {
    boolean hasItem = stream.readBoolean();

    if (hasItem) {
      return AEItemStack.loadItemStackFromPacket(stream);
    }

    return null;
  }