Examples of GoalsInventorySnapshot


Examples of org.mctourney.autoreferee.listeners.GoalsInventorySnapshot

  public GoalsInventorySnapshot getCarrying()
  {
    Player p = getPlayer();
    AutoRefTeam t = getTeam();
    if (p == null || t == null)
    { carrying = new GoalsInventorySnapshot(); }
    else
    { carrying = new GoalsInventorySnapshot(p.getInventory(), t.getObjectives()); }

    return carrying;
  }
View Full Code Here

Examples of org.mctourney.autoreferee.listeners.GoalsInventorySnapshot

    Player player = getPlayer();
    if (player == null) return;

    if (getTeam() != null)
    {
      GoalsInventorySnapshot oldCarrying = carrying;
      carrying = null; // invalidate old value
      carrying = getCarrying();

      if (oldCarrying == null)
      { return; }

      MapDifference<BlockData, Integer> diff = oldCarrying.getDiff(carrying);

      if (!diff.areEqual())
      {
        for (BlockGoal goal : getTeam().getTeamGoals(BlockGoal.class))
          if (goal.getItemStatus() == AutoRefGoal.ItemStatus.NONE && carrying.containsKey(goal.getItem()))
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.