use of com.microsoft.Malmo.Schemas.NamedPoint in project malmo by Microsoft.
the class ObservationFromDistanceImplementation method writeObservationsToJSON.
@Override
public void writeObservationsToJSON(JsonObject json, MissionInit missionInit) {
for (NamedPoint marker : odparams.getMarker()) {
EntityPlayerSP player = Minecraft.getMinecraft().player;
json.addProperty("distanceFrom" + makeSafe(marker.getName()), PositionHelper.calcDistanceFromPlayerToPosition(player, marker));
}
}
Aggregations