Class Filterable.FilterableType<T,F extends Filterable<T>>

java.lang.Object
com.viaversion.viaversion.api.type.Type<F>
com.viaversion.viaversion.api.minecraft.item.data.Filterable.FilterableType<T,F>
All Implemented Interfaces:
ByteBufReader<F>, ByteBufWriter<F>
Enclosing class:
Filterable<T>

public abstract static class Filterable.FilterableType<T,F extends Filterable<T>> extends Type<F>
  • Constructor Details

    • FilterableType

      protected FilterableType(Type<T> elementType, Type<T> optionalElementType, Class<F> outputClass)
  • Method Details

    • read

      public F read(io.netty.buffer.ByteBuf buffer)
      Description copied from interface: ByteBufReader
      Reads a value from a ByteBuf.
      Parameters:
      buffer - buffer to read from
      Returns:
      type based on the class type
    • write

      public void write(io.netty.buffer.ByteBuf buffer, F value)
      Description copied from interface: ByteBufWriter
      Writes an object to a type to a ByteBuf.
      Parameters:
      buffer - buffer to write to
      value - value to write
    • create

      protected abstract F create(T raw, T filtered)