Class ModernEntityDataType

All Implemented Interfaces:
ByteBufReader<EntityData>, ByteBufWriter<EntityData>
Direct Known Subclasses:
EntityDataType, EntityDataType1_12, EntityDataType1_9

public abstract class ModernEntityDataType extends EntityDataTypeTemplate
  • Constructor Details

    • ModernEntityDataType

      public ModernEntityDataType()
  • Method Details

    • read

      public EntityData 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
    • getType

      protected abstract EntityDataType getType(int index)
    • write

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