Interface ByteBufReader<T>

All Known Implementing Classes:
ArrayType, BitSetType, BlockChangeRecordType, BlockEntityType1_18, BlockEntityType1_20_2, BlockPositionType1_14, BlockPositionType1_14.OptionalBlockPositionType, BlockPositionType1_8, BlockPositionType1_8.OptionalBlockPositionType, BooleanType, BooleanType.OptionalBooleanType, BulkChunkType1_8, ByteArrayType, ByteArrayType.OptionalByteArrayType, ByteType, ChunkPositionType, ChunkSectionType1_13, ChunkSectionType1_16, ChunkSectionType1_18, ChunkSectionType1_8, ChunkSectionType1_9, ChunkType1_13, ChunkType1_14, ChunkType1_15, ChunkType1_16, ChunkType1_16_2, ChunkType1_17, ChunkType1_18, ChunkType1_20_2, ChunkType1_8, ChunkType1_9_1, ChunkType1_9_3, ComponentType, ComponentType.OptionalComponentType, CompoundTagType, CompoundTagType.OptionalCompoundTagType, DoubleType, DynamicType, EmptyType, EntityDataListType, EntityDataListTypeTemplate, EntityDataType, EntityDataType1_12, EntityDataType1_8, EntityDataType1_9, EntityDataTypeTemplate, EulerAngleType, Filterable.FilterableType, FixedByteArrayType, FloatType, FloatType.OptionalFloatType, GameProfileType, GlobalBlockPositionType, GlobalBlockPositionType.OptionalGlobalPositionType, HolderSetType, HolderSetType.OptionalHolderSetType, HolderType, IntArrayType, IntType, ItemCostType1_20_5, ItemCostType1_20_5.OptionalItemCostType, ItemShortArrayType1_13, ItemShortArrayType1_13_2, ItemShortArrayType1_8, ItemType1_13, ItemType1_13_2, ItemType1_20_2, ItemType1_20_5, ItemType1_20_5.OptionalItemType, ItemType1_8, LongArrayType, LongType, ModernEntityDataType, NamedCompoundTagType, NamedCompoundTagType.OptionalNamedCompoundTagType, OldEntityDataType, OptionalType, OptionalVarIntType, PaletteType1_18, ParticleType, PlayerMessageSignatureType, PlayerMessageSignatureType.OptionalPlayerMessageSignatureType, ProfileKeyType, ProfileKeyType.OptionalProfileKeyType, QuaternionType, RegistryEntryType, RemainingBytesType, ShortByteArrayType, ShortType, SoundEventType, StringType, StringType.OptionalStringType, StructuredDataType, TagType, TagType.OptionalTagType, Type, UnsignedByteType, UnsignedShortType, UUIDType, UUIDType.OptionalUUIDType, VarIntArrayType, VarIntType, VarLongBlockChangeRecordType, VarLongType, Vector3fType, VectorType, VillagerDataType
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 ByteBufReader<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    read(io.netty.buffer.ByteBuf buffer)
    Reads a value from a ByteBuf.
  • Method Details

    • read

      T read(io.netty.buffer.ByteBuf buffer)
      Reads a value from a ByteBuf.
      Parameters:
      buffer - buffer to read from
      Returns:
      type based on the class type