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.

    @FunctionalInterface
    public interface ValueWriter<T>
    • Method Detail

      • write

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