Interface ValueWriter<T>

  • All Known Implementing Classes:
    TypeRemapper, ValueTransformer
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ValueWriter<T>
    • Method Detail

      • write

        void write​(PacketWrapper wrapper,
                   T inputValue)
            throws java.lang.Exception
        Write a value to a packet
        wrapper - The packet wrapper to write to
        inputValue - The value to write
        java.lang.Exception - Throws exception if it fails to write