Class 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.String readString​(io.netty.buffer.ByteBuf byteBuf)  
      static int readVarInt​(io.netty.buffer.ByteBuf byteBuf)  
      static io.netty.buffer.ByteBuf writeString​(io.netty.buffer.ByteBuf byteBuf, java.lang.String string)  
      static io.netty.buffer.ByteBuf writeVarInt​(io.netty.buffer.ByteBuf byteBuf, int value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)