Package org.mctourney.autoreferee.util

Examples of org.mctourney.autoreferee.util.BlockData


    if (event.getItem() == null)
    { return; }
    if (event.getItem().getItemStack() == null)
    { return; }

    BlockData item = new BlockData(event.getItem().getItemStack());

    AutoRefMatch match = plugin.getMatch(pl.getWorld());
    AutoRefPlayer apl = match == null ? null : match.getPlayer(pl);

    if (match == null || apl == null)
View Full Code Here


    Set<BlockData> goals = Sets.newHashSet();
    for (AutoRefTeam te : teams)
      goals.addAll(te.getObjectives());
    if (goals.isEmpty()) return; // not a block objectives match

    BlockData former = BlockData.fromBlock(block);
    BlockData after = new BlockData(event.getTo(), event.getData());

    String causeStr = "A " + StringUtils.capitalize(entity.getType().toString().toLowerCase());

    for (BlockData goal : goals)
    {
View Full Code Here

  }

  public GoalsInventorySnapshot(ItemStack item, Set<BlockData> goals)
  {
    super();
    BlockData target = BlockData.fromItemStack(item);
    for (BlockData goal : goals)
      if (goal.equals(target))
        this.put(goal, item.getAmount());
  }
View Full Code Here

TOP

Related Classes of org.mctourney.autoreferee.util.BlockData

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.