Package org.mctourney.autoreferee.AutoRefMatch

Examples of org.mctourney.autoreferee.AutoRefMatch.TranscriptEvent


    for (BlockData b : apl.getTeam().getObjectives())
    {
      if (b.equals(item))
      {
        GoalsInventorySnapshot pickupItems = new GoalsInventorySnapshot(event.getItem().getItemStack(), b);
        match.addEvent(new TranscriptEvent(match,
            TranscriptEvent.EventType.OBJECTIVE_DETAIL, String.format(
              // {player} has picked up {snap} (@ {loc})
              "%s has picked up %s (@ %s)", apl.getDisplayName(),
              pickupItems, LocationUtil.toBlockCoords(pl.getLocation())),
            pl.getLocation(), apl, b
View Full Code Here


    if (snap.isEmpty()) return;

    if (currentResponsibleTntPlayer != null)
    {
      // TranscriptEvent.ObjectiveDetailType.BREAK_PLAYER
      match.addEvent(new TranscriptEvent(
          match,
          TranscriptEvent.EventType.OBJECTIVE_DETAIL,
          // {entity} has exploded {snap} block(s) in {area} (@ {loc})
          String.format("%s has exploded %s block(s) in %s (@ %s)", causeStr, snap,
              getLocationDescription(loc, match), LocationUtil.toBlockCoords(loc)),
          loc, unpack(snap, currentResponsibleTntPlayer)
      ));
    }
    else
    {
      // TranscriptEvent.ObjectiveDetailType.BREAK_NONPLAYER
      match.addEvent(new TranscriptEvent(
          match,
          TranscriptEvent.EventType.OBJECTIVE_DETAIL,
          // {entity} has exploded {snap} block(s) in {area} (@ {loc})
          String.format("%s has exploded %s block(s) in %s (@ %s)", causeStr, snap,
              getLocationDescription(loc, match), LocationUtil.toBlockCoords(loc)),
View Full Code Here

    {
      if (goal.equals(former))
      {
        // process break
        // TranscriptEvent.ObjectiveDetailType.BREAK_NONPLAYER
        match.addEvent(new TranscriptEvent(match,
            TranscriptEvent.EventType.OBJECTIVE_DETAIL, String.format(
            // {entity} has broken a {goal} in {area} (@ {loc})
            "%s has broken a %s in %s (@ %s)", causeStr, goal,
            getLocationDescription(loc, match),
            LocationUtil.toBlockCoords(loc)), entity.getLocation(), goal
        ));
      }
      else if (goal.equals(after))
      {
        // process place
        // TranscriptEvent.ObjectiveDetailType.PLACE
        match.addEvent(new TranscriptEvent(match,
            TranscriptEvent.EventType.OBJECTIVE_DETAIL, String.format(
            // {entity} has placed a {goal} in {area} (@ {loc})
            "%s has placed a %s in %s (@ %s)", causeStr, goal,
            getLocationDescription(loc, match),
            LocationUtil.toBlockCoords(loc)), entity.getLocation(), goal
View Full Code Here

    if (goals.isEmpty())
    { return; }

    GoalsInventorySnapshot snap = new GoalsInventorySnapshot(event.getEntity().getItemStack(), goals);

    match.addEvent(new TranscriptEvent(match,
        TranscriptEvent.EventType.OBJECTIVE_DETAIL, String.format(
          // "A {snap} item entity has EXPIRED in {area} (@ {loc})"
          "A %s item entity has EXPIRED in %s (@ %s)",
          snap, getLocationDescription(loc, match), LocationUtil.toBlockCoords(loc)
        ), loc, unpack(snap)
View Full Code Here

      GoalsInventorySnapshot snap = new GoalsInventorySnapshot(((InventoryHolder) state).getInventory(), goals);
      if (snap.isEmpty()) return;
      Location loc = block.getLocation();

      // TranscriptEvent.ObjectiveDetailType.CONTAINER_DEATH
      match.addEvent(new TranscriptEvent(match, TranscriptEvent.EventType.OBJECTIVE_DETAIL,
          // {entity} has {action}ed a {container}, spilling {snap} in {area} (@ {loc})
          String.format(
              "%s has %s a %s, spilling %s in %s (@ %s)", causeStr, actionStr,
              ChatColor.GOLD
                  + StringUtils.capitalize(block.getType().toString()
View Full Code Here

TOP

Related Classes of org.mctourney.autoreferee.AutoRefMatch.TranscriptEvent

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.