From 7ee580ff744f39ed751a6dd4f786da2f9b00c31b Mon Sep 17 00:00:00 2001 From: Josephine Rueckert Date: Tue, 5 Dec 2023 16:51:07 +0100 Subject: [PATCH] refactor: component field visibility public --- .../metalrenegades/world/SimplexHillsAndMountainsProvider.java | 2 +- .../terasology/metalrenegades/world/rivers/RiverProvider.java | 2 +- .../metalrenegades/world/rivers/RiverToElevationProvider.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/terasology/metalrenegades/world/SimplexHillsAndMountainsProvider.java b/src/main/java/org/terasology/metalrenegades/world/SimplexHillsAndMountainsProvider.java index 6220e3ea..dd57cb48 100644 --- a/src/main/java/org/terasology/metalrenegades/world/SimplexHillsAndMountainsProvider.java +++ b/src/main/java/org/terasology/metalrenegades/world/SimplexHillsAndMountainsProvider.java @@ -135,7 +135,7 @@ public void setConfiguration(Component configuration) { this.configuration = (SimplexHillsAndMountainsProviderConfiguration) configuration; } - private static class SimplexHillsAndMountainsProviderConfiguration implements Component { + public static class SimplexHillsAndMountainsProviderConfiguration implements Component { @Range(min = 0, max = 3f, increment = 0.01f, precision = 2, description = "Mountain Amplitude") public float mountainAmplitude = 1f; diff --git a/src/main/java/org/terasology/metalrenegades/world/rivers/RiverProvider.java b/src/main/java/org/terasology/metalrenegades/world/rivers/RiverProvider.java index 33dd4af1..87842970 100644 --- a/src/main/java/org/terasology/metalrenegades/world/rivers/RiverProvider.java +++ b/src/main/java/org/terasology/metalrenegades/world/rivers/RiverProvider.java @@ -70,7 +70,7 @@ public void setConfiguration(Component configuration) { setSeed(seed); } - private static class Configuration implements Component { + public static class Configuration implements Component { @Range(label = "River width", min = 1, max = 64f, increment = 1f, precision = 0, description = "Average river width (approximate)") public float riverWidth = 10; diff --git a/src/main/java/org/terasology/metalrenegades/world/rivers/RiverToElevationProvider.java b/src/main/java/org/terasology/metalrenegades/world/rivers/RiverToElevationProvider.java index 7adcb659..79c595ed 100644 --- a/src/main/java/org/terasology/metalrenegades/world/rivers/RiverToElevationProvider.java +++ b/src/main/java/org/terasology/metalrenegades/world/rivers/RiverToElevationProvider.java @@ -105,7 +105,7 @@ public void setConfiguration(Component configuration) { this.configuration = (Configuration) configuration; } - private static class Configuration implements Component { + public static class Configuration implements Component { @Override public void copyFrom(Configuration other) {