Class LabyModChannelUtils
- java.lang.Object
-
- eu.cloudnetservice.cloudnet.ext.labymod.LabyModChannelUtils
-
public class LabyModChannelUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getLMCMessageContents(java.lang.String messageKey, de.dytanic.cloudnet.common.document.gson.JsonDocument messageContents)static de.dytanic.cloudnet.common.collection.Pair<java.lang.String,de.dytanic.cloudnet.common.document.gson.JsonDocument>readLMCMessageContents(byte[] data)static java.lang.StringreadString(io.netty.buffer.ByteBuf byteBuf)static intreadVarInt(io.netty.buffer.ByteBuf byteBuf)static io.netty.buffer.ByteBufwriteString(io.netty.buffer.ByteBuf byteBuf, java.lang.String string)static io.netty.buffer.ByteBufwriteVarInt(io.netty.buffer.ByteBuf byteBuf, int value)
-
-
-
Method Detail
-
getLMCMessageContents
public static byte[] getLMCMessageContents(java.lang.String messageKey, de.dytanic.cloudnet.common.document.gson.JsonDocument messageContents)
-
readLMCMessageContents
public static de.dytanic.cloudnet.common.collection.Pair<java.lang.String,de.dytanic.cloudnet.common.document.gson.JsonDocument> readLMCMessageContents(byte[] data)
-
readVarInt
public static int readVarInt(io.netty.buffer.ByteBuf byteBuf)
-
writeVarInt
public static io.netty.buffer.ByteBuf writeVarInt(io.netty.buffer.ByteBuf byteBuf, int value)
-
writeString
public static io.netty.buffer.ByteBuf writeString(io.netty.buffer.ByteBuf byteBuf, java.lang.String string)
-
readString
public static java.lang.String readString(io.netty.buffer.ByteBuf byteBuf)
-
-