Package org.spout.vanilla.event.material.network

Examples of org.spout.vanilla.event.material.network.BlockActionEvent


  }

  @Override
  public void play(Player player, Point position, int note) {
    Block block = position.getWorld().getBlock(position);
    player.getNetwork().callProtocolEvent(new BlockActionEvent(block, VanillaMaterials.NOTEBLOCK, (byte) 0, (byte) note));
  }
View Full Code Here


   * @param block to play at
   * @param arg1 for the action
   * @param arg2 for the action
   */
  public static void playBlockAction(Block block, byte arg1, byte arg2) {
    BlockActionEvent event = new BlockActionEvent(block, block.getMaterial(), arg1, arg2);
    for (Player player : block.getChunk().getObservingPlayers()) {
      player.getNetwork().callProtocolEvent(event, player);
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.material.network.BlockActionEvent

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.