{
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