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);
}
}
Aggregations