Search in sources :

Example 1 with NmsAddedIn

use of me.libraryaddict.disguise.utilities.reflection.annotations.NmsAddedIn in project LibsDisguises by libraryaddict.

the class AreaEffectCloudWatcher method getParticle.

@NmsAddedIn(NmsVersion.v1_13)
public WrappedParticle getParticle() {
    if (NmsVersion.v1_13.isSupported()) {
        return getData(MetaIndex.AREA_EFFECT_PARTICLE);
    } else {
        // Item crack, block crack, block dust, falling dust
        int particleId = getData(MetaIndex.AREA_EFFECT_PARTICLE_OLD);
        Particle particle = Particle.values()[particleId];
        return WrappedParticle.create(particle, null);
    }
}
Also used : Particle(org.bukkit.Particle) WrappedParticle(com.comphenix.protocol.wrappers.WrappedParticle) NmsAddedIn(me.libraryaddict.disguise.utilities.reflection.annotations.NmsAddedIn)

Aggregations

WrappedParticle (com.comphenix.protocol.wrappers.WrappedParticle)1 NmsAddedIn (me.libraryaddict.disguise.utilities.reflection.annotations.NmsAddedIn)1 Particle (org.bukkit.Particle)1