Class NetKeyMapper.ToString<T>

java.lang.Object
alexiil.mc.lib.net.NetKeyMapper<T>
alexiil.mc.lib.net.NetKeyMapper.ToString<T>
Enclosing class:
NetKeyMapper<T>

public static class NetKeyMapper.ToString<T>
extends NetKeyMapper<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from class alexiil.mc.lib.net.NetKeyMapper

    NetKeyMapper.OfEnum<E extends java.lang.Enum<E>>, NetKeyMapper.ToString<T>
  • Field Summary

    Fields inherited from class alexiil.mc.lib.net.NetKeyMapper

    clazz, length, LENGTH_DYNAMIC
  • Constructor Summary

    Constructors 
    Constructor Description
    ToString​(java.lang.Class<T> clazz, java.util.function.Function<T,​java.lang.String> toString, java.util.function.Function<java.lang.String,​T> fromString)  
  • Method Summary

    Modifier and Type Method Description
    T read​(NetByteBuf buffer, IMsgReadCtx ctx)
    Reads the value for the key from the buffer, optionally using the parent keys.
    void write​(NetByteBuf buffer, IMsgWriteCtx ctx, T value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait