Class LabyModChannelUtil


  • public class LabyModChannelUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] createChannelMessageData​(java.lang.String messageKey, com.google.gson.JsonElement jsonElement)  
      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

      • createChannelMessageData

        public static byte[] createChannelMessageData​(java.lang.String messageKey,
                                                      com.google.gson.JsonElement jsonElement)
      • 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)