Package org.mctourney.autoreferee

Examples of org.mctourney.autoreferee.AutoRefMatch.addEvent()


      ));
    }
    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
View Full Code Here

      }
      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

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.