cn.nukkit.level.particle.InstantSpellParticle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.level.particle;
import cn.nukkit.math.Vector3;
import cn.nukkit.utils.BlockColor;
/**
* @author xtypr
* @since 2016/1/4
*/
public class InstantSpellParticle extends SpellParticle {
protected int data;
public InstantSpellParticle(Vector3 pos) {
this(pos, 0);
}
public InstantSpellParticle(Vector3 pos, int data) {
super(pos, data);
}
public InstantSpellParticle(Vector3 pos, BlockColor blockColor) {
//alpha is ignored
this(pos, blockColor.getRed(), blockColor.getGreen(), blockColor.getBlue());
}
public InstantSpellParticle(Vector3 pos, int r, int g, int b) {
//this 0x01 is the only difference between instant spell and non-instant one
super(pos, r, g, b, 0x01);
}
}