Examples of QuickbarInventory


Examples of org.spout.vanilla.inventory.entity.QuickbarInventory

  @Override
  public WorldState generateState() {
    List<Player> players = new ArrayList<Player>();
    for (Player player : agent.getEntity().getWorld().getNearbyPlayers(agent.getEntity(), sensorRadius)) {
      QuickbarInventory quickbar = PlayerUtil.getQuickbar(player);
      if (quickbar == null) {
        continue;
      }
      ItemStack selectedItem = quickbar.getSelectedItem();
      if (selectedItem != null && material.equals(selectedItem.getMaterial())) {
        players.add(player);
      }
    }
    boolean found = players.size() > 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.