Package org.spout.vanilla.protocol.msg.player

Examples of org.spout.vanilla.protocol.msg.player.PlayerCollectItemMessage


    event.getMessages().add(new SignMessage(sign.getOwner().getX(), sign.getOwner().getY(), sign.getOwner().getZ(), event.getLines(), getRepositionManager()));
  }

  @EventHandler
  public void onEntityCollectItem(EntityCollectItemEvent event) {
    event.getMessages().add(new PlayerCollectItemMessage(event.getCollected().getId(), event.getEntity().getId()));
  }
View Full Code Here


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

TOP

Related Classes of org.spout.vanilla.protocol.msg.player.PlayerCollectItemMessage

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.