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

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


    event.getMessages().add(new BlockBreakAnimationMessage(event.getEntity().getId(), (int) event.getPoint().getX(), (int) event.getPoint().getY(), (int) event.getPoint().getZ(), event.getLevel(), getRepositionManager()));
  }

  @EventHandler
  public void onEntityEffect(EntityEffectEvent event) {
    event.getMessages().add(new EntityEffectMessage(event.getEntity().getId(), (byte) event.getEffect().getType().getId(), (byte) 0, (short) (event.getEffect().getDuration() * 20)));
  }
 
View Full Code Here


  public EntityEffectMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readInt();
    byte effect = buffer.readByte();
    byte amplifier = buffer.readByte();
    short duration = buffer.readShort();
    return new EntityEffectMessage(id, effect, amplifier, duration);
  }
View Full Code Here

TOP

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

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.