diff --git a/src/main/java/world/bentobox/caveblock/CaveBlock.java b/src/main/java/world/bentobox/caveblock/CaveBlock.java index 70dc5e9..452510b 100644 --- a/src/main/java/world/bentobox/caveblock/CaveBlock.java +++ b/src/main/java/world/bentobox/caveblock/CaveBlock.java @@ -24,7 +24,7 @@ public class CaveBlock extends GameModeAddon /** * Executes code when loading the addon. This is called before {@link #onEnable()}. This should preferably - * be used to setup configuration and worlds. + * be used to set up configuration and worlds. */ @Override public void onLoad() @@ -121,8 +121,8 @@ public class CaveBlock extends GameModeAddon /** * Make the worlds for this GameMode in this method. BentoBox will call it after onLoad() and before - * onEnable(). {@link #islandWorld} must be created and assigned, {@link #netherWorld} and {@link - * #endWorld} are optional and may be null. + * onEnable(). {@code islandWorld} must be created and assigned, {@code netherWorld} and {@code + * endWorld} are optional and may be null. */ @Override public void createWorlds() diff --git a/src/main/java/world/bentobox/caveblock/generators/Ore.java b/src/main/java/world/bentobox/caveblock/generators/Ore.java index 7f2b6c0..901bdc7 100644 --- a/src/main/java/world/bentobox/caveblock/generators/Ore.java +++ b/src/main/java/world/bentobox/caveblock/generators/Ore.java @@ -5,7 +5,6 @@ import org.bukkit.Material; /** * @author tastybento * @param minY minimum Y level this ore should appear - * @param minY maximum Y level this ore should appear * @param material Material * @param chance chance * @param blob maximum size of blob to generate diff --git a/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java b/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java index 7d4ecb9..b26e14b 100644 --- a/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java +++ b/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java @@ -16,14 +16,14 @@ import world.bentobox.caveblock.CaveBlock; /** - * This listener checks player movement. If enabled, players will be deny to get over world depth limit and + * This listener checks player movement. If enabled, players will be denied to get over world depth limit and * if alternative teleports is enabled, then falling in void also will be processed. */ public class CustomHeightLimitations implements Listener { /** * Simple constructor - * @param addon + * @param addon Addon */ public CustomHeightLimitations(CaveBlock addon) { @@ -86,7 +86,7 @@ public class CustomHeightLimitations implements Listener /** - * This method checks and returns if current player movement from location to to location should be + * This method checks and returns if current player movement from location to location should be * managed by current addon. * @param nextY NextY location for player. * @param player Player who makes movement @@ -120,10 +120,10 @@ public class CustomHeightLimitations implements Listener /** * CaveBlock addon */ - private CaveBlock addon; + private final CaveBlock addon; /** * This variable store world height. */ - private int worldHeight; + private final int worldHeight; }