@Override public void onGroundedChangedByClient() { super.onGroundedChangedByClient(); computeInventory(); reconnect(); }
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(); } }
@Override public void inventoryChange(IInventory inventory) { // TODO Auto-generated method stub super.inventoryChange(inventory); setupPhysical(); }
@Override public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); fromNbt = true; }
@Override public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); }
@Override public void disconnectJob() { super.disconnectJob(); Eln.simulator.mna.removeProcess(interSystemProcess); }
@Override public void onBreakElement() { // node.dropInventory(inventory); super.onBreakElement(); }
@Override public void connectJob() { Eln.simulator.mna.addProcess(interSystemProcess); super.connectJob(); }