Class ParticleOptions
- java.lang.Object
-
- org.spongepowered.api.effect.particle.ParticleOptions
-
public final class ParticleOptions extends java.lang.Object
An enumeration of all possibleParticleOption
s in vanilla minecraft.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<ParticleOption<BlockState>>
BLOCK_STATE
This option will affect the appearance of a particle.static DefaultedRegistryReference<ParticleOption<Color>>
COLOR
This option will modify the color of a particle.static DefaultedRegistryReference<ParticleOption<Direction>>
DIRECTION
This option will change the direction of a particle.static DefaultedRegistryReference<ParticleOption<ItemStackSnapshot>>
ITEM_STACK_SNAPSHOT
This option will affect the appearance of a particle.static DefaultedRegistryReference<ParticleOption<Vector3d>>
OFFSET
This option will affect how all the particles are spread.static DefaultedRegistryReference<ParticleOption<PotionEffectType>>
POTION_EFFECT_TYPE
This option will change the potion type of a particle.static DefaultedRegistryReference<ParticleOption<java.lang.Integer>>
QUANTITY
This option will affect the amount of particles that are spawned.static DefaultedRegistryReference<ParticleOption<java.lang.Double>>
SCALE
This option will change the scale of a particle.static DefaultedRegistryReference<ParticleOption<Vector3d>>
VELOCITY
This option will affect how most particles are moving.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<ParticleOption<?>>
registry()
-
-
-
Field Detail
-
BLOCK_STATE
public static final DefaultedRegistryReference<ParticleOption<BlockState>> BLOCK_STATE
This option will affect the appearance of a particle. The only vanillaParticleType
s that this option is applicable to are:
-
COLOR
public static final DefaultedRegistryReference<ParticleOption<Color>> COLOR
This option will modify the color of a particle. The only vanillaParticleType
s this option is applicable to are:
-
DIRECTION
public static final DefaultedRegistryReference<ParticleOption<Direction>> DIRECTION
This option will change the direction of a particle.
-
ITEM_STACK_SNAPSHOT
public static final DefaultedRegistryReference<ParticleOption<ItemStackSnapshot>> ITEM_STACK_SNAPSHOT
This option will affect the appearance of a particle. The only vanillaParticleType
this option is applicable to are:
-
OFFSET
public static final DefaultedRegistryReference<ParticleOption<Vector3d>> OFFSET
This option will affect how all the particles are spread.
-
POTION_EFFECT_TYPE
public static final DefaultedRegistryReference<ParticleOption<PotionEffectType>> POTION_EFFECT_TYPE
This option will change the potion type of a particle. The only vanillaParticleType
s this option is applicable to is
-
QUANTITY
public static final DefaultedRegistryReference<ParticleOption<java.lang.Integer>> QUANTITY
This option will affect the amount of particles that are spawned. The minimum amount of particles is 1. The only vanillaParticleType
s this option isn't applicable to are:The quantity must be at least 1, or a
IllegalArgumentException
will be thrown when applying.
-
SCALE
public static final DefaultedRegistryReference<ParticleOption<java.lang.Double>> SCALE
This option will change the scale of a particle. The only vanillaParticleType
s this option is applicable to is:The scale may never be negative, or a
IllegalArgumentException
will be thrown when applying.
-
VELOCITY
public static final DefaultedRegistryReference<ParticleOption<Vector3d>> VELOCITY
This option will affect how most particles are moving.
-
-
Method Detail
-
registry
public static Registry<ParticleOption<?>> registry()
-
-