Class ParticleDustColorTransitionData
java.lang.Object
com.github.retrooper.packetevents.protocol.particle.data.ParticleData
com.github.retrooper.packetevents.protocol.particle.data.ParticleDustColorTransitionData
-
Constructor Summary
ConstructorDescriptionParticleDustColorTransitionData
(float scale, float[] startRGB, float[] endRGB) ParticleDustColorTransitionData
(float scale, float startRed, float startGreen, float startBlue, float endRed, float endGreen, float endBlue) ParticleDustColorTransitionData
(float scale, Color start, Color end) ParticleDustColorTransitionData
(float scale, Vector3f startRGB, Vector3f endRGB) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(NBTCompound compound, ClientVersion version) static void
encode
(ParticleDustColorTransitionData data, ClientVersion version, NBTCompound compound) getEnd()
float
float
float
float
getScale()
getStart()
float
float
float
boolean
isEmpty()
read
(PacketWrapper<?> wrapper) void
void
setEndBlue
(float endBlue) void
setEndGreen
(float endGreen) void
setEndRed
(float endRed) void
setScale
(float scale) void
void
setStartBlue
(float startBlue) void
setStartGreen
(float startGreen) void
setStartRed
(float startRed) static void
write
(PacketWrapper<?> wrapper, ParticleDustColorTransitionData data) Methods inherited from class com.github.retrooper.packetevents.protocol.particle.data.ParticleData
emptyData
-
Constructor Details
-
ParticleDustColorTransitionData
public ParticleDustColorTransitionData(float scale, float startRed, float startGreen, float startBlue, float endRed, float endGreen, float endBlue) -
ParticleDustColorTransitionData
public ParticleDustColorTransitionData(float scale, float[] startRGB, float[] endRGB) -
ParticleDustColorTransitionData
-
ParticleDustColorTransitionData
-
-
Method Details
-
read
-
write
-
decode
-
encode
public static void encode(ParticleDustColorTransitionData data, ClientVersion version, NBTCompound compound) -
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classParticleData
-
getStartRed
public float getStartRed() -
setStartRed
public void setStartRed(float startRed) -
getStartGreen
public float getStartGreen() -
setStartGreen
public void setStartGreen(float startGreen) -
getStartBlue
public float getStartBlue() -
setStartBlue
public void setStartBlue(float startBlue) -
getEndRed
public float getEndRed() -
setEndRed
public void setEndRed(float endRed) -
getEndGreen
public float getEndGreen() -
setEndGreen
public void setEndGreen(float endGreen) -
getEndBlue
public float getEndBlue() -
setEndBlue
public void setEndBlue(float endBlue) -
getScale
public float getScale() -
setScale
public void setScale(float scale) -
getStart
-
setStart
-
getEnd
-
setEnd
-