Class ParticleType
java.lang.Object
com.viaversion.viaversion.api.type.Type<T>
com.viaversion.viaversion.api.type.types.misc.DynamicType<Particle>
com.viaversion.viaversion.api.type.types.misc.ParticleType
- All Implemented Interfaces:
ByteBufReader<Particle>
,ByteBufWriter<Particle>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.viaversion.viaversion.api.type.types.misc.DynamicType
DynamicType.DataFiller, DynamicType.DataReader<T>, DynamicType.RawDataFiller
-
Field Summary
Fields inherited from class com.viaversion.viaversion.api.type.types.misc.DynamicType
readers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicType.DataReader<Particle>
itemHandler
(Type<Item> itemType) protected FullMappings
read
(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.void
Writes an object to a type to a ByteBuf.Methods inherited from class com.viaversion.viaversion.api.type.types.misc.DynamicType
filler, filler, rawFiller, readData
Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, readEither, toString, writeEither
-
Constructor Details
-
ParticleType
public ParticleType()
-
-
Method Details
-
write
Description copied from interface:ByteBufWriter
Writes an object to a type to a ByteBuf.- Parameters:
buffer
- buffer to write toobject
- value to write
-
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
-
mappings
- Specified by:
mappings
in classDynamicType<Particle>
-
itemHandler
-