Class FireworkExplosion
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.FireworkExplosion
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFireworkExplosion
(FireworkExplosion.Shape shape, List<Integer> colors, List<Integer> fadeColors, boolean hasTrail, boolean hasTwinkle) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColor
(int color) void
addFadeColor
(int color) boolean
getShape()
int
hashCode()
boolean
boolean
static FireworkExplosion
read
(PacketWrapper<?> wrapper) void
void
setFadeColors
(List<Integer> fadeColors) void
setHasTrail
(boolean hasTrail) void
setHasTwinkle
(boolean hasTwinkle) void
setShape
(FireworkExplosion.Shape shape) static void
write
(PacketWrapper<?> wrapper, FireworkExplosion explosion)
-
Constructor Details
-
FireworkExplosion
public FireworkExplosion(FireworkExplosion.Shape shape, List<Integer> colors, List<Integer> fadeColors, boolean hasTrail, boolean hasTwinkle)
-
-
Method Details
-
read
-
write
-
getShape
-
setShape
-
addColor
public void addColor(int color) -
getColors
-
setColors
-
addFadeColor
public void addFadeColor(int color) -
getFadeColors
-
setFadeColors
-
isHasTrail
public boolean isHasTrail() -
setHasTrail
public void setHasTrail(boolean hasTrail) -
isHasTwinkle
public boolean isHasTwinkle() -
setHasTwinkle
public void setHasTwinkle(boolean hasTwinkle) -
equals
-
hashCode
public int hashCode()
-