Search in sources :

Example 1 with PlayEffectMessage

use of net.glowstone.net.message.play.game.PlayEffectMessage in project Glowstone by GlowstoneMC.

the class GlowPlayer method playEffect.

@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));
}
Also used : PlayEffectMessage(net.glowstone.net.message.play.game.PlayEffectMessage)

Aggregations

PlayEffectMessage (net.glowstone.net.message.play.game.PlayEffectMessage)1