Class LegacyParticleData
java.lang.Object
com.github.retrooper.packetevents.protocol.particle.data.ParticleData
com.github.retrooper.packetevents.protocol.particle.data.LegacyParticleData
- All Implemented Interfaces:
LegacyConvertible
-
Method Summary
Modifier and TypeMethodDescriptionint[]
static int
getSize
(int id) boolean
isEmpty()
static LegacyParticleData
nullValue
(int id) static LegacyParticleData
static LegacyParticleData
static LegacyParticleData
ofOne
(int a) static LegacyParticleData
ofTwo
(int a, int b) static LegacyParticleData
read
(PacketWrapper<?> wrapper, int typeId) toLegacy
(ClientVersion version) void
validate
(int id) static void
write
(PacketWrapper<?> wrapper, int typeId, LegacyParticleData data) static LegacyParticleData
zero()
Methods inherited from class com.github.retrooper.packetevents.protocol.particle.data.ParticleData
emptyData
-
Method Details
-
nullValue
-
ofTwo
-
ofOne
-
zero
-
ofBlock
-
ofItem
-
getLegacyData
public int[] getLegacyData() -
validate
public void validate(int id) -
getSize
public static int getSize(int id) -
read
-
write
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classParticleData
-
toLegacy
- Specified by:
toLegacy
in interfaceLegacyConvertible
-