public void networkSerialize(java.io.DataOutputStream stream) { super.networkSerialize(stream); /* * try { * * * } catch (IOException e) { * * e.printStackTrace(); } */ }
@Override public void networkSerialize(DataOutputStream stream) { super.networkSerialize(stream); try { if (inventory.getStackInSlot(0) == null) stream.writeByte(0); else stream.writeByte(inventory.getStackInSlot(0).stackSize); if (inventory.getStackInSlot(1) == null) stream.writeByte(0); else stream.writeByte(inventory.getStackInSlot(1).stackSize); Utils.serialiseItemStack( stream, inventory.getStackInSlot(TransformerContainer.ferromagneticSlotId)); Utils.serialiseItemStack( stream, inventory.getStackInSlot(TransformerContainer.primaryCableSlotId)); Utils.serialiseItemStack( stream, inventory.getStackInSlot(TransformerContainer.secondaryCableSlotId)); node.lrduCubeMask.getTranslate(front.down()).serialize(stream); } catch (IOException e) { e.printStackTrace(); } }