/** * Displays the given particle to all players. * * @param loc the location * @param particle the particle type * @param offsetX TODO: document this parameter * @param offsetY TODO: document this parameter * @param offsetZ TODO: document this parameter * @param speed TODO: document this parameter * @param amount the number of particles */ //@Override public void showParticle(Location loc, Effect particle, float offsetX, float offsetY, float offsetZ, float speed, int amount) { checkNotNull(loc); checkNotNull(particle); int radius; if (GlowParticle.isLongDistance(particle)) { radius = 48; } else { radius = 16; } showParticle(loc, particle, particle .getId(), 0, offsetX, offsetY, offsetZ, speed, amount, radius); }
@Override public void playEffect(Location loc, Effect effect, int data) { int id = effect.getId(); session.send(new PlayEffectMessage(id, loc.getBlockX(), loc.getBlockY(), loc .getBlockZ(), data, false)); }