Package org.spout.vanilla.protocol.msg.entity.effect

Examples of org.spout.vanilla.protocol.msg.entity.effect.EntityRemoveEffectMessage


    event.setSendType(Session.SendType.GAME_ONLY);
  }

  @EventHandler
  public void onEntityRemoveEffect(EntityRemoveEffectEvent event) {
    event.getMessages().add(new EntityRemoveEffectMessage(event.getEntity().getId(), (byte) event.getEffect().getId()));
  }
View Full Code Here


  @Override
  public EntityRemoveEffectMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readInt();
    byte effect = buffer.readByte();
    return new EntityRemoveEffectMessage(id, effect);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.effect.EntityRemoveEffectMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.