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

Examples of org.spout.vanilla.protocol.msg.entity.EntityAnimationMessage


    event.getMessages().add(new PlayerBedMessage(event.getPlayer(), event.getBed(), getRepositionManager()));
  }

  @EventHandler
  public void onEntityAnimation(EntityAnimationEvent event) {
    event.getMessages().add(new EntityAnimationMessage(event.getEntity().getId(), (byte) event.getAnimation().getId()));
  }
View Full Code Here


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

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.EntityAnimationMessage

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.