mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
commit
5cdc23b088
@ -48,7 +48,7 @@ public class MainDemo {
|
||||
minecraftServer.start("localhost", 25565);
|
||||
}
|
||||
|
||||
private static class GeneratorDemo extends ChunkGenerator {
|
||||
private static class GeneratorDemo implements ChunkGenerator {
|
||||
|
||||
@Override
|
||||
public void generateChunkData(ChunkBatch batch, int chunkX, int chunkZ) {
|
||||
|
@ -11,7 +11,7 @@ import net.minestom.server.instance.block.Block;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ChunkGeneratorDemo extends ChunkGenerator {
|
||||
public class ChunkGeneratorDemo implements ChunkGenerator {
|
||||
|
||||
@Override
|
||||
public void generateChunkData(ChunkBatch batch, int chunkX, int chunkZ) {
|
||||
|
@ -17,7 +17,7 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class NoiseTestGenerator extends ChunkGenerator {
|
||||
public class NoiseTestGenerator implements ChunkGenerator {
|
||||
|
||||
private Random random = new Random();
|
||||
private JNoise jNoise = JNoise.newBuilder().perlin().setInterpolation(InterpolationType.LINEAR).setSeed(random.nextInt()).setFrequency(0.4).build();
|
||||
|
Loading…
Reference in New Issue
Block a user