Class OldEntityDataType
java.lang.Object
com.viaversion.viaversion.api.type.Type<EntityData>
com.viaversion.viaversion.api.type.types.entitydata.EntityDataTypeTemplate
com.viaversion.viaversion.api.type.types.entitydata.OldEntityDataType
- All Implemented Interfaces:
ByteBufReader<EntityData>
,ByteBufWriter<EntityData>
- Direct Known Subclasses:
EntityDataType1_8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EntityDataType
getType
(int index) read
(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.void
write
(io.netty.buffer.ByteBuf buffer, EntityData object) Writes an object to a type to a ByteBuf.Methods inherited from class com.viaversion.viaversion.api.type.types.entitydata.EntityDataTypeTemplate
getBaseClass
Methods inherited from class com.viaversion.viaversion.api.type.Type
getOutputClass, getTypeName, readEither, toString, writeEither
-
Constructor Details
-
OldEntityDataType
public OldEntityDataType()
-
-
Method Details
-
read
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
-
write
Description copied from interface:ByteBufWriter
Writes an object to a type to a ByteBuf.- Parameters:
buffer
- buffer to write toobject
- value to write
-