Package us.donut.mmc
Class OutboundPacket
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.DataOutputStream
-
- us.donut.mmc.Client.ClientOutputStream
-
- us.donut.mmc.OutboundPacket
-
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
public class OutboundPacket extends Client.ClientOutputStream
Represents a packet going to a server.
-
-
Field Summary
-
Fields inherited from class java.io.DataOutputStream
written
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description OutboundPacket(int packetID)Constructs a new OutboundPacket with the given packet ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ByteArrayOutputStreamasBaos()intgetPacketID()-
Methods inherited from class us.donut.mmc.Client.ClientOutputStream
writeString, writeUUID, writeVarInt, writeVarLong
-
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Methods inherited from class java.io.FilterOutputStream
close, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.DataOutput
write
-
-
-
-
Constructor Detail
-
OutboundPacket
public OutboundPacket(int packetID) throws IOExceptionConstructs a new OutboundPacket with the given packet ID.- Parameters:
packetID- the packet ID- Throws:
IOException
-
-
Method Detail
-
asBaos
protected ByteArrayOutputStream asBaos()
-
getPacketID
public int getPacketID()
-
-