Fixed structure features and code style
This commit is contained in:
parent
d431f2555c
commit
5a9365e2bb
153 changed files with 2304 additions and 2459 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,10 @@
|
|||
package ru.bclib.noise;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import ru.bclib.util.MHelper;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class VoronoiNoise {
|
||||
private static final Random RANDOM = new Random();
|
||||
final int seed;
|
||||
|
@ -12,7 +12,7 @@ public class VoronoiNoise {
|
|||
public VoronoiNoise() {
|
||||
this(0);
|
||||
}
|
||||
|
||||
|
||||
public VoronoiNoise(int seed) {
|
||||
this.seed = seed;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public class VoronoiNoise {
|
|||
h = (h ^ (h >> 13)) * 1274126177;
|
||||
return h ^ (h >> 16);
|
||||
}
|
||||
|
||||
|
||||
public double sample(double x, double y, double z) {
|
||||
int ix = MHelper.floor(x);
|
||||
int iy = MHelper.floor(y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue