mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-11 01:41:51 +01:00
Updated since tags
This commit is contained in:
parent
2b9bdf5cfe
commit
e5170fc4b5
@ -90,7 +90,7 @@ public class Settings implements DataObject {
|
||||
@ConfigComment("It can be spammy if there are a lot of superflat chunks to regenerate.")
|
||||
@ConfigComment("However, as superflat chunks regeneration can be performance-intensive, it is recommended to keep")
|
||||
@ConfigComment("this setting set to true, as it will help you know if there are regenerations taking place.")
|
||||
@ConfigEntry(path = "logs.clean-super-flat-chunks", since = "1.1.1")
|
||||
@ConfigEntry(path = "logs.clean-super-flat-chunks", since = "1.2.0")
|
||||
private boolean logCleanSuperFlatChunks = true;
|
||||
|
||||
/*
|
||||
|
@ -63,7 +63,7 @@ public abstract class GameModeAddon extends Addon {
|
||||
* Checks if world is governed by this game mode
|
||||
* @param world - world to check
|
||||
* @return true if in a world or false if not
|
||||
* @since 1.1.1
|
||||
* @since 1.2.0
|
||||
*/
|
||||
public boolean inWorld(World world) {
|
||||
if (world == null) {
|
||||
@ -118,7 +118,7 @@ public abstract class GameModeAddon extends Addon {
|
||||
* @param worldName - name of world that this applies to
|
||||
* @param id - id if any
|
||||
* @return Chunk generator
|
||||
* @since 1.1.1
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@NonNull
|
||||
public abstract ChunkGenerator getDefaultWorldGenerator(String worldName, String id);
|
||||
|
@ -358,10 +358,10 @@ public class AddonsManager {
|
||||
* @param worldName - name of world
|
||||
* @param id - specific generator id
|
||||
* @return ChunkGenerator or null if none found
|
||||
* @since 1.1.1
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@Nullable
|
||||
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
|
||||
return getGameModeAddons().stream().filter(gm -> gm.inWorld(Bukkit.getWorld(worldName))).findFirst().map(gm -> gm.getDefaultWorldGenerator(worldName, id)).orElse(null);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user