public static interface ParticleEffectBuilder.Material extends ParticleEffectBuilder
ParticleEffect.Material
.ParticleEffectBuilder.Colorable, ParticleEffectBuilder.Material, ParticleEffectBuilder.Note, ParticleEffectBuilder.Resizable
Modifier and Type | Method and Description |
---|---|
ParticleEffect.Material |
build()
Builds an instance of a ParticleEffect.
|
ParticleEffectBuilder.Material |
count(int count)
Sets the amount of particles of the particle effect.
|
ParticleEffectBuilder.Material |
item(ItemStack item)
Sets the item stack of the particle effect.
|
ParticleEffectBuilder.Material |
itemType(ItemType item)
Sets the item type of the particle effect.
|
ParticleEffectBuilder.Material |
motion(com.flowpowered.math.vector.Vector3d motion)
Sets the motion vector of the particle effect.
|
ParticleEffectBuilder.Material |
offset(com.flowpowered.math.vector.Vector3d offset)
Sets the offset vector of the particle effect.
|
ParticleEffectBuilder.Material item(ItemStack item)
The default item stack is retrieved from the note particle type,
by using ParticleType.Material.getDefaultItem()
.
item
- The item stackParticleEffectBuilder.Material itemType(ItemType item)
item
- The item typeParticleEffectBuilder.Material motion(com.flowpowered.math.vector.Vector3d motion)
ParticleEffectBuilder
The default motion vector is Vector3d.ZERO
.
motion
in interface ParticleEffectBuilder
motion
- The motion vectorParticleEffectBuilder.Material offset(com.flowpowered.math.vector.Vector3d offset)
ParticleEffectBuilder
The default offset vector is Vector3d.ZERO
.
offset
in interface ParticleEffectBuilder
offset
- The offset vectorParticleEffectBuilder.Material count(int count)
ParticleEffectBuilder
The default count is 1.
count
in interface ParticleEffectBuilder
count
- The count particlesParticleEffect.Material build()
ParticleEffectBuilder
build
in interface ParticleEffectBuilder