Code example for ByteArrayDataOutput

Methods: toByteArraywriteByte

0
	} 
 
	public final Packet makePacket() 
	{ 
		ByteArrayDataOutput out = ByteStreams.newDataOutput();
		out.writeByte(getPacketId());
		write(out);
		return PacketDispatcher.getPacket(CHANNEL, out.toByteArray());
	} 
 
	public abstract void write(ByteArrayDataOutput out);
 
	public abstract void read(ByteArrayDataInput in) throws ProtocolException;
 
	public abstract void execute(EntityPlayer player, Side side) throws ProtocolException;
} 
Experience pair programming with AI  Get Codota for Java