diff options
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java b/src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java index 46636cf..7b12767 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/world/VoidGenerator.java @@ -1,3 +1,22 @@ +/* + * This file is part of Kenshins Hide and Seek + * + * Copyright (c) 2021 Tyler Murphy. + * + * Kenshins Hide and Seek free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * he Free Software Foundation version 3. + * + * Kenshins Hide and Seek is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + package net.tylermurphy.hideAndSeek.world; import java.util.Collections; @@ -7,11 +26,12 @@ import java.util.Random; import org.bukkit.World; import org.bukkit.generator.BlockPopulator; import org.bukkit.generator.ChunkGenerator; +import org.jetbrains.annotations.NotNull; public class VoidGenerator extends ChunkGenerator{ - public List<BlockPopulator> getDefaultPopulators(World world) { - return Collections.<BlockPopulator>emptyList(); + public @NotNull List<BlockPopulator> getDefaultPopulators(@NotNull World world) { + return Collections.emptyList(); } public boolean shouldGenerateNoise() { @@ -42,10 +62,11 @@ public class VoidGenerator extends ChunkGenerator{ return false; } - public boolean canSpawn(World world, int x, int z) { + public boolean canSpawn(@NotNull World world, int x, int z) { return true; } - public ChunkData generateChunkData(World world, Random random, int x, int z, BiomeGrid biome) { return createChunkData(world); } - + // Backwards compatibility + public @NotNull ChunkData generateChunkData(@NotNull World world, @NotNull Random random, int x, int z, @NotNull BiomeGrid biome) { return createChunkData(world); } + } |