Rename SettingsUtil.possiblyCensorCoordinate to maybeCensor
This commit is contained in:
parent
ef38051826
commit
9038310150
@ -70,9 +70,9 @@ public class GoalBlock implements Goal, IGoalRenderPos {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalBlock{x=%s,y=%s,z=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -64,9 +64,9 @@ public class GoalGetToBlock implements Goal, IGoalRenderPos {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalGetToBlock{x=%s,y=%s,z=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -59,9 +59,9 @@ public class GoalNear implements Goal, IGoalRenderPos {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalNear{x=%s, y=%s, z=%s, rangeSq=%d}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z),
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z),
|
||||
rangeSq
|
||||
);
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class GoalRunAway implements Goal {
|
||||
if (maintainY != null) {
|
||||
return String.format(
|
||||
"GoalRunAwayFromMaintainY y=%s, %s",
|
||||
SettingsUtil.possiblyCensorCoordinate(maintainY),
|
||||
SettingsUtil.maybeCensor(maintainY),
|
||||
Arrays.asList(from)
|
||||
);
|
||||
} else {
|
||||
|
@ -67,11 +67,11 @@ public class GoalStrictDirection implements Goal {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalStrictDirection{x=%s, y=%s, z=%s, dx=%s, dz=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z),
|
||||
SettingsUtil.possiblyCensorCoordinate(dx),
|
||||
SettingsUtil.possiblyCensorCoordinate(dz)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z),
|
||||
SettingsUtil.maybeCensor(dx),
|
||||
SettingsUtil.maybeCensor(dz)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -76,9 +76,9 @@ public class GoalTwoBlocks implements Goal, IGoalRenderPos {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalTwoBlocks{x=%s,y=%s,z=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -62,8 +62,8 @@ public class GoalXZ implements Goal {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalXZ{x=%s,z=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(z)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(z)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class GoalYLevel implements Goal, ActionCosts {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"GoalYLevel{y=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(level)
|
||||
SettingsUtil.maybeCensor(level)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -204,9 +204,9 @@ public final class BetterBlockPos extends BlockPos {
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"BetterBlockPos{x=%s,y=%s,z=%s}",
|
||||
SettingsUtil.possiblyCensorCoordinate(x),
|
||||
SettingsUtil.possiblyCensorCoordinate(y),
|
||||
SettingsUtil.possiblyCensorCoordinate(z)
|
||||
SettingsUtil.maybeCensor(x),
|
||||
SettingsUtil.maybeCensor(y),
|
||||
SettingsUtil.maybeCensor(z)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class SettingsUtil {
|
||||
return modified;
|
||||
}
|
||||
|
||||
public static String possiblyCensorCoordinate(int coord) {
|
||||
public static String maybeCensor(int coord) {
|
||||
if (BaritoneAPI.getSettings().censorCoordinates.value) {
|
||||
return "<censored>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user