Class ParticleDustData
java.lang.Object
com.github.retrooper.packetevents.protocol.particle.data.ParticleData
com.github.retrooper.packetevents.protocol.particle.data.ParticleDustData
-
Constructor Summary
ConstructorDescriptionParticleDustData
(float scale, float[] rgb) ParticleDustData
(float scale, float red, float green, float blue) ParticleDustData
(float scale, int red, int green, int blue) ParticleDustData
(float scale, Color color) ParticleDustData
(float scale, Vector3f rgb) -
Method Summary
Modifier and TypeMethodDescriptionstatic ParticleDustData
decode
(NBTCompound compound, ClientVersion version) static void
encode
(ParticleDustData data, ClientVersion version, NBTCompound compound) float
getBlue()
getColor()
float
getGreen()
float
getRed()
float
getScale()
boolean
isEmpty()
static ParticleDustData
read
(PacketWrapper<?> wrapper) void
setBlue
(float blue) void
void
setGreen
(float green) void
setRed
(float red) void
setScale
(float scale) static void
write
(PacketWrapper<?> wrapper, ParticleDustData data) Methods inherited from class com.github.retrooper.packetevents.protocol.particle.data.ParticleData
emptyData
-
Constructor Details
-
ParticleDustData
public ParticleDustData(float scale, float red, float green, float blue) -
ParticleDustData
public ParticleDustData(float scale, float[] rgb) -
ParticleDustData
-
ParticleDustData
public ParticleDustData(float scale, int red, int green, int blue) -
ParticleDustData
-
-
Method Details
-
read
-
write
-
decode
-
encode
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classParticleData
-
getRed
public float getRed() -
setRed
public void setRed(float red) -
getGreen
public float getGreen() -
setGreen
public void setGreen(float green) -
getBlue
public float getBlue() -
setBlue
public void setBlue(float blue) -
getScale
public float getScale() -
setScale
public void setScale(float scale) -
getColor
-
setColor
-