Package dev.kosmx.playerAnim.core.util
Class NetworkHelper
java.lang.Object
dev.kosmx.playerAnim.core.util.NetworkHelper
I can't use Minecraft's string and uuid byte reader in a bukkit plugin, I need to implement these.
This can still here, but it can be removed if unused
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadString(ByteBuffer buf) static UUIDreadUUID(ByteBuffer buf) static intreadVarInt(ByteBuffer buf) static StringreadVarString(ByteBuffer buf) static voidwriteString(ByteBuffer buf, String str) static voidwriteUUID(ByteBuffer buf, UUID uuid) static voidwriteVarInt(ByteBuffer buf, int i) static voidwriteVarString(ByteBuffer buf, String str)
-
Constructor Details
-
NetworkHelper
public NetworkHelper()
-
-
Method Details
-
readString
- Throws:
IOException
-
writeString
-
readVarString
- Throws:
IOException
-
writeVarString
-
readUUID
-
writeUUID
-
readVarInt
-
writeVarInt
-