Class DataComponentMatchers.DataComponentMatchersType

java.lang.Object
com.viaversion.viaversion.api.type.Type<DataComponentMatchers>
com.viaversion.viaversion.api.minecraft.data.predicate.DataComponentMatchers.DataComponentMatchersType
All Implemented Interfaces:
ByteBufReader<DataComponentMatchers>, ByteBufWriter<DataComponentMatchers>
Enclosing class:
DataComponentMatchers

public static final class DataComponentMatchers.DataComponentMatchersType extends Type<DataComponentMatchers>
  • Constructor Details

    • DataComponentMatchersType

      public DataComponentMatchersType(Type<StructuredData<?>[]> dataArrayType)
  • Method Details

    • read

      public DataComponentMatchers 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, DataComponentMatchers 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