Interface ValueReader<T>

  • All Known Implementing Classes:
    TypeRemapper
    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 ValueReader<T>
    • Method Detail

      • read

        T read​(PacketWrapper wrapper)
        throws java.lang.Exception
        Reads value from a PacketWrapper
        Parameters:
        wrapper - The wrapper to read from
        Returns:
        Returns the desired type
        Throws:
        java.lang.Exception - Throws exception if it fails to read