Merge pull request #42 from Nesaak/master

Fix demo chunk generators
This commit is contained in:
TheMode 2020-08-30 22:56:32 +02:00 committed by GitHub
commit 5cdc23b088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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();