mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 07:24:21 +00:00
allow generating context with default radius and layer
This commit is contained in:
1 parent
6b1e55a6b5
commit
f6f9d6fa9b
1 file changed
+15
@@ -124,19 +124,34 @@ public interface NoiseSampler {
|
||||
default void generateContext(long seed, double x, double y, List<double[]> context, int contextLayer, int contextRadius) {
|
||||
//no-op
|
||||
}
|
||||
default void generateContext(long seed, double x, double y, List<double[]> context) {
|
||||
generateContext(seed, x, y, context, 0, getContextRadius());
|
||||
}
|
||||
|
||||
default void generateContext(long seed, int x, int y, List<double[]> context, int contextLayer, int contextRadius) {
|
||||
generateContext(seed, (double) x, y, context, contextLayer, contextRadius);
|
||||
}
|
||||
|
||||
default void generateContext(long seed, int x, int y, List<double[]> context) {
|
||||
generateContext(seed, (double) x, y, context, 0, getContextRadius());
|
||||
}
|
||||
|
||||
default void generateContext(long seed, double x, double y, double z, List<double[]> context, int contextLayer, int contextRadius) {
|
||||
//no-op
|
||||
}
|
||||
|
||||
default void generateContext(long seed, double x, double y, double z, List<double[]> context) {
|
||||
generateContext(seed, x, y, z, context, 0, getContextRadius());
|
||||
}
|
||||
|
||||
default void generateContext(long seed, int x, int y, int z, List<double[]> context, int contextLayer, int contextRadius) {
|
||||
generateContext(seed, (double) x, y, z, context, contextLayer, contextRadius);
|
||||
}
|
||||
|
||||
default void generateContext(long seed, int x, int y, int z, List<double[]> context) {
|
||||
generateContext(seed, (double) x, y, z, context, 0, getContextRadius());
|
||||
}
|
||||
|
||||
default int getContextRadius() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user