Class EmoteDataPacket
java.lang.Object
io.github.kosmx.emotes.common.network.objects.AbstractNetworkPacket
io.github.kosmx.emotes.common.network.objects.EmoteDataPacket
It should be placed into emotecraftCommon, but it has too many references to minecraft codes...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateSize(NetData config) Estimated size to create buffersbooleanbytegetID()bytegetVer()version 1: 2.1 features, extended parts, UUID emote ID version 2: Animation library, dynamic parts version 3: Animation scale version 4: easing argsvoidread(ByteBuffer buf, NetData config, int version) Read byte buf to T typevoidwrite(ByteBuffer buf, NetData config) Methods inherited from class io.github.kosmx.emotes.common.network.objects.AbstractNetworkPacket
getVer
-
Constructor Details
-
EmoteDataPacket
public EmoteDataPacket()
-
-
Method Details
-
write
- Specified by:
writein classAbstractNetworkPacket
-
read
Description copied from class:AbstractNetworkPacketRead byte buf to T type- Specified by:
readin classAbstractNetworkPacket- Parameters:
buf- ByteBufferconfig- Reader config- Throws:
IOException
-
getID
public byte getID()- Specified by:
getIDin classAbstractNetworkPacket
-
getVer
public byte getVer()version 1: 2.1 features, extended parts, UUID emote ID version 2: Animation library, dynamic parts version 3: Animation scale version 4: easing args- Specified by:
getVerin classAbstractNetworkPacket
-
doWrite
- Specified by:
doWritein classAbstractNetworkPacket
-
calculateSize
Description copied from class:AbstractNetworkPacketEstimated size to create buffers- Specified by:
calculateSizein classAbstractNetworkPacket- Parameters:
config- some input data- Returns:
- the packet's size (estimated)
-