{
buffer.writeLong((Long) dataValue);
}
else if (dataValue instanceof EnergyStorage)
{
EnergyStorage storage = (EnergyStorage) dataValue;
buffer.writeFloat(storage.getCapacityGC());
buffer.writeFloat(storage.getMaxReceive());
buffer.writeFloat(storage.getMaxExtract());
buffer.writeFloat(storage.getEnergyStoredGC());
}
else if (dataValue instanceof NBTTagCompound)
{
NetworkUtil.writeNBTTagCompound((NBTTagCompound) dataValue, buffer);
}