Package org.spout.vanilla.inventory.entity

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

Related Classes of org.spout.vanilla.inventory.entity.QuickbarInventory

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.