List of usage examples for io.netty.buffer ByteBufOutputStream writeLong
@Override public void writeLong(long v) throws IOException
From source file:de.sanandrew.mods.claysoldiers.network.packet.PacketSoldierRender.java
License:Creative Commons License
@Override @SuppressWarnings("unchecked") public void writeData(ByteBufOutputStream stream, Tuple dataTuple) throws IOException { Triplet<Integer, long[], long[]> data = (Triplet) dataTuple; stream.writeInt(data.getValue0()); // entity id stream.writeLong(data.getValue1()[0]); // upgrade flags 1 stream.writeLong(data.getValue1()[1]); // upgrade flags 2 stream.writeLong(data.getValue2()[0]); // effect flags 1 stream.writeLong(data.getValue2()[1]); // effect flags 2 }