From d80c920ac797bb3097fe68295ec91a472f935601 Mon Sep 17 00:00:00 2001 From: Nesaak <52047222+Nesaak@users.noreply.github.com> Date: Sun, 30 Aug 2020 16:35:32 -0400 Subject: [PATCH] Fix demo chunk generators --- src/main/java/fr/themode/demo/MainDemo.java | 2 +- src/main/java/fr/themode/demo/generator/ChunkGeneratorDemo.java | 2 +- src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/themode/demo/MainDemo.java b/src/main/java/fr/themode/demo/MainDemo.java index eea8578ec..7e0bb44f0 100644 --- a/src/main/java/fr/themode/demo/MainDemo.java +++ b/src/main/java/fr/themode/demo/MainDemo.java @@ -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) { diff --git a/src/main/java/fr/themode/demo/generator/ChunkGeneratorDemo.java b/src/main/java/fr/themode/demo/generator/ChunkGeneratorDemo.java index e8108be1c..fb748b88c 100644 --- a/src/main/java/fr/themode/demo/generator/ChunkGeneratorDemo.java +++ b/src/main/java/fr/themode/demo/generator/ChunkGeneratorDemo.java @@ -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) { diff --git a/src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java b/src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java index caaf4e7bd..23b8b41bf 100644 --- a/src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java +++ b/src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java @@ -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();