Class NetKeyMapper<T>

java.lang.Object
alexiil.mc.lib.net.NetKeyMapper<T>
Direct Known Subclasses:
NetKeyMapper.OfEnum, NetKeyMapper.ToString

public abstract class NetKeyMapper<T> extends Object
  • Field Details

    • LENGTH_DYNAMIC

      public static final int LENGTH_DYNAMIC
      See Also:
      Constant Field Values
    • clazz

      public final Class<T> clazz
    • length

      public final int length
      The known length in bytes of this key, or LENGTH_DYNAMIC if this isn't a constant.
  • Constructor Details

    • NetKeyMapper

      public NetKeyMapper(Class<T> clazz, int length)
    • NetKeyMapper

      public NetKeyMapper(Class<T> clazz)
  • Method Details