Class StaticParticleType<T extends ParticleData>
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.particle.type.StaticParticleType<T>
- All Implemented Interfaces:
MappedEntity
,ParticleType<T>
public class StaticParticleType<T extends ParticleData>
extends AbstractMappedEntity
implements ParticleType<T>
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorsConstructorDescriptionStaticParticleType
(@Nullable TypesBuilderData data, PacketWrapper.Reader<T> reader, PacketWrapper.Writer<T> writer, ParticleTypes.Decoder<T> decoder, ParticleTypes.Encoder<T> encoder) -
Method Summary
Modifier and TypeMethodDescriptiondecodeData
(NBTCompound compound, ClientVersion version) void
encodeData
(T value, ClientVersion version, NBTCompound compound) readData
(PacketWrapper<?> wrapper) void
writeData
(PacketWrapper<?> wrapper, T data) Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
Methods inherited from interface com.github.retrooper.packetevents.protocol.particle.type.ParticleType
readDataFunction, writeDataFunction
-
Constructor Details
-
StaticParticleType
@Internal public StaticParticleType(@Nullable @Nullable TypesBuilderData data, PacketWrapper.Reader<T> reader, PacketWrapper.Writer<T> writer, ParticleTypes.Decoder<T> decoder, ParticleTypes.Encoder<T> encoder)
-
-
Method Details
-
readData
- Specified by:
readData
in interfaceParticleType<T extends ParticleData>
-
writeData
- Specified by:
writeData
in interfaceParticleType<T extends ParticleData>
-
decodeData
- Specified by:
decodeData
in interfaceParticleType<T extends ParticleData>
-
encodeData
- Specified by:
encodeData
in interfaceParticleType<T extends ParticleData>
-