diff --git a/paper-api/src/main/java/org/bukkit/Achievement.java b/paper-api/src/main/java/org/bukkit/Achievement.java
index aa4e98655c..fc914d793c 100644
--- a/paper-api/src/main/java/org/bukkit/Achievement.java
+++ b/paper-api/src/main/java/org/bukkit/Achievement.java
@@ -40,7 +40,8 @@ public enum Achievement {
;
/**
- * The offset used to distinguish Achievements and Statistics
+ * The offset used to distinguish Achievements and Statistics.
+ *
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java
index 8a4399357f..e6b9f0e67b 100644
--- a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java
+++ b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java
@@ -8,8 +8,11 @@ package org.bukkit;
public interface BlockChangeDelegate {
/**
- * Set a block type at the specified coordinates without doing all world updates and notifications.
- * It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.
+ * Set a block type at the specified coordinates without doing all world
+ * updates and notifications.
+ *
+ * It is safe to have this call World.setTypeId, but it may be slower than
+ * World.setRawTypeId.
*
* @param x X coordinate
* @param y Y coordinate
@@ -22,8 +25,11 @@ public interface BlockChangeDelegate {
public boolean setRawTypeId(int x, int y, int z, int typeId);
/**
- * Set a block type and data at the specified coordinates without doing all world updates and notifications.
- * It is safe to have this call World.setTypeId, but it may be slower than World.setRawTypeId.
+ * Set a block type and data at the specified coordinates without doing
+ * all world updates and notifications.
+ *
+ * It is safe to have this call World.setTypeId, but it may be slower than
+ * World.setRawTypeId.
*
* @param x X coordinate
* @param y Y coordinate
@@ -38,6 +44,7 @@ public interface BlockChangeDelegate {
/**
* Set a block type at the specified coordinates.
+ *
* This method cannot call World.setRawTypeId, a full update is needed.
*
* @param x X coordinate
@@ -52,6 +59,7 @@ public interface BlockChangeDelegate {
/**
* Set a block type and data at the specified coordinates.
+ *
* This method cannot call World.setRawTypeId, a full update is needed.
*
* @param x X coordinate
diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java
index 7fd85e79d7..1014274e59 100644
--- a/paper-api/src/main/java/org/bukkit/Bukkit.java
+++ b/paper-api/src/main/java/org/bukkit/Bukkit.java
@@ -574,7 +574,8 @@ public final class Bukkit {
}
/**
- * @see Server#createInventory(InventoryHolder owner, int size, String title)
+ * @see Server#createInventory(InventoryHolder owner, int size, String
+ * title)
*/
public static Inventory createInventory(InventoryHolder owner, int size, String title) {
return server.createInventory(owner, size, title);
diff --git a/paper-api/src/main/java/org/bukkit/ChatColor.java b/paper-api/src/main/java/org/bukkit/ChatColor.java
index 6082c624cc..0bbc9fac67 100644
--- a/paper-api/src/main/java/org/bukkit/ChatColor.java
+++ b/paper-api/src/main/java/org/bukkit/ChatColor.java
@@ -101,8 +101,8 @@ public enum ChatColor {
RESET('r', 0x15);
/**
- * The special character which prefixes all chat colour codes. Use this if you need to dynamically
- * convert colour codes from your custom format.
+ * The special character which prefixes all chat colour codes. Use this if
+ * you need to dynamically convert colour codes from your custom format.
*/
public static final char COLOR_CHAR = '\u00A7';
private static final Pattern STRIP_COLOR_PATTERN = Pattern.compile("(?i)" + String.valueOf(COLOR_CHAR) + "[0-9A-FK-OR]");
@@ -157,7 +157,8 @@ public enum ChatColor {
* Gets the color represented by the specified color code
*
* @param code Code to check
- * @return Associative {@link org.bukkit.ChatColor} with the given code, or null if it doesn't exist
+ * @return Associative {@link org.bukkit.ChatColor} with the given code,
+ * or null if it doesn't exist
*/
public static ChatColor getByChar(char code) {
return BY_CHAR.get(code);
@@ -167,7 +168,8 @@ public enum ChatColor {
* Gets the color represented by the specified color code
*
* @param code Code to check
- * @return Associative {@link org.bukkit.ChatColor} with the given code, or null if it doesn't exist
+ * @return Associative {@link org.bukkit.ChatColor} with the given code,
+ * or null if it doesn't exist
*/
public static ChatColor getByChar(String code) {
Validate.notNull(code, "Code cannot be null");
@@ -191,9 +193,10 @@ public enum ChatColor {
}
/**
- * Translates a string using an alternate color code character into a string that uses the internal
- * ChatColor.COLOR_CODE color code character. The alternate color code character will only be replaced
- * if it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.
+ * Translates a string using an alternate color code character into a
+ * string that uses the internal ChatColor.COLOR_CODE color code
+ * character. The alternate color code character will only be replaced if
+ * it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.
*
* @param altColorChar The alternate color code character to replace. Ex: &
* @param textToTranslate Text containing the alternate color code character.
diff --git a/paper-api/src/main/java/org/bukkit/Chunk.java b/paper-api/src/main/java/org/bukkit/Chunk.java
index 7765139219..0510151768 100644
--- a/paper-api/src/main/java/org/bukkit/Chunk.java
+++ b/paper-api/src/main/java/org/bukkit/Chunk.java
@@ -50,9 +50,12 @@ public interface Chunk {
/**
* Capture thread-safe read-only snapshot of chunk data
*
- * @param includeMaxblocky - if true, snapshot includes per-coordinate maximum Y values
- * @param includeBiome - if true, snapshot includes per-coordinate biome type
- * @param includeBiomeTempRain - if true, snapshot includes per-coordinate raw biome temperature and rainfall
+ * @param includeMaxblocky - if true, snapshot includes per-coordinate
+ * maximum Y values
+ * @param includeBiome - if true, snapshot includes per-coordinate biome
+ * type
+ * @param includeBiomeTempRain - if true, snapshot includes per-coordinate
+ * raw biome temperature and rainfall
* @return ChunkSnapshot
*/
ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain);
@@ -81,7 +84,8 @@ public interface Chunk {
/**
* Loads the chunk.
*
- * @param generate Whether or not to generate a chunk if it doesn't already exist
+ * @param generate Whether or not to generate a chunk if it doesn't
+ * already exist
* @return true if the chunk has loaded successfully, otherwise false
*/
boolean load(boolean generate);
@@ -97,7 +101,8 @@ public interface Chunk {
* Unloads and optionally saves the Chunk
*
* @param save Controls whether the chunk is saved
- * @param safe Controls whether to unload the chunk when players are nearby
+ * @param safe Controls whether to unload the chunk when players are
+ * nearby
* @return true if the chunk has unloaded successfully, otherwise false
*/
boolean unload(boolean save, boolean safe);
diff --git a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java
index 289df00f74..83fccc8515 100644
--- a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java
+++ b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java
@@ -3,8 +3,10 @@ package org.bukkit;
import org.bukkit.block.Biome;
/**
- * Represents a static, thread-safe snapshot of chunk of blocks
- * Purpose is to allow clean, efficient copy of a chunk data to be made, and then handed off for processing in another thread (e.g. map rendering)
+ * Represents a static, thread-safe snapshot of chunk of blocks.
+ *
+ * Purpose is to allow clean, efficient copy of a chunk data to be made, and
+ * then handed off for processing in another thread (e.g. map rendering)
*/
public interface ChunkSnapshot {
@@ -64,7 +66,8 @@ public interface ChunkSnapshot {
int getBlockSkyLight(int x, int y, int z);
/**
- * Get light level emitted by block at corresponding coordinate in the chunk
+ * Get light level emitted by block at corresponding coordinate in the
+ * chunk
*
* @param x 0-15
* @param y 0-127
diff --git a/paper-api/src/main/java/org/bukkit/CoalType.java b/paper-api/src/main/java/org/bukkit/CoalType.java
index 9eb0231cd9..4fcccd21f9 100644
--- a/paper-api/src/main/java/org/bukkit/CoalType.java
+++ b/paper-api/src/main/java/org/bukkit/CoalType.java
@@ -32,10 +32,9 @@ public enum CoalType {
/**
* Gets the type of coal with the given data value
*
- * @param data
- * Data value to fetch
+ * @param data Data value to fetch
* @return The {@link CoalType} representing the given value, or null if
- * it doesn't exist
+ * it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/Color.java b/paper-api/src/main/java/org/bukkit/Color.java
index b544af20ce..76ff651f59 100644
--- a/paper-api/src/main/java/org/bukkit/Color.java
+++ b/paper-api/src/main/java/org/bukkit/Color.java
@@ -9,8 +9,9 @@ import org.bukkit.configuration.serialization.SerializableAs;
import com.google.common.collect.ImmutableMap;
/**
- * A container for a color palette. This class is immutable; the set methods return a new color.
- * The color names listed as fields are HTML4 standards, but subject to change.
+ * A container for a color palette. This class is immutable; the set methods
+ * return a new color. The color names listed as fields are HTML4 standards,
+ * but subject to change.
*/
@SerializableAs("Color")
public final class Color implements ConfigurationSerializable {
@@ -132,11 +133,13 @@ public final class Color implements ConfigurationSerializable {
}
/**
- * Creates a new color object from an integer that contains the red, green, and blue bytes in the lowest order 24 bits.
+ * Creates a new color object from an integer that contains the red,
+ * green, and blue bytes in the lowest order 24 bits.
*
* @param rgb the integer storing the red, green, and blue values
* @return a new color object for specified values
- * @throws IllegalArgumentException if any data is in the highest order 8 bits
+ * @throws IllegalArgumentException if any data is in the highest order 8
+ * bits
*/
public static Color fromRGB(int rgb) throws IllegalArgumentException {
Validate.isTrue((rgb >> 24) == 0, "Extrenuous data in: ", rgb);
@@ -144,11 +147,13 @@ public final class Color implements ConfigurationSerializable {
}
/**
- * Creates a new color object from an integer that contains the blue, green, and red bytes in the lowest order 24 bits.
+ * Creates a new color object from an integer that contains the blue,
+ * green, and red bytes in the lowest order 24 bits.
*
* @param bgr the integer storing the blue, green, and red values
* @return a new color object for specified values
- * @throws IllegalArgumentException if any data is in the highest order 8 bits
+ * @throws IllegalArgumentException if any data is in the highest order 8
+ * bits
*/
public static Color fromBGR(int bgr) throws IllegalArgumentException {
Validate.isTrue((bgr >> 24) == 0, "Extrenuous data in: ", bgr);
@@ -239,8 +244,8 @@ public final class Color implements ConfigurationSerializable {
}
/**
- * Creates a new color with its RGB components changed as if it was dyed with the colors passed in, replicating
- * vanilla workbench dyeing
+ * Creates a new color with its RGB components changed as if it was dyed
+ * with the colors passed in, replicating vanilla workbench dyeing
*
* @param colors The DyeColors to dye with
* @return A new color with the changed rgb components
@@ -258,8 +263,8 @@ public final class Color implements ConfigurationSerializable {
}
/**
- * Creates a new color with its RGB components changed as if it was dyed with the colors passed in, replicating
- * vanilla workbench dyeing
+ * Creates a new color with its RGB components changed as if it was dyed
+ * with the colors passed in, replicating vanilla workbench dyeing
*
* @param colors The colors to dye with
* @return A new color with the changed rgb components
diff --git a/paper-api/src/main/java/org/bukkit/CropState.java b/paper-api/src/main/java/org/bukkit/CropState.java
index 8f2e62b845..ef0faf93eb 100644
--- a/paper-api/src/main/java/org/bukkit/CropState.java
+++ b/paper-api/src/main/java/org/bukkit/CropState.java
@@ -63,10 +63,9 @@ public enum CropState {
/**
* Gets the CropState with the given data value
*
- * @param data
- * Data value to fetch
+ * @param data Data value to fetch
* @return The {@link CropState} representing the given value, or null if
- * it doesn't exist
+ * it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/Difficulty.java b/paper-api/src/main/java/org/bukkit/Difficulty.java
index 3463f981b3..a8a5a78588 100644
--- a/paper-api/src/main/java/org/bukkit/Difficulty.java
+++ b/paper-api/src/main/java/org/bukkit/Difficulty.java
@@ -9,22 +9,27 @@ import com.google.common.collect.Maps;
*/
public enum Difficulty {
/**
- * Players regain health over time, hostile mobs don't spawn, the hunger bar does not deplete.
+ * Players regain health over time, hostile mobs don't spawn, the hunger
+ * bar does not deplete.
*/
PEACEFUL(0),
/**
- * Hostile mobs spawn, enemies deal less damage than on normal difficulty, the hunger bar does deplete and starving deals up to 5 hearts of damage. (Default value)
+ * Hostile mobs spawn, enemies deal less damage than on normal difficulty,
+ * the hunger bar does deplete and starving deals up to 5 hearts of
+ * damage. (Default value)
*/
EASY(1),
/**
- * Hostile mobs spawn, enemies deal normal amounts of damage, the hunger bar does deplete and starving deals up to 9.5 hearts of damage.
+ * Hostile mobs spawn, enemies deal normal amounts of damage, the hunger
+ * bar does deplete and starving deals up to 9.5 hearts of damage.
*/
NORMAL(2),
/**
- * Hostile mobs spawn, enemies deal greater damage than on normal difficulty, the hunger bar does deplete and starving can kill players.
+ * Hostile mobs spawn, enemies deal greater damage than on normal
+ * difficulty, the hunger bar does deplete and starving can kill players.
*/
HARD(3);
@@ -50,7 +55,8 @@ public enum Difficulty {
* Gets the Difficulty represented by the specified value
*
* @param value Value to check
- * @return Associative {@link Difficulty} with the given value, or null if it doesn't exist
+ * @return Associative {@link Difficulty} with the given value, or null if
+ * it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/DyeColor.java b/paper-api/src/main/java/org/bukkit/DyeColor.java
index d968a65de0..2c2f3ca6e9 100644
--- a/paper-api/src/main/java/org/bukkit/DyeColor.java
+++ b/paper-api/src/main/java/org/bukkit/DyeColor.java
@@ -94,7 +94,8 @@ public enum DyeColor {
* Gets the associated (wool) data value representing this color.
*
* @return A byte containing the (wool) data value of this color
- * @deprecated The name is misleading. It would imply {@link Material#INK_SACK} but uses {@link Material#WOOL}
+ * @deprecated The name is misleading. It would imply {@link
+ * Material#INK_SACK} but uses {@link Material#WOOL}
* @see #getWoolData()
* @see #getDyeData()
*/
@@ -149,8 +150,10 @@ public enum DyeColor {
* Gets the DyeColor with the given (wool) data value.
*
* @param data (wool) data value to fetch
- * @return The {@link DyeColor} representing the given value, or null if it doesn't exist
- * @deprecated The name is misleading. It would imply {@link Material#INK_SACK} but uses {@link Material#WOOL}
+ * @return The {@link DyeColor} representing the given value, or null if
+ * it doesn't exist
+ * @deprecated The name is misleading. It would imply {@link
+ * Material#INK_SACK} but uses {@link Material#WOOL}
* @see #getByDyeData(byte)
* @see #getByWoolData(byte)
*/
@@ -163,7 +166,8 @@ public enum DyeColor {
* Gets the DyeColor with the given wool data value.
*
* @param data Wool data value to fetch
- * @return The {@link DyeColor} representing the given value, or null if it doesn't exist
+ * @return The {@link DyeColor} representing the given value, or null if
+ * it doesn't exist
* @see #getByDyeData(byte)
* @deprecated Magic value
*/
@@ -180,7 +184,8 @@ public enum DyeColor {
* Gets the DyeColor with the given dye data value.
*
* @param data Dye data value to fetch
- * @return The {@link DyeColor} representing the given value, or null if it doesn't exist
+ * @return The {@link DyeColor} representing the given value, or null if
+ * it doesn't exist
* @see #getByWoolData(byte)
* @deprecated Magic value
*/
@@ -197,7 +202,8 @@ public enum DyeColor {
* Gets the DyeColor with the given color value
*
* @param color Color value to get the dye by
- * @return The {@link DyeColor} representing the given value, or null if it doesn't exist
+ * @return The {@link DyeColor} representing the given value, or null if
+ * it doesn't exist
*/
public static DyeColor getByColor(final Color color) {
return BY_COLOR.get(color);
@@ -207,7 +213,8 @@ public enum DyeColor {
* Gets the DyeColor with the given firework color value
*
* @param color Color value to get dye by
- * @return The {@link DyeColor} representing the given value, or null if it doesn't exist
+ * @return The {@link DyeColor} representing the given value, or null if
+ * it doesn't exist
*/
public static DyeColor getByFireworkColor(final Color color) {
return BY_FIREWORK.get(color);
diff --git a/paper-api/src/main/java/org/bukkit/Effect.java b/paper-api/src/main/java/org/bukkit/Effect.java
index 708bee922f..2474a2d958 100644
--- a/paper-api/src/main/java/org/bukkit/Effect.java
+++ b/paper-api/src/main/java/org/bukkit/Effect.java
@@ -68,7 +68,8 @@ public enum Effect {
*/
STEP_SOUND(2001, Type.SOUND, Material.class),
/**
- * Visual effect of a splash potion breaking. Needs potion data value as additional info.
+ * Visual effect of a splash potion breaking. Needs potion data value as
+ * additional info.
*/
POTION_BREAK(2002, Type.VISUAL, Potion.class),
/**
@@ -114,7 +115,8 @@ public enum Effect {
}
/**
- * @return The class which represents data for this effect, or null if none
+ * @return The class which represents data for this effect, or null if
+ * none
*/
public Class> getData() {
return this.data;
diff --git a/paper-api/src/main/java/org/bukkit/EntityEffect.java b/paper-api/src/main/java/org/bukkit/EntityEffect.java
index ad2c7423c8..f2481bad90 100644
--- a/paper-api/src/main/java/org/bukkit/EntityEffect.java
+++ b/paper-api/src/main/java/org/bukkit/EntityEffect.java
@@ -69,7 +69,8 @@ public enum EntityEffect {
* Gets the EntityEffect with the given data value
*
* @param data Data value to fetch
- * @return The {@link EntityEffect} representing the given value, or null if it doesn't exist
+ * @return The {@link EntityEffect} representing the given value, or null
+ * if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/FireworkEffect.java b/paper-api/src/main/java/org/bukkit/FireworkEffect.java
index ac89ba116d..6f2d096806 100644
--- a/paper-api/src/main/java/org/bukkit/FireworkEffect.java
+++ b/paper-api/src/main/java/org/bukkit/FireworkEffect.java
@@ -142,7 +142,8 @@ public final class FireworkEffect implements ConfigurationSerializable {
* @param colors The colors to add
* @return This object, for chaining
* @throws IllegalArgumentException If colors is null
- * @throws IllegalArgumentException If any color is null (may be thrown after changes have occurred)
+ * @throws IllegalArgumentException If any color is null (may be
+ * thrown after changes have occurred)
*/
public Builder withColor(Color...colors) throws IllegalArgumentException {
Validate.notNull(colors, "Cannot have null colors");
@@ -162,10 +163,12 @@ public final class FireworkEffect implements ConfigurationSerializable {
/**
* Add several primary colors to the firework effect.
*
- * @param colors An iterable object whose iterator yields the desired colors
+ * @param colors An iterable object whose iterator yields the desired
+ * colors
* @return This object, for chaining
* @throws IllegalArgumentException If colors is null
- * @throws IllegalArgumentException If any color is null (may be thrown after changes have occurred)
+ * @throws IllegalArgumentException If any color is null (may be
+ * thrown after changes have occurred)
*/
public Builder withColor(Iterable> colors) throws IllegalArgumentException {
Validate.notNull(colors, "Cannot have null colors");
@@ -187,7 +190,8 @@ public final class FireworkEffect implements ConfigurationSerializable {
* @param color The color to add
* @return This object, for chaining
* @throws IllegalArgumentException If colors is null
- * @throws IllegalArgumentException If any color is null (may be thrown after changes have occurred)
+ * @throws IllegalArgumentException If any color is null (may be
+ * thrown after changes have occurred)
*/
public Builder withFade(Color color) throws IllegalArgumentException {
Validate.notNull(color, "Cannot have null color");
@@ -207,7 +211,8 @@ public final class FireworkEffect implements ConfigurationSerializable {
* @param colors The colors to add
* @return This object, for chaining
* @throws IllegalArgumentException If colors is null
- * @throws IllegalArgumentException If any color is null (may be thrown after changes have occurred)
+ * @throws IllegalArgumentException If any color is null (may be
+ * thrown after changes have occurred)
*/
public Builder withFade(Color...colors) throws IllegalArgumentException {
Validate.notNull(colors, "Cannot have null colors");
@@ -231,10 +236,12 @@ public final class FireworkEffect implements ConfigurationSerializable {
/**
* Add several fade colors to the firework effect.
*
- * @param colors An iterable object whose iterator yields the desired colors
+ * @param colors An iterable object whose iterator yields the desired
+ * colors
* @return This object, for chaining
* @throws IllegalArgumentException If colors is null
- * @throws IllegalArgumentException If any color is null (may be thrown after changes have occurred)
+ * @throws IllegalArgumentException If any color is null (may be
+ * thrown after changes have occurred)
*/
public Builder withFade(Iterable> colors) throws IllegalArgumentException {
Validate.notNull(colors, "Cannot have null colors");
@@ -255,7 +262,9 @@ public final class FireworkEffect implements ConfigurationSerializable {
}
/**
- * Create a {@link FireworkEffect} from the current contents of this builder.
+ * Create a {@link FireworkEffect} from the current contents of this
+ * builder.
+ *
* To successfully build, you must have specified at least one color.
*
* @return The representative firework effect
diff --git a/paper-api/src/main/java/org/bukkit/GameMode.java b/paper-api/src/main/java/org/bukkit/GameMode.java
index 5b83d88fa2..47b2d90bda 100644
--- a/paper-api/src/main/java/org/bukkit/GameMode.java
+++ b/paper-api/src/main/java/org/bukkit/GameMode.java
@@ -7,11 +7,13 @@ import org.bukkit.entity.HumanEntity;
import com.google.common.collect.Maps;
/**
- * Represents the various type of game modes that {@link HumanEntity}s may have
+ * Represents the various type of game modes that {@link HumanEntity}s may
+ * have
*/
public enum GameMode {
/**
- * Creative mode may fly, build instantly, become invulnerable and create free items.
+ * Creative mode may fly, build instantly, become invulnerable and create
+ * free items.
*/
CREATIVE(1),
@@ -47,7 +49,8 @@ public enum GameMode {
* Gets the GameMode represented by the specified value
*
* @param value Value to check
- * @return Associative {@link GameMode} with the given value, or null if it doesn't exist
+ * @return Associative {@link GameMode} with the given value, or null if
+ * it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/GrassSpecies.java b/paper-api/src/main/java/org/bukkit/GrassSpecies.java
index c2b0aeb331..111151573d 100644
--- a/paper-api/src/main/java/org/bukkit/GrassSpecies.java
+++ b/paper-api/src/main/java/org/bukkit/GrassSpecies.java
@@ -43,10 +43,9 @@ public enum GrassSpecies {
/**
* Gets the GrassSpecies with the given data value
*
- * @param data
- * Data value to fetch
- * @return The {@link GrassSpecies} representing the given value, or null if
- * it doesn't exist
+ * @param data Data value to fetch
+ * @return The {@link GrassSpecies} representing the given value, or null
+ * if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/Instrument.java b/paper-api/src/main/java/org/bukkit/Instrument.java
index dc7b4a0e1c..891a2b1bc7 100644
--- a/paper-api/src/main/java/org/bukkit/Instrument.java
+++ b/paper-api/src/main/java/org/bukkit/Instrument.java
@@ -11,19 +11,23 @@ public enum Instrument {
*/
PIANO(0x0),
/**
- * Bass drum is normally played when a note block is on top of a stone-like block
+ * Bass drum is normally played when a note block is on top of a
+ * stone-like block
*/
BASS_DRUM(0x1),
/**
- * Snare drum is normally played when a note block is on top of a sandy block.
+ * Snare drum is normally played when a note block is on top of a sandy
+ * block.
*/
SNARE_DRUM(0x2),
/**
- * Sticks are normally played when a note block is on top of a glass block.
+ * Sticks are normally played when a note block is on top of a glass
+ * block.
*/
STICKS(0x3),
/**
- * Bass guitar is normally played when a note block is on top of a wooden block.
+ * Bass guitar is normally played when a note block is on top of a wooden
+ * block.
*/
BASS_GUITAR(0x4);
diff --git a/paper-api/src/main/java/org/bukkit/Location.java b/paper-api/src/main/java/org/bukkit/Location.java
index 0f74f6d48b..9e1e604570 100644
--- a/paper-api/src/main/java/org/bukkit/Location.java
+++ b/paper-api/src/main/java/org/bukkit/Location.java
@@ -390,12 +390,12 @@ public class Location implements Cloneable {
}
/**
- * Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The value
- * of this method is not cached and uses a costly square-root function, so
- * do not repeatedly call this method to get the location's magnitude. NaN
- * will be returned if the inner result of the sqrt() function overflows,
- * which will be caused if the length is too long. Not world-aware and
- * orientation independent.
+ * Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The
+ * value of this method is not cached and uses a costly square-root
+ * function, so do not repeatedly call this method to get the location's
+ * magnitude. NaN will be returned if the inner result of the sqrt()
+ * function overflows, which will be caused if the length is too long. Not
+ * world-aware and orientation independent.
*
* @see Vector
* @return the magnitude
@@ -416,11 +416,11 @@ public class Location implements Cloneable {
}
/**
- * Get the distance between this location and another. The value
- * of this method is not cached and uses a costly square-root function, so
- * do not repeatedly call this method to get the location's magnitude. NaN
- * will be returned if the inner result of the sqrt() function overflows,
- * which will be caused if the distance is too long.
+ * Get the distance between this location and another. The value of this
+ * method is not cached and uses a costly square-root function, so do not
+ * repeatedly call this method to get the location's magnitude. NaN will
+ * be returned if the inner result of the sqrt() function overflows, which
+ * will be caused if the distance is too long.
*
* @see Vector
* @param o The other location
@@ -452,8 +452,8 @@ public class Location implements Cloneable {
}
/**
- * Performs scalar multiplication, multiplying all components with a scalar.
- * Not world-aware.
+ * Performs scalar multiplication, multiplying all components with a
+ * scalar. Not world-aware.
*
* @param m The factor
* @see Vector
@@ -531,7 +531,8 @@ public class Location implements Cloneable {
/**
* Constructs a new {@link Vector} based on this Location
*
- * @return New Vector containing the coordinates represented by this Location
+ * @return New Vector containing the coordinates represented by this
+ * Location
*/
public Vector toVector() {
return new Vector(x, y, z);
@@ -547,7 +548,8 @@ public class Location implements Cloneable {
}
/**
- * Safely converts a double (location coordinate) to an int (block coordinate)
+ * Safely converts a double (location coordinate) to an int (block
+ * coordinate)
*
* @param loc Precise coordinate
* @return Block coordinate
diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java
index 338fd5698b..576d984c7a 100644
--- a/paper-api/src/main/java/org/bukkit/Material.java
+++ b/paper-api/src/main/java/org/bukkit/Material.java
@@ -495,8 +495,8 @@ public enum Material {
}
/**
- * Constructs a new MaterialData relevant for this Material, with the given
- * initial data
+ * Constructs a new MaterialData relevant for this Material, with the
+ * given initial data
*
* @param raw Initial data to construct the MaterialData with
* @return New MaterialData with the given data
@@ -582,6 +582,7 @@ public enum Material {
/**
* Attempts to get the Material with the given name.
+ *
* This is a normal lookup, names must be the precise name they are given
* in the enum.
*
@@ -594,8 +595,10 @@ public enum Material {
/**
* Attempts to match the Material with the given name.
- * This is a match lookup; names will be converted to uppercase, then stripped
- * of special characters in an attempt to format it like the enum.
+ *
+ * This is a match lookup; names will be converted to uppercase, then
+ * stripped of special characters in an attempt to format it like the
+ * enum.
*
* Using this for match by ID is deprecated.
*
@@ -641,7 +644,8 @@ public enum Material {
}
/**
- * Check if the material is a block and solid (cannot be passed through by a player)
+ * Check if the material is a block and solid (cannot be passed through by
+ * a player)
*
* @return True if this material is a block and solid
*/
diff --git a/paper-api/src/main/java/org/bukkit/NetherWartsState.java b/paper-api/src/main/java/org/bukkit/NetherWartsState.java
index ae557e80e8..f43209cf7b 100644
--- a/paper-api/src/main/java/org/bukkit/NetherWartsState.java
+++ b/paper-api/src/main/java/org/bukkit/NetherWartsState.java
@@ -1,20 +1,21 @@
-package org.bukkit;
-
-public enum NetherWartsState {
- /**
- * State when first seeded
- */
- SEEDED,
- /**
- * First growth stage
- */
- STAGE_ONE,
- /**
- * Second growth stage
- */
- STAGE_TWO,
- /**
- * Ready to harvest
- */
- RIPE;
-}
+package org.bukkit;
+
+public enum NetherWartsState {
+
+ /**
+ * State when first seeded
+ */
+ SEEDED,
+ /**
+ * First growth stage
+ */
+ STAGE_ONE,
+ /**
+ * Second growth stage
+ */
+ STAGE_TWO,
+ /**
+ * Ready to harvest
+ */
+ RIPE;
+}
diff --git a/paper-api/src/main/java/org/bukkit/Note.java b/paper-api/src/main/java/org/bukkit/Note.java
index 3a41ea4931..417936fab8 100644
--- a/paper-api/src/main/java/org/bukkit/Note.java
+++ b/paper-api/src/main/java/org/bukkit/Note.java
@@ -76,7 +76,8 @@ public class Note {
*
* @param id the id of the tone.
* @return if the tone id is the sharped id of the tone.
- * @throws IllegalArgumentException if neither the tone nor the semitone have the id.
+ * @throws IllegalArgumentException if neither the tone nor the
+ * semitone have the id.
* @deprecated Magic value
*/
@Deprecated
@@ -121,8 +122,8 @@ public class Note {
/**
* Creates a new note.
*
- * @param note Internal note id. {@link #getId()} always return this value.
- * The value has to be in the interval [0; 24].
+ * @param note Internal note id. {@link #getId()} always return this
+ * value. The value has to be in the interval [0; 24].
*/
public Note(int note) {
Validate.isTrue(note >= 0 && note <= 24, "The note value has to be between 0 and 24.");
@@ -134,7 +135,8 @@ public class Note {
* Creates a new note.
*
* @param octave The octave where the note is in. Has to be 0 - 2.
- * @param tone The tone within the octave. If the octave is 2 the note has to be F#.
+ * @param tone The tone within the octave. If the octave is 2 the note has
+ * to be F#.
* @param sharped Set if the tone is sharped (e.g. for F#).
*/
public Note(int octave, Tone tone, boolean sharped) {
@@ -166,7 +168,8 @@ public class Note {
* Creates a new note for a sharp tone, such as A-sharp.
*
* @param octave The octave where the note is in. Has to be 0 - 2.
- * @param tone The tone within the octave. If the octave is 2 the note has to be F#.
+ * @param tone The tone within the octave. If the octave is 2 the note has
+ * to be F#.
* @return The new note.
*/
public static Note sharp(int octave, Tone tone) {
diff --git a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java
index bf6682bb10..21d13c3b23 100644
--- a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java
+++ b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java
@@ -60,20 +60,24 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
public Player getPlayer();
/**
- * Gets the first date and time that this player was witnessed on this server.
+ * Gets the first date and time that this player was witnessed on this
+ * server.
*
- * If the player has never played before, this will return 0. Otherwise, it will be
- * the amount of milliseconds since midnight, January 1, 1970 UTC.
+ * If the player has never played before, this will return 0. Otherwise,
+ * it will be the amount of milliseconds since midnight, January 1, 1970
+ * UTC.
*
* @return Date of first log-in for this player, or 0
*/
public long getFirstPlayed();
/**
- * Gets the last date and time that this player was witnessed on this server.
+ * Gets the last date and time that this player was witnessed on this
+ * server.
*
- * If the player has never played before, this will return 0. Otherwise, it will be
- * the amount of milliseconds since midnight, January 1, 1970 UTC.
+ * If the player has never played before, this will return 0. Otherwise,
+ * it will be the amount of milliseconds since midnight, January 1, 1970
+ * UTC.
*
* @return Date of last log-in for this player, or 0
*/
@@ -87,8 +91,8 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
public boolean hasPlayedBefore();
/**
- * Gets the Location where the player will spawn at their bed, null if they
- * have not slept in one or their current bed spawn is invalid.
+ * Gets the Location where the player will spawn at their bed, null if
+ * they have not slept in one or their current bed spawn is invalid.
*
* @return Bed Spawn Location if bed exists, otherwise null.
*/
diff --git a/paper-api/src/main/java/org/bukkit/PortalType.java b/paper-api/src/main/java/org/bukkit/PortalType.java
index a63dad239a..427cfbb8b5 100644
--- a/paper-api/src/main/java/org/bukkit/PortalType.java
+++ b/paper-api/src/main/java/org/bukkit/PortalType.java
@@ -4,6 +4,7 @@ package org.bukkit;
* Represents various types of portals that can be made in a world.
*/
public enum PortalType {
+
/**
* This is a Nether portal, made of obsidian.
*/
diff --git a/paper-api/src/main/java/org/bukkit/Rotation.java b/paper-api/src/main/java/org/bukkit/Rotation.java
index 90df009783..dfdb0e5a13 100644
--- a/paper-api/src/main/java/org/bukkit/Rotation.java
+++ b/paper-api/src/main/java/org/bukkit/Rotation.java
@@ -2,6 +2,7 @@ package org.bukkit;
/**
* An enum to specify a rotation based orientation, like that on a clock.
+ *
* It represents how something is viewed, as opposed to cardinal directions.
*/
public enum Rotation {
diff --git a/paper-api/src/main/java/org/bukkit/SandstoneType.java b/paper-api/src/main/java/org/bukkit/SandstoneType.java
index cba1c2a849..a9ac16e7a3 100644
--- a/paper-api/src/main/java/org/bukkit/SandstoneType.java
+++ b/paper-api/src/main/java/org/bukkit/SandstoneType.java
@@ -33,10 +33,9 @@ public enum SandstoneType {
/**
* Gets the type of sandstone with the given data value
*
- * @param data
- * Data value to fetch
- * @return The {@link SandstoneType} representing the given value, or null if
- * it doesn't exist
+ * @param data Data value to fetch
+ * @return The {@link SandstoneType} representing the given value, or null
+ * if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java
index 0e7893154f..1eb32b7861 100644
--- a/paper-api/src/main/java/org/bukkit/Server.java
+++ b/paper-api/src/main/java/org/bukkit/Server.java
@@ -41,14 +41,16 @@ import org.bukkit.inventory.meta.ItemMeta;
public interface Server extends PluginMessageRecipient {
/**
- * Used for all administrative messages, such as an operator using a command.
+ * Used for all administrative messages, such as an operator using a
+ * command.
*
* For use in {@link #broadcast(java.lang.String, java.lang.String)}
*/
public static final String BROADCAST_CHANNEL_ADMINISTRATIVE = "bukkit.broadcast.admin";
/**
- * Used for all announcement messages, such as informing users that a player has joined.
+ * Used for all announcement messages, such as informing users that a
+ * player has joined.
*
* For use in {@link #broadcast(java.lang.String, java.lang.String)}
*/
@@ -104,9 +106,11 @@ public interface Server extends PluginMessageRecipient {
public int getViewDistance();
/**
- * Get the IP that this server is bound to or empty string if not specified
+ * Get the IP that this server is bound to or empty string if not
+ * specified
*
- * @return The IP string that this server is bound to, otherwise empty string
+ * @return The IP string that this server is bound to, otherwise empty
+ * string
*/
public String getIp();
@@ -118,8 +122,8 @@ public interface Server extends PluginMessageRecipient {
public String getServerName();
/**
- * Get an ID of this server. The ID is a simple generally alphanumeric
- * ID that can be used for uniquely identifying this server.
+ * Get an ID of this server. The ID is a simple generally alphanumeric ID
+ * that can be used for uniquely identifying this server.
*
* @return The ID of this server
*/
@@ -182,7 +186,8 @@ public interface Server extends PluginMessageRecipient {
/**
* Broadcast a message to all players.
*
- * This is the same as calling {@link #broadcast(java.lang.String, java.lang.String)} to {@link #BROADCAST_CHANNEL_USERS}
+ * This is the same as calling {@link #broadcast(java.lang.String,
+ * java.lang.String)} to {@link #BROADCAST_CHANNEL_USERS}
*
* @param message the message
* @return the number of players
@@ -190,8 +195,8 @@ public interface Server extends PluginMessageRecipient {
public int broadcastMessage(String message);
/**
- * Gets the name of the update folder. The update folder is used to safely update
- * plugins at the right moment on a plugin load.
+ * Gets the name of the update folder. The update folder is used to safely
+ * update plugins at the right moment on a plugin load.
*
* The update folder name is relative to the plugins folder.
*
@@ -219,13 +224,15 @@ public interface Server extends PluginMessageRecipient {
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn monsters every tick.
- *
A value of 400 will mean the server will attempt to spawn monsters every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn monsters
+ * every tick.
+ *
A value of 400 will mean the server will attempt to spawn monsters
+ * every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
- * Note:
- * If set to 0, animal spawning will be disabled. We recommend using spawn-animals to control this instead.
+ * Note: If set to 0, animal spawning will be disabled. We
+ * recommend using spawn-animals to control this instead.
*
* Minecraft default: 400.
*
@@ -238,13 +245,15 @@ public interface Server extends PluginMessageRecipient {
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn monsters every tick.
- *
A value of 400 will mean the server will attempt to spawn monsters every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn monsters
+ * every tick.
+ *
A value of 400 will mean the server will attempt to spawn monsters
+ * every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
- * Note:
- * If set to 0, monsters spawning will be disabled. We recommend using spawn-monsters to control this instead.
+ * Note: If set to 0, monsters spawning will be disabled. We
+ * recommend using spawn-monsters to control this instead.
*
* Minecraft default: 1.
*
@@ -274,8 +283,8 @@ public interface Server extends PluginMessageRecipient {
* Attempts to match any players with the given name, and returns a list
* of all possibly matches
*
- * This list is not sorted in any particular order. If an exact match is found,
- * the returned list will only contain a single result.
+ * This list is not sorted in any particular order. If an exact match is
+ * found, the returned list will only contain a single result.
*
* @param name Name to match
* @return List of all possible players
@@ -311,7 +320,8 @@ public interface Server extends PluginMessageRecipient {
public List getWorlds();
/**
- * Creates or loads a world with the given name using the specified options.
+ * Creates or loads a world with the given name using the specified
+ * options.
*
* If the world is already loaded, it will just return the equivalent of
* getWorld(creator.name()).
@@ -404,12 +414,14 @@ public interface Server extends PluginMessageRecipient {
* @param sender The apparent sender of the command
* @param commandLine command + arguments. Example: "test abc 123"
* @return returns false if no target is found.
- * @throws CommandException Thrown when the executor for the given command fails with an unhandled exception
+ * @throws CommandException Thrown when the executor for the given command
+ * fails with an unhandled exception
*/
public boolean dispatchCommand(CommandSender sender, String commandLine) throws CommandException;
/**
- * Populates a given {@link ServerConfig} with values attributes to this server
+ * Populates a given {@link ServerConfig} with values attributes to this
+ * server
*
* @param config ServerConfig to populate
*/
@@ -419,13 +431,14 @@ public interface Server extends PluginMessageRecipient {
* Adds a recipe to the crafting manager.
*
* @param recipe The recipe to add.
- * @return True if the recipe was added, false if it wasn't for some reason.
+ * @return True if the recipe was added, false if it wasn't for some
+ * reason.
*/
public boolean addRecipe(Recipe recipe);
/**
- * Get a list of all recipes for a given item. The stack size is ignored in comparisons.
- * If the durability is -1, it will match any data value.
+ * Get a list of all recipes for a given item. The stack size is ignored
+ * in comparisons. If the durability is -1, it will match any data value.
*
* @param result The item whose recipes you want
* @return The list of recipes
@@ -494,8 +507,11 @@ public interface Server extends PluginMessageRecipient {
/**
* Gets whether to use vanilla (false) or exact behaviour (true).
*
- * Vanilla behaviour: check for collisions and move the player if needed.
- * Exact behaviour: spawn players exactly where they should be.
+ *
+ *
Vanilla behaviour: check for collisions and move the player if
+ * needed.
+ *
Exact behaviour: spawn players exactly where they should be.
+ *
*
* @return Whether to use vanilla (false) or exact behaviour (true).
*/
@@ -507,7 +523,8 @@ public interface Server extends PluginMessageRecipient {
public void shutdown();
/**
- * Broadcasts the specified message to every user with the given permission
+ * Broadcasts the specified message to every user with the given
+ * permission
*
* @param message Message to broadcast
* @param permission Permission the users must have to receive the broadcast
@@ -516,9 +533,11 @@ public interface Server extends PluginMessageRecipient {
public int broadcast(String message, String permission);
/**
- * Gets the player by the given name, regardless if they are offline or online.
+ * Gets the player by the given name, regardless if they are offline or
+ * online.
*
- * This will return an object even if the player does not exist. To this method, all players will exist.
+ * This will return an object even if the player does not exist. To this
+ * method, all players will exist.
*
* @param name Name of the player to retrieve
* @return OfflinePlayer object
@@ -575,8 +594,8 @@ public interface Server extends PluginMessageRecipient {
public void setDefaultGameMode(GameMode mode);
/**
- * Gets the {@link ConsoleCommandSender} that may be used as an input source
- * for this server.
+ * Gets the {@link ConsoleCommandSender} that may be used as an input
+ * source for this server.
*
* @return The Console CommandSender
*/
@@ -611,20 +630,23 @@ public interface Server extends PluginMessageRecipient {
public HelpMap getHelpMap();
/**
- * Creates an empty inventory of the specified type. If the type is {@link InventoryType#CHEST},
- * the new inventory has a size of 27; otherwise the new inventory has the normal size for
- * its type.
+ * Creates an empty inventory of the specified type. If the type is {@link
+ * InventoryType#CHEST}, the new inventory has a size of 27; otherwise the
+ * new inventory has the normal size for its type.
*
- * @param owner The holder of the inventory; can be null if there's no holder.
+ * @param owner The holder of the inventory; can be null if there's no
+ * holder.
* @param type The type of inventory to create.
* @return The new inventory.
*/
Inventory createInventory(InventoryHolder owner, InventoryType type);
/**
- * Creates an empty inventory of type {@link InventoryType#CHEST} with the specified size.
+ * Creates an empty inventory of type {@link InventoryType#CHEST} with the
+ * specified size.
*
- * @param owner The holder of the inventory; can be null if there's no holder.
+ * @param owner The holder of the inventory; can be null if there's no
+ * holder.
* @param size The size of inventory to create; must be a multiple of 9.
* @return The new inventory.
* @throws IllegalArgumentException If the size is not a multiple of 9.
@@ -632,46 +654,54 @@ public interface Server extends PluginMessageRecipient {
Inventory createInventory(InventoryHolder owner, int size);
/**
- * Creates an empty inventory of type {@link InventoryType#CHEST} with the specified size and title.
+ * Creates an empty inventory of type {@link InventoryType#CHEST} with the
+ * specified size and title.
*
- * @param owner The holder of the inventory; can be null if there's no holder.
+ * @param owner The holder of the inventory; can be null if there's no
+ * holder.
* @param size The size of inventory to create; must be a multiple of 9.
- * @param title The title of the inventory, to be displayed when it is viewed.
+ * @param title The title of the inventory, to be displayed when it is
+ * viewed.
* @return The new inventory.
* @throws IllegalArgumentException If the size is not a multiple of 9.
*/
Inventory createInventory(InventoryHolder owner, int size, String title);
/**
- * Gets user-specified limit for number of monsters that can spawn in a chunk
+ * Gets user-specified limit for number of monsters that can spawn in a
+ * chunk
*
* @return The monster spawn limit
*/
int getMonsterSpawnLimit();
/**
- * Gets user-specified limit for number of animals that can spawn in a chunk
+ * Gets user-specified limit for number of animals that can spawn in a
+ * chunk
*
* @return The animal spawn limit
*/
int getAnimalSpawnLimit();
/**
- * Gets user-specified limit for number of water animals that can spawn in a chunk
+ * Gets user-specified limit for number of water animals that can spawn in
+ * a chunk
*
* @return The water animal spawn limit
*/
int getWaterAnimalSpawnLimit();
/**
- * Gets user-specified limit for number of ambient mobs that can spawn in a chunk
+ * Gets user-specified limit for number of ambient mobs that can spawn in
+ * a chunk
*
* @return The ambient spawn limit
*/
int getAmbientSpawnLimit();
/**
- * Returns true if the current {@link Thread} is the server's primary thread
+ * Returns true if the current {@link Thread} is the server's primary
+ * thread
*/
boolean isPrimaryThread();
@@ -723,16 +753,16 @@ public interface Server extends PluginMessageRecipient {
CachedServerIcon getServerIcon();
/**
- * Loads an image from a file, and returns a cached image for the
- * specific server-icon.
+ * Loads an image from a file, and returns a cached image for the specific
+ * server-icon.
*
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*
* @param file the file to load the from
* @throws IllegalArgumentException if image is null
- * @throws Exception if the image does not meet current server
- * server-icon specifications
+ * @throws Exception if the image does not meet current server server-icon
+ * specifications
* @return a cached server-icon that can be used for a {@link
* ServerListPingEvent#setServerIcon(CachedServerIcon)}
*/
diff --git a/paper-api/src/main/java/org/bukkit/Sound.java b/paper-api/src/main/java/org/bukkit/Sound.java
index 90d40394f2..77261c2830 100644
--- a/paper-api/src/main/java/org/bukkit/Sound.java
+++ b/paper-api/src/main/java/org/bukkit/Sound.java
@@ -3,8 +3,10 @@ package org.bukkit;
/**
* An Enum of Sounds the server is able to send to players.
*
- * WARNING: At any time, sounds may be added/removed from this Enum or even MineCraft itself! There is no guarantee the sounds will play.
- * There is no guarantee values will not be removed from this Enum. As such, you should not depend on the ordinal values of this class.
+ * WARNING: At any time, sounds may be added/removed from this Enum or even
+ * MineCraft itself! There is no guarantee the sounds will play. There is no
+ * guarantee values will not be removed from this Enum. As such, you should
+ * not depend on the ordinal values of this class.
*/
public enum Sound {
AMBIENCE_CAVE,
diff --git a/paper-api/src/main/java/org/bukkit/Statistic.java b/paper-api/src/main/java/org/bukkit/Statistic.java
index 33e851ad10..4532123ad8 100644
--- a/paper-api/src/main/java/org/bukkit/Statistic.java
+++ b/paper-api/src/main/java/org/bukkit/Statistic.java
@@ -33,7 +33,8 @@ public enum Statistic {
/**
* Checks if this is a substatistic.
*
- * A substatistic exists in mass for each block or item, depending on {@link #isBlock()}
+ * A substatistic exists in mass for each block or item, depending on
+ * {@link #isBlock()}
*
* @return true if this is a substatistic
*/
@@ -42,7 +43,8 @@ public enum Statistic {
}
/**
- * Checks if this is a substatistic dealing with blocks (As opposed to items)
+ * Checks if this is a substatistic dealing with blocks (As opposed to
+ * items)
*
* @return true if this deals with blocks, false if with items
*/
diff --git a/paper-api/src/main/java/org/bukkit/TreeSpecies.java b/paper-api/src/main/java/org/bukkit/TreeSpecies.java
index de5e7461fe..f29062acc9 100644
--- a/paper-api/src/main/java/org/bukkit/TreeSpecies.java
+++ b/paper-api/src/main/java/org/bukkit/TreeSpecies.java
@@ -57,8 +57,8 @@ public enum TreeSpecies {
* Gets the TreeSpecies with the given data value
*
* @param data Data value to fetch
- * @return The {@link TreeSpecies} representing the given value, or null if
- * it doesn't exist
+ * @return The {@link TreeSpecies} representing the given value, or null
+ * if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/Utility.java b/paper-api/src/main/java/org/bukkit/Utility.java
index 0e54481b91..da66853ef2 100644
--- a/paper-api/src/main/java/org/bukkit/Utility.java
+++ b/paper-api/src/main/java/org/bukkit/Utility.java
@@ -6,8 +6,11 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * This annotation indicates a method (and sometimes constructor) will chain its internal operations.
- * This is solely meant for identifying methods that don't need to be overridden / handled manually.
+ * This annotation indicates a method (and sometimes constructor) will chain
+ * its internal operations.
+ *
+ * This is solely meant for identifying methods that don't need to be
+ * overridden / handled manually.
*/
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
diff --git a/paper-api/src/main/java/org/bukkit/Warning.java b/paper-api/src/main/java/org/bukkit/Warning.java
index fca77ceceb..6a2a3b0d6c 100644
--- a/paper-api/src/main/java/org/bukkit/Warning.java
+++ b/paper-api/src/main/java/org/bukkit/Warning.java
@@ -10,7 +10,9 @@ import com.google.common.collect.ImmutableMap;
/**
* This designates the warning state for a specific item.
- * When the server settings dictate 'default' warnings, warnings are printed if the {@link #value()} is true.
+ *
+ * When the server settings dictate 'default' warnings, warnings are printed
+ * if the {@link #value()} is true.
*/
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@@ -30,7 +32,8 @@ public @interface Warning {
*/
OFF,
/**
- * Indicates each warning would default to the configured {@link Warning} annotation, or always if annotation not found.
+ * Indicates each warning would default to the configured {@link
+ * Warning} annotation, or always if annotation not found.
*/
DEFAULT;
@@ -51,12 +54,16 @@ public @interface Warning {
.build();
/**
- * This method checks the provided warning should be printed for this state
+ * This method checks the provided warning should be printed for this
+ * state
*
* @param warning The warning annotation added to a deprecated item
- * @return ON is always True
- * OFF is always false
- * DEFAULT is false if and only if annotation is not null and specifies false for {@link Warning#value()}, true otherwise.
+ * @return
+ *
ON is always True
+ *
OFF is always false
+ *
DEFAULT is false if and only if annotation is not null and
+ * specifies false for {@link Warning#value()}, true otherwise.
+ *
*/
public boolean printFor(Warning warning) {
if (this == DEFAULT) {
@@ -66,10 +73,12 @@ public @interface Warning {
}
/**
- * This method returns the corresponding warning state for the given string value.
+ * This method returns the corresponding warning state for the given
+ * string value.
*
* @param value The string value to check
- * @return {@link #DEFAULT} if not found, or the respective WarningState
+ * @return {@link #DEFAULT} if not found, or the respective
+ * WarningState
*/
public static WarningState value(final String value) {
if (value == null) {
@@ -84,7 +93,8 @@ public @interface Warning {
}
/**
- * This sets if the deprecation warnings when registering events gets printed when the setting is in the default state.
+ * This sets if the deprecation warnings when registering events gets
+ * printed when the setting is in the default state.
*
* @return false normally, or true to encourage warning printout
*/
diff --git a/paper-api/src/main/java/org/bukkit/WeatherType.java b/paper-api/src/main/java/org/bukkit/WeatherType.java
index 624ed489c4..36b993f1c3 100644
--- a/paper-api/src/main/java/org/bukkit/WeatherType.java
+++ b/paper-api/src/main/java/org/bukkit/WeatherType.java
@@ -4,6 +4,7 @@ package org.bukkit;
* An enum of all current weather types
*/
public enum WeatherType {
+
/**
* Raining or snowing depending on biome.
*/
diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java
index 63507c9fd9..f02bfb7487 100644
--- a/paper-api/src/main/java/org/bukkit/World.java
+++ b/paper-api/src/main/java/org/bukkit/World.java
@@ -29,7 +29,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
* @param y Y-coordinate of the block
* @param z Z-coordinate of the block
* @return Block at the given coordinates
- * @see #getBlockTypeIdAt(int, int, int) Returns the current type ID of the block
+ * @see #getBlockTypeIdAt(int, int, int) Returns the current type ID of
+ * the block
*/
public Block getBlockAt(int x, int y, int z);
@@ -38,7 +39,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param location Location of the block
* @return Block at the given location
- * @see #getBlockTypeIdAt(org.bukkit.Location) Returns the current type ID of the block
+ * @see #getBlockTypeIdAt(org.bukkit.Location) Returns the current type ID
+ * of the block
*/
public Block getBlockAt(Location location);
@@ -49,7 +51,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
* @param y Y-coordinate of the block
* @param z Z-coordinate of the block
* @return Type ID of the block at the given coordinates
- * @see #getBlockAt(int, int, int) Returns a live Block object at the given location
+ * @see #getBlockAt(int, int, int) Returns a live Block object at the
+ * given location
* @deprecated Magic value
*/
@Deprecated
@@ -60,7 +63,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param location Location of the block
* @return Type ID of the block at the given location
- * @see #getBlockAt(org.bukkit.Location) Returns a live Block object at the given location
+ * @see #getBlockAt(org.bukkit.Location) Returns a live Block object at
+ * the given location
* @deprecated Magic value
*/
@Deprecated
@@ -157,11 +161,13 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean isChunkLoaded(int x, int z);
/**
- * Checks if the {@link Chunk} at the specified coordinates is loaded and in use by one or more players
+ * Checks if the {@link Chunk} at the specified coordinates is loaded and
+ * in use by one or more players
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
- * @return true if the chunk is loaded and in use by one or more players, otherwise false
+ * @return true if the chunk is loaded and in use by one or more players,
+ * otherwise false
*/
public boolean isChunkInUse(int x, int z);
@@ -169,7 +175,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
* Loads the {@link Chunk} at the specified coordinates
*
* If the chunk does not exist, it will be generated.
- * This method is analogous to {@link #loadChunk(int, int, boolean)} where generate is true.
+ *
+ * This method is analogous to {@link #loadChunk(int, int, boolean)} where
+ * generate is true.
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
@@ -181,7 +189,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
- * @param generate Whether or not to generate a chunk if it doesn't already exist
+ * @param generate Whether or not to generate a chunk if it doesn't
+ * already exist
* @return true if the chunk has loaded successfully, otherwise false
*/
public boolean loadChunk(int x, int z, boolean generate);
@@ -189,7 +198,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
*
- * This method is analogous to {@link #unloadChunk(int, int, boolean, boolean)} where safe and saveis true
+ * This method is analogous to {@link #unloadChunk(int, int, boolean,
+ * boolean)} where safe and saveis true
*
* @param chunk the chunk to unload
* @return true if the chunk has unloaded successfully, otherwise false
@@ -199,7 +209,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
*
- * This method is analogous to {@link #unloadChunk(int, int, boolean, boolean)} where safe and saveis true
+ * This method is analogous to {@link #unloadChunk(int, int, boolean,
+ * boolean)} where safe and saveis true
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
@@ -208,9 +219,11 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean unloadChunk(int x, int z);
/**
- * Safely unloads and optionally saves the {@link Chunk} at the specified coordinates
+ * Safely unloads and optionally saves the {@link Chunk} at the specified
+ * coordinates
*
- * This method is analogous to {@link #unloadChunk(int, int, boolean, boolean)} where save is true
+ * This method is analogous to {@link #unloadChunk(int, int, boolean,
+ * boolean)} where save is true
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
@@ -220,20 +233,24 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean unloadChunk(int x, int z, boolean save);
/**
- * Unloads and optionally saves the {@link Chunk} at the specified coordinates
+ * Unloads and optionally saves the {@link Chunk} at the specified
+ * coordinates
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
* @param save Controls whether the chunk is saved
- * @param safe Controls whether to unload the chunk when players are nearby
+ * @param safe Controls whether to unload the chunk when players are
+ * nearby
* @return true if the chunk has unloaded successfully, otherwise false
*/
public boolean unloadChunk(int x, int z, boolean save, boolean safe);
/**
- * Safely queues the {@link Chunk} at the specified coordinates for unloading
+ * Safely queues the {@link Chunk} at the specified coordinates for
+ * unloading
*
- * This method is analogous to {@link #unloadChunkRequest(int, int, boolean)} where safe is true
+ * This method is analogous to {@link #unloadChunkRequest(int, int,
+ * boolean)} where safe is true
*
* @param x X-coordinate of the chunk
* @param z Z-coordinate of the chunk
@@ -312,7 +329,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param loc Location to spawn the tree
* @param type Type of the tree to create
- * @param delegate A class to call for each block changed as a result of this method
+ * @param delegate A class to call for each block changed as a result of
+ * this method
* @return true if the tree was created successfully, otherwise false
*/
public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate);
@@ -331,8 +349,10 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param loc The location to spawn the creature
* @param type The creature to spawn
- * @return Resulting LivingEntity of this method, or null if it was unsuccessful
- * @deprecated Has issues spawning non LivingEntities. Use {@link #spawnEntity(Location, EntityType) spawnEntity} instead.
+ * @return Resulting LivingEntity of this method, or null if it was
+ * unsuccessful
+ * @deprecated Has issues spawning non LivingEntities. Use {@link
+ * #spawnEntity(Location, EntityType) spawnEntity} instead.
*/
@Deprecated
public LivingEntity spawnCreature(Location loc, EntityType type);
@@ -342,7 +362,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param loc The location to spawn the creature
* @param type The creature to spawn
- * @return Resulting LivingEntity of this method, or null if it was unsuccessful
+ * @return Resulting LivingEntity of this method, or null if it was
+ * unsuccessful
*/
@Deprecated
public LivingEntity spawnCreature(Location loc, CreatureType type);
@@ -378,27 +399,33 @@ public interface World extends PluginMessageRecipient, Metadatable {
public List getLivingEntities();
/**
- * Get a collection of all entities in this World matching the given class/interface
+ * Get a collection of all entities in this World matching the given
+ * class/interface
*
* @param classes The classes representing the types of entity to match
- * @return A List of all Entities currently residing in this world that match the given class/interface
+ * @return A List of all Entities currently residing in this world that
+ * match the given class/interface
*/
@Deprecated
public Collection getEntitiesByClass(Class... classes);
/**
- * Get a collection of all entities in this World matching the given class/interface
+ * Get a collection of all entities in this World matching the given
+ * class/interface
*
* @param cls The class representing the type of entity to match
- * @return A List of all Entities currently residing in this world that match the given class/interface
+ * @return A List of all Entities currently residing in this world that
+ * match the given class/interface
*/
public Collection getEntitiesByClass(Class cls);
/**
- * Get a collection of all entities in this World matching any of the given classes/interfaces
+ * Get a collection of all entities in this World matching any of the
+ * given classes/interfaces
*
* @param classes The classes representing the types of entity to match
- * @return A List of all Entities currently residing in this world that match one or more of the given classes/interfaces
+ * @return A List of all Entities currently residing in this world that
+ * match one or more of the given classes/interfaces
*/
public Collection getEntitiesByClasses(Class>... classes);
@@ -455,11 +482,12 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* The relative time is analogous to hours * 1000
*
- * Note that setting the relative time below the current relative time will
- * actually move the clock forward a day. If you require to rewind time, please
- * see setFullTime
+ * Note that setting the relative time below the current relative time
+ * will actually move the clock forward a day. If you require to rewind
+ * time, please see {@link #setFullTime()}
*
- * @param time The new relative time to set the in-game time to (in hours*1000)
+ * @param time The new relative time to set the in-game time to (in
+ * hours*1000)
* @see #setFullTime(long) Sets the absolute time of this world
*/
public void setTime(long time);
@@ -552,8 +580,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean createExplosion(double x, double y, double z, float power);
/**
- * Creates explosion at given coordinates with given power and optionally setting
- * blocks on fire.
+ * Creates explosion at given coordinates with given power and optionally
+ * setting blocks on fire.
*
* @param x X coordinate
* @param y Y coordinate
@@ -565,8 +593,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean createExplosion(double x, double y, double z, float power, boolean setFire);
/**
- * Creates explosion at given coordinates with given power and optionally setting
- * blocks on fire or breaking blocks.
+ * Creates explosion at given coordinates with given power and optionally
+ * setting blocks on fire or breaking blocks.
*
* @param x X coordinate
* @param y Y coordinate
@@ -588,8 +616,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean createExplosion(Location loc, float power);
/**
- * Creates explosion at given coordinates with given power and optionally setting
- * blocks on fire.
+ * Creates explosion at given coordinates with given power and optionally
+ * setting blocks on fire.
*
* @param loc Location to blow up
* @param power The power of explosion, where 4F is TNT
@@ -652,41 +680,48 @@ public interface World extends PluginMessageRecipient, Metadatable {
* @param clazz the class of the {@link Entity} to spawn
* @param the class of the {@link Entity} to spawn
* @return an instance of the spawned {@link Entity}
- * @throws IllegalArgumentException if either parameter is null or the {@link Entity} requested cannot be spawned
+ * @throws IllegalArgumentException if either parameter is null or the
+ * {@link Entity} requested cannot be spawned
*/
public T spawn(Location location, Class clazz) throws IllegalArgumentException;
/**
- * Spawn a {@link FallingBlock} entity at the given {@link Location} of the specified {@link Material}.
- * The material dictates what is falling. When the FallingBlock hits the ground, it will place that block.
+ * Spawn a {@link FallingBlock} entity at the given {@link Location} of
+ * the specified {@link Material}. The material dictates what is falling.
+ * When the FallingBlock hits the ground, it will place that block.
*
- * The Material must be a block type, check with {@link Material#isBlock() material.isBlock()}.
- * The Material may not be air.
+ * The Material must be a block type, check with {@link Material#isBlock()
+ * material.isBlock()}. The Material may not be air.
*
* @param location The {@link Location} to spawn the FallingBlock
* @param material The block {@link Material} type
* @param data The block data
* @return The spawned {@link FallingBlock} instance
- * @throws IllegalArgumentException if {@link Location} or {@link Material} are null or {@link Material} is not a block
+ * @throws IllegalArgumentException if {@link Location} or {@link
+ * Material} are null or {@link Material} is not a block
*/
public FallingBlock spawnFallingBlock(Location location, Material material, byte data) throws IllegalArgumentException;
/**
- * Spawn a {@link FallingBlock} entity at the given {@link Location} of the specified blockId (converted to {@link Material})
+ * Spawn a {@link FallingBlock} entity at the given {@link Location} of
+ * the specified blockId (converted to {@link Material})
*
* @param location The {@link Location} to spawn the FallingBlock
* @param blockId The id of the intended material
* @param blockData The block data
* @return The spawned FallingBlock instance
- * @throws IllegalArgumentException if location is null, or blockId is invalid
+ * @throws IllegalArgumentException if location is null, or blockId is
+ * invalid
* @see #spawnFallingBlock(org.bukkit.Location, org.bukkit.Material, byte)
*/
public FallingBlock spawnFallingBlock(Location location, int blockId, byte blockData) throws IllegalArgumentException;
/**
- * Plays an effect to all players within a default radius around a given location.
+ * Plays an effect to all players within a default radius around a given
+ * location.
*
- * @param location the {@link Location} around which players must be to hear the sound
+ * @param location the {@link Location} around which players must be to
+ * hear the sound
* @param effect the {@link Effect}
* @param data a data bit needed for some effects
*/
@@ -695,7 +730,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Plays an effect to all players within a given radius around a location.
*
- * @param location the {@link Location} around which players must be to hear the effect
+ * @param location the {@link Location} around which players must be to
+ * hear the effect
* @param effect the {@link Effect}
* @param data a data bit needed for some effects
* @param radius the radius around the location
@@ -703,9 +739,11 @@ public interface World extends PluginMessageRecipient, Metadatable {
public void playEffect(Location location, Effect effect, int data, int radius);
/**
- * Plays an effect to all players within a default radius around a given location.
+ * Plays an effect to all players within a default radius around a given
+ * location.
*
- * @param location the {@link Location} around which players must be to hear the sound
+ * @param location the {@link Location} around which players must be to
+ * hear the sound
* @param effect the {@link Effect}
* @param data a data bit needed for some effects
*/
@@ -714,7 +752,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Plays an effect to all players within a given radius around a location.
*
- * @param location the {@link Location} around which players must be to hear the effect
+ * @param location the {@link Location} around which players must be to
+ * hear the effect
* @param effect the {@link Effect}
* @param data a data bit needed for some effects
* @param radius the radius around the location
@@ -722,13 +761,16 @@ public interface World extends PluginMessageRecipient, Metadatable {
public void playEffect(Location location, Effect effect, T data, int radius);
/**
- * Get empty chunk snapshot (equivalent to all air blocks), optionally including valid biome
- * data. Used for representing an ungenerated chunk, or for fetching only biome data without loading a chunk.
+ * Get empty chunk snapshot (equivalent to all air blocks), optionally
+ * including valid biome data. Used for representing an ungenerated chunk,
+ * or for fetching only biome data without loading a chunk.
*
* @param x - chunk x coordinate
* @param z - chunk z coordinate
- * @param includeBiome - if true, snapshot includes per-coordinate biome type
- * @param includeBiomeTempRain - if true, snapshot includes per-coordinate raw biome temperature and rainfall
+ * @param includeBiome - if true, snapshot includes per-coordinate biome
+ * type
+ * @param includeBiomeTempRain - if true, snapshot includes per-coordinate
+ * raw biome temperature and rainfall
* @return The empty snapshot.
*/
public ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain);
@@ -736,8 +778,10 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Sets the spawn flags for this.
*
- * @param allowMonsters - if true, monsters are allowed to spawn in this world.
- * @param allowAnimals - if true, animals are allowed to spawn in this world.
+ * @param allowMonsters - if true, monsters are allowed to spawn in this
+ * world.
+ * @param allowAnimals - if true, animals are allowed to spawn in this
+ * world.
*/
public void setSpawnFlags(boolean allowMonsters, boolean allowAnimals);
@@ -776,7 +820,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Gets the temperature for the given block coordinates.
*
- * It is safe to run this method when the block does not exist, it will not create the block.
+ * It is safe to run this method when the block does not exist, it will
+ * not create the block.
*
* @param x X coordinate of the block
* @param z Z coordinate of the block
@@ -787,7 +832,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Gets the humidity for the given block coordinates.
*
- * It is safe to run this method when the block does not exist, it will not create the block.
+ * It is safe to run this method when the block does not exist, it will
+ * not create the block.
*
* @param x X coordinate of the block
* @param z Z coordinate of the block
@@ -814,16 +860,19 @@ public interface World extends PluginMessageRecipient, Metadatable {
public int getSeaLevel();
/**
- * Gets whether the world's spawn area should be kept loaded into memory or not.
+ * Gets whether the world's spawn area should be kept loaded into memory
+ * or not.
*
* @return true if the world's spawn area will be kept loaded into memory.
*/
public boolean getKeepSpawnInMemory();
/**
- * Sets whether the world's spawn area should be kept loaded into memory or not.
+ * Sets whether the world's spawn area should be kept loaded into memory
+ * or not.
*
- * @param keepLoaded if true then the world's spawn area will be kept loaded into memory.
+ * @param keepLoaded if true then the world's spawn area will be kept
+ * loaded into memory.
*/
public void setKeepSpawnInMemory(boolean keepLoaded);
@@ -837,7 +886,8 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Sets whether or not the world will automatically save
*
- * @param value true if the world should automatically save, otherwise false
+ * @param value true if the world should automatically save, otherwise
+ * false
*/
public void setAutoSave(boolean value);
@@ -879,17 +929,22 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Gets the world's ticks per animal spawns value
*
- * This value determines how many ticks there are between attempts to spawn animals.
+ * This value determines how many ticks there are between attempts to
+ * spawn animals.
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn animals in this world every tick.
- *
A value of 400 will mean the server will attempt to spawn animals in this world every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn animals in
+ * this world every tick.
+ *
A value of 400 will mean the server will attempt to spawn animals
+ * in this world every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
* Note:
- * If set to 0, animal spawning will be disabled for this world. We recommend using {@link #setSpawnFlags(boolean, boolean)} to control this instead.
+ * If set to 0, animal spawning will be disabled for this world. We
+ * recommend using {@link #setSpawnFlags(boolean, boolean)} to control
+ * this instead.
*
* Minecraft default: 400.
*
@@ -900,38 +955,49 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Sets the world's ticks per animal spawns value
*
- * This value determines how many ticks there are between attempts to spawn animals.
+ * This value determines how many ticks there are between attempts to
+ * spawn animals.
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn animals in this world every tick.
- *
A value of 400 will mean the server will attempt to spawn animals in this world every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn animals in
+ * this world every tick.
+ *
A value of 400 will mean the server will attempt to spawn animals
+ * in this world every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
* Note:
- * If set to 0, animal spawning will be disabled for this world. We recommend using {@link #setSpawnFlags(boolean, boolean)} to control this instead.
+ * If set to 0, animal spawning will be disabled for this world. We
+ * recommend using {@link #setSpawnFlags(boolean, boolean)} to control
+ * this instead.
*
* Minecraft default: 400.
*
- * @param ticksPerAnimalSpawns the ticks per animal spawns value you want to set the world to
+ * @param ticksPerAnimalSpawns the ticks per animal spawns value you want
+ * to set the world to
*/
public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns);
/**
* Gets the world's ticks per monster spawns value
*
- * This value determines how many ticks there are between attempts to spawn monsters.
+ * This value determines how many ticks there are between attempts to
+ * spawn monsters.
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn monsters in this world every tick.
- *
A value of 400 will mean the server will attempt to spawn monsters in this world every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn monsters in
+ * this world every tick.
+ *
A value of 400 will mean the server will attempt to spawn monsters
+ * in this world every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
* Note:
- * If set to 0, monsters spawning will be disabled for this world. We recommend using {@link #setSpawnFlags(boolean, boolean)} to control this instead.
+ * If set to 0, monsters spawning will be disabled for this world. We
+ * recommend using {@link #setSpawnFlags(boolean, boolean)} to control
+ * this instead.
*
* Minecraft default: 1.
*
@@ -942,80 +1008,95 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Sets the world's ticks per monster spawns value
*
- * This value determines how many ticks there are between attempts to spawn monsters.
+ * This value determines how many ticks there are between attempts to
+ * spawn monsters.
*
* Example Usage:
*
- *
A value of 1 will mean the server will attempt to spawn monsters in this world on every tick.
- *
A value of 400 will mean the server will attempt to spawn monsters in this world every 400th tick.
+ *
A value of 1 will mean the server will attempt to spawn monsters in
+ * this world on every tick.
+ *
A value of 400 will mean the server will attempt to spawn monsters
+ * in this world every 400th tick.
*
A value below 0 will be reset back to Minecraft's default.
*
*
* Note:
- * If set to 0, monsters spawning will be disabled for this world. We recommend using {@link #setSpawnFlags(boolean, boolean)} to control this instead.
+ * If set to 0, monsters spawning will be disabled for this world. We
+ * recommend using {@link #setSpawnFlags(boolean, boolean)} to control
+ * this instead.
*
* Minecraft default: 1.
*
- * @param ticksPerMonsterSpawns the ticks per monster spawns value you want to set the world to
+ * @param ticksPerMonsterSpawns the ticks per monster spawns value you
+ * want to set the world to
*/
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns);
/**
- * Gets limit for number of monsters that can spawn in a chunk in this world
+ * Gets limit for number of monsters that can spawn in a chunk in this
+ * world
+ *
* @return The monster spawn limit
*/
int getMonsterSpawnLimit();
/**
- * Sets the limit for number of monsters that can spawn in a chunk in this world
+ * Sets the limit for number of monsters that can spawn in a chunk in this
+ * world
*
- * Note:
- * If set to a negative number the world will use the server-wide spawn limit instead.
+ * Note: If set to a negative number the world will use the
+ * server-wide spawn limit instead.
*/
void setMonsterSpawnLimit(int limit);
/**
- * Gets the limit for number of animals that can spawn in a chunk in this world
+ * Gets the limit for number of animals that can spawn in a chunk in this
+ * world
*
* @return The animal spawn limit
*/
int getAnimalSpawnLimit();
/**
- * Sets the limit for number of animals that can spawn in a chunk in this world
+ * Sets the limit for number of animals that can spawn in a chunk in this
+ * world
*
- * Note:
- * If set to a negative number the world will use the server-wide spawn limit instead.
+ * Note: If set to a negative number the world will use the
+ * server-wide spawn limit instead.
*/
void setAnimalSpawnLimit(int limit);
/**
- * Gets the limit for number of water animals that can spawn in a chunk in this world
+ * Gets the limit for number of water animals that can spawn in a chunk in
+ * this world
*
* @return The water animal spawn limit
*/
int getWaterAnimalSpawnLimit();
/**
- * Sets the limit for number of water animals that can spawn in a chunk in this world
+ * Sets the limit for number of water animals that can spawn in a chunk in
+ * this world
*
- * Note:
- * If set to a negative number the world will use the server-wide spawn limit instead.
+ * Note: If set to a negative number the world will use the
+ * server-wide spawn limit instead.
*/
void setWaterAnimalSpawnLimit(int limit);
/**
- * Gets the limit for number of ambient mobs that can spawn in a chunk in this world
+ * Gets the limit for number of ambient mobs that can spawn in a chunk in
+ * this world
*
* @return The ambient spawn limit
*/
int getAmbientSpawnLimit();
/**
- * Sets the limit for number of ambient mobs that can spawn in a chunk in this world
+ * Sets the limit for number of ambient mobs that can spawn in a chunk in
+ * this world
*
- * Note:
- * If set to a negative number the world will use the server-wide spawn limit instead.
+ * Note: If set to a negative number the world will use the
+ * server-wide spawn limit instead.
*/
void setAmbientSpawnLimit(int limit);
@@ -1074,6 +1155,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
* Represents various map environment types that a world may be
*/
public enum Environment {
+
/**
* Represents the "normal"/"surface world" map
*/
diff --git a/paper-api/src/main/java/org/bukkit/WorldCreator.java b/paper-api/src/main/java/org/bukkit/WorldCreator.java
index 8bfbb26263..9a5afd2db7 100644
--- a/paper-api/src/main/java/org/bukkit/WorldCreator.java
+++ b/paper-api/src/main/java/org/bukkit/WorldCreator.java
@@ -141,8 +141,8 @@ public class WorldCreator {
/**
* Gets the generator that will be used to create or load the world.
*
- * This may be null, in which case the "natural" generator for this environment
- * will be used.
+ * This may be null, in which case the "natural" generator for this
+ * environment will be used.
*
* @return Chunk generator
*/
@@ -153,8 +153,8 @@ public class WorldCreator {
/**
* Sets the generator that will be used to create or load the world.
*
- * This may be null, in which case the "natural" generator for this environment
- * will be used.
+ * This may be null, in which case the "natural" generator for this
+ * environment will be used.
*
* @param generator Chunk generator
* @return This object, for chaining
@@ -168,11 +168,12 @@ public class WorldCreator {
/**
* Sets the generator that will be used to create or load the world.
*
- * This may be null, in which case the "natural" generator for this environment
- * will be used.
+ * This may be null, in which case the "natural" generator for this
+ * environment will be used.
*
- * If the generator cannot be found for the given name, the natural environment generator
- * will be used instead and a warning will be printed to the console.
+ * If the generator cannot be found for the given name, the natural
+ * environment generator will be used instead and a warning will be
+ * printed to the console.
*
* @param generator Name of the generator to use, in "plugin:id" notation
* @return This object, for chaining
@@ -186,14 +187,16 @@ public class WorldCreator {
/**
* Sets the generator that will be used to create or load the world.
*
- * This may be null, in which case the "natural" generator for this environment
- * will be used.
+ * This may be null, in which case the "natural" generator for this
+ * environment will be used.
*
- * If the generator cannot be found for the given name, the natural environment generator
- * will be used instead and a warning will be printed to the specified output
+ * If the generator cannot be found for the given name, the natural
+ * environment generator will be used instead and a warning will be
+ * printed to the specified output
*
* @param generator Name of the generator to use, in "plugin:id" notation
- * @param output {@link CommandSender} that will receive any error messages
+ * @param output {@link CommandSender} that will receive any error
+ * messages
* @return This object, for chaining
*/
public WorldCreator generator(String generator, CommandSender output) {
@@ -203,7 +206,8 @@ public class WorldCreator {
}
/**
- * Sets whether or not worlds created or loaded with this creator will have structures.
+ * Sets whether or not worlds created or loaded with this creator will
+ * have structures.
*
* @param generate Whether to generate structures
* @return This object, for chaining
@@ -226,8 +230,8 @@ public class WorldCreator {
/**
* Creates a world with the specified options.
*
- * If the world already exists, it will be loaded from disk and some options
- * may be ignored.
+ * If the world already exists, it will be loaded from disk and some
+ * options may be ignored.
*
* @return Newly created or loaded world
*/
@@ -248,12 +252,13 @@ public class WorldCreator {
/**
* Attempts to get the {@link ChunkGenerator} with the given name.
*
- * If the generator is not found, null will be returned and a message will be
- * printed to the specified {@link CommandSender} explaining why.
+ * If the generator is not found, null will be returned and a message will
+ * be printed to the specified {@link CommandSender} explaining why.
*
- * The name must be in the "plugin:id" notation, or optionally just "plugin",
- * where "plugin" is the safe-name of a plugin and "id" is an optional unique
- * identifier for the generator you wish to request from the plugin.
+ * The name must be in the "plugin:id" notation, or optionally just
+ * "plugin", where "plugin" is the safe-name of a plugin and "id" is an
+ * optional unique identifier for the generator you wish to request from
+ * the plugin.
*
* @param world Name of the world this will be used for
* @param name Name of the generator to retrieve
diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java
index 47a69d223e..4a53109ad7 100644
--- a/paper-api/src/main/java/org/bukkit/block/Block.java
+++ b/paper-api/src/main/java/org/bukkit/block/Block.java
@@ -11,9 +11,9 @@ import org.bukkit.metadata.Metadatable;
/**
* Represents a block. This is a live object, and only one Block may exist for
- * any given location in a world. The state of the block may change concurrently
- * to your own handling of it; use block.getState() to get a snapshot state of a
- * block which will not be modified.
+ * any given location in a world. The state of the block may change
+ * concurrently to your own handling of it; use block.getState() to get a
+ * snapshot state of a block which will not be modified.
*/
public interface Block extends Metadatable {
@@ -50,8 +50,8 @@ public interface Block extends Metadatable {
/**
* Gets the block at the given distance of the given face
*
- * For example, the following method places water at 100,102,100; two blocks
- * above 100,100,100.
+ * For example, the following method places water at 100,102,100; two
+ * blocks above 100,100,100.
*
*
* Block block = world.getBlockAt(100, 100, 100);
@@ -91,7 +91,8 @@ public interface Block extends Metadatable {
/**
* Get the amount of light at this block from the sky.
*
- * Any light given from other sources (such as blocks like torches) will be ignored.
+ * Any light given from other sources (such as blocks like torches) will
+ * be ignored.
*
* @return Sky light level
*/
@@ -142,8 +143,10 @@ public interface Block extends Metadatable {
Location getLocation();
/**
- * Stores the location of the block in the provided Location object.
- * If the provided Location is null this method does nothing and returns null.
+ * Stores the location of the block in the provided Location object.
+ *
+ * If the provided Location is null this method does nothing and returns
+ * null.
*
* @return The Location object provided or null
*/
@@ -237,8 +240,8 @@ public interface Block extends Metadatable {
* Captures the current state of this block. You may then cast that state
* into any accepted type, such as Furnace or Sign.
*
- * The returned object will never be updated, and you are not guaranteed that
- * (for example) a sign is still a sign after you capture its state.
+ * The returned object will never be updated, and you are not guaranteed
+ * that (for example) a sign is still a sign after you capture its state.
*
* @return BlockState with the current state of this block.
*/
@@ -291,7 +294,8 @@ public interface Block extends Metadatable {
/**
* Returns the redstone power being provided to this block face
*
- * @param face the face of the block to query or BlockFace.SELF for the block itself
+ * @param face the face of the block to query or BlockFace.SELF for the
+ * block itself
* @return The power level.
*/
int getBlockPower(BlockFace face);
@@ -306,7 +310,8 @@ public interface Block extends Metadatable {
/**
* Checks if this block is empty.
*
- * A block is considered empty when {@link #getType()} returns {@link Material#AIR}.
+ * A block is considered empty when {@link #getType()} returns {@link
+ * Material#AIR}.
*
* @return true if this block is empty
*/
@@ -315,7 +320,9 @@ public interface Block extends Metadatable {
/**
* Checks if this block is liquid.
*
- * A block is considered liquid when {@link #getType()} returns {@link Material#WATER}, {@link Material#STATIONARY_WATER}, {@link Material#LAVA} or {@link Material#STATIONARY_LAVA}.
+ * A block is considered liquid when {@link #getType()} returns {@link
+ * Material#WATER}, {@link Material#STATIONARY_WATER}, {@link
+ * Material#LAVA} or {@link Material#STATIONARY_LAVA}.
*
* @return true if this block is liquid
*/
@@ -350,7 +357,8 @@ public interface Block extends Metadatable {
boolean breakNaturally();
/**
- * Breaks the block and spawns items as if a player had digged it with a specific tool
+ * Breaks the block and spawns items as if a player had digged it with a
+ * specific tool
*
* @param tool The tool or item in hand used for digging
* @return true if the block was destroyed
@@ -365,7 +373,8 @@ public interface Block extends Metadatable {
Collection getDrops();
/**
- * Returns a list of items which would drop by destroying this block with a specific tool
+ * Returns a list of items which would drop by destroying this block with
+ * a specific tool
*
* @param tool The tool or item in hand used for digging
* @return a list of dropped items for this type of block
diff --git a/paper-api/src/main/java/org/bukkit/block/BlockState.java b/paper-api/src/main/java/org/bukkit/block/BlockState.java
index 784454a444..ca571739f4 100644
--- a/paper-api/src/main/java/org/bukkit/block/BlockState.java
+++ b/paper-api/src/main/java/org/bukkit/block/BlockState.java
@@ -8,12 +8,13 @@ import org.bukkit.material.MaterialData;
import org.bukkit.metadata.Metadatable;
/**
- * Represents a captured state of a block, which will not change automatically.
+ * Represents a captured state of a block, which will not change
+ * automatically.
*
- * Unlike Block, which only one object can exist per coordinate, BlockState can
- * exist multiple times for any given Block. Note that another plugin may change
- * the state of the block and you will not know, or they may change the block to
- * another type entirely, causing your BlockState to become invalid.
+ * Unlike Block, which only one object can exist per coordinate, BlockState
+ * can exist multiple times for any given Block. Note that another plugin may
+ * change the state of the block and you will not know, or they may change the
+ * block to another type entirely, causing your BlockState to become invalid.
*/
public interface BlockState extends Metadatable {
@@ -90,8 +91,10 @@ public interface BlockState extends Metadatable {
Location getLocation();
/**
- * Stores the location of this block in the provided Location object.
- * If the provided Location is null this method does nothing and returns null.
+ * Stores the location of this block in the provided Location object.
+ *
+ * If the provided Location is null this method does nothing and returns
+ * null.
*
* @return The Location object provided or null
*/
@@ -129,8 +132,8 @@ public interface BlockState extends Metadatable {
boolean setTypeId(int type);
/**
- * Attempts to update the block represented by this state, setting it to the
- * new values as defined by this state.
+ * Attempts to update the block represented by this state, setting it to
+ * the new values as defined by this state.
*
* This has the same effect as calling update(false). That is to say,
* this will not modify the state of a block if it is no longer the same
@@ -143,11 +146,11 @@ public interface BlockState extends Metadatable {
boolean update();
/**
- * Attempts to update the block represented by this state, setting it to the
- * new values as defined by this state.
+ * Attempts to update the block represented by this state, setting it to
+ * the new values as defined by this state.
*
- * This has the same effect as calling update(force, true). That is to say,
- * this will trigger a physics update to surrounding blocks.
+ * This has the same effect as calling update(force, true). That is to
+ * say, this will trigger a physics update to surrounding blocks.
*
* @param force true to forcefully set the state
* @return true if the update was successful, otherwise false
@@ -155,21 +158,22 @@ public interface BlockState extends Metadatable {
boolean update(boolean force);
/**
- * Attempts to update the block represented by this state, setting it to the
- * new values as defined by this state.
+ * Attempts to update the block represented by this state, setting it to
+ * the new values as defined by this state.
*
- * Unless force is true, this will not modify the state of a block if it is
- * no longer the same type as it was when this state was taken. It will return
- * false in this eventuality.
+ * Unless force is true, this will not modify the state of a block if it
+ * is no longer the same type as it was when this state was taken. It will
+ * return false in this eventuality.
*
- * If force is true, it will set the type of the block to match the new state,
- * set the state data and then return true.
+ * If force is true, it will set the type of the block to match the new
+ * state, set the state data and then return true.
*
- * If applyPhysics is true, it will trigger a physics update on surrounding
- * blocks which could cause them to update or disappear.
+ * If applyPhysics is true, it will trigger a physics update on
+ * surrounding blocks which could cause them to update or disappear.
*
* @param force true to forcefully set the state
- * @param applyPhysics false to cancel updating physics on surrounding blocks
+ * @param applyPhysics false to cancel updating physics on surrounding
+ * blocks
* @return true if the update was successful, otherwise false
*/
boolean update(boolean force, boolean applyPhysics);
diff --git a/paper-api/src/main/java/org/bukkit/block/Chest.java b/paper-api/src/main/java/org/bukkit/block/Chest.java
index 8f6e961b2c..125d5e70c8 100644
--- a/paper-api/src/main/java/org/bukkit/block/Chest.java
+++ b/paper-api/src/main/java/org/bukkit/block/Chest.java
@@ -8,8 +8,8 @@ import org.bukkit.inventory.Inventory;
public interface Chest extends BlockState, ContainerBlock {
/**
- * Returns the chest's inventory. If this is a double chest, it returns just
- * the portion of the inventory linked to this half of the chest.
+ * Returns the chest's inventory. If this is a double chest, it returns
+ * just the portion of the inventory linked to this half of the chest.
*
* @return The inventory.
*/
diff --git a/paper-api/src/main/java/org/bukkit/block/ContainerBlock.java b/paper-api/src/main/java/org/bukkit/block/ContainerBlock.java
index f51d0fa8f9..c69ac9e576 100644
--- a/paper-api/src/main/java/org/bukkit/block/ContainerBlock.java
+++ b/paper-api/src/main/java/org/bukkit/block/ContainerBlock.java
@@ -4,6 +4,7 @@ import org.bukkit.inventory.InventoryHolder;
/**
* Indicates a block type that has inventory.
+ *
* @deprecated in favour of {@link InventoryHolder}
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/block/DoubleChest.java b/paper-api/src/main/java/org/bukkit/block/DoubleChest.java
index cfc5b2081c..148099c5c1 100644
--- a/paper-api/src/main/java/org/bukkit/block/DoubleChest.java
+++ b/paper-api/src/main/java/org/bukkit/block/DoubleChest.java
@@ -6,6 +6,9 @@ import org.bukkit.inventory.DoubleChestInventory;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
+/**
+ * Represents a double chest.
+ */
public class DoubleChest implements InventoryHolder {
private DoubleChestInventory inventory;
diff --git a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
index 02d9649e54..e5279f7ef3 100644
--- a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
+++ b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
@@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.Map;
public enum PistonMoveReaction {
+
/**
* Indicates that the block can be pushed or pulled.
*/
diff --git a/paper-api/src/main/java/org/bukkit/command/Command.java b/paper-api/src/main/java/org/bukkit/command/Command.java
index 4ad60996db..1c23572036 100644
--- a/paper-api/src/main/java/org/bukkit/command/Command.java
+++ b/paper-api/src/main/java/org/bukkit/command/Command.java
@@ -64,13 +64,14 @@ public abstract class Command {
}
/**
- * Executed on tab completion for this command, returning a list of options
- * the player can tab through.
+ * Executed on tab completion for this command, returning a list of
+ * options the player can tab through.
*
* @param sender Source object which is executing this command
* @param alias the alias being used
* @param args All arguments passed to the command, split via ' '
- * @return a list of tab-completions for the specified arguments. This will never be null. List may be immutable.
+ * @return a list of tab-completions for the specified arguments. This
+ * will never be null. List may be immutable.
* @throws IllegalArgumentException if sender, alias, or args is null
*/
public List tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
@@ -108,7 +109,8 @@ public abstract class Command {
}
/**
- * Gets the permission required by users to be able to perform this command
+ * Gets the permission required by users to be able to perform this
+ * command
*
* @return Permission name, or null if none
*/
@@ -117,7 +119,8 @@ public abstract class Command {
}
/**
- * Sets the permission required by users to be able to perform this command
+ * Sets the permission required by users to be able to perform this
+ * command
*
* @param permission Permission name or null
*/
@@ -126,9 +129,11 @@ public abstract class Command {
}
/**
- * Tests the given {@link CommandSender} to see if they can perform this command.
+ * Tests the given {@link CommandSender} to see if they can perform this
+ * command.
*
- * If they do not have permission, they will be informed that they cannot do this.
+ * If they do not have permission, they will be informed that they cannot
+ * do this.
*
* @param target User to test
* @return true if they can use it, otherwise false
@@ -150,7 +155,8 @@ public abstract class Command {
}
/**
- * Tests the given {@link CommandSender} to see if they can perform this command.
+ * Tests the given {@link CommandSender} to see if they can perform this
+ * command.
*
* No error is sent to the sender.
*
@@ -181,12 +187,14 @@ public abstract class Command {
}
/**
- * Sets the label of this command
- * If the command is currently registered the label change will only take effect after
- * its been reregistered e.g. after a /reload
+ * Sets the label of this command.
+ *
+ * If the command is currently registered the label change will only take
+ * effect after its been re-registered e.g. after a /reload
*
* @param name The command's name
- * @return returns true if the name change happened instantly or false if it was scheduled for reregistration
+ * @return returns true if the name change happened instantly or false if
+ * it was scheduled for re-registration
*/
public boolean setLabel(String name) {
this.nextLabel = name;
@@ -198,11 +206,12 @@ public abstract class Command {
}
/**
- * Registers this command to a CommandMap
+ * Registers this command to a CommandMap.
* Once called it only allows changes the registered CommandMap
*
* @param commandMap the CommandMap to register this command to
- * @return true if the registration was successful (the current registered CommandMap was the passed CommandMap or null) false otherwise
+ * @return true if the registration was successful (the current registered
+ * CommandMap was the passed CommandMap or null) false otherwise
*/
public boolean register(CommandMap commandMap) {
if (allowChangesFrom(commandMap)) {
@@ -214,10 +223,13 @@ public abstract class Command {
}
/**
- * Unregisters this command from the passed CommandMap applying any outstanding changes
+ * Unregisters this command from the passed CommandMap applying any
+ * outstanding changes
*
* @param commandMap the CommandMap to unregister
- * @return true if the unregistration was successfull (the current registered CommandMap was the passed CommandMap or null) false otherwise
+ * @return true if the unregistration was successfull (the current
+ * registered CommandMap was the passed CommandMap or null) false
+ * otherwise
*/
public boolean unregister(CommandMap commandMap) {
if (allowChangesFrom(commandMap)) {
@@ -253,7 +265,8 @@ public abstract class Command {
}
/**
- * Returns a message to be displayed on a failed permission check for this command
+ * Returns a message to be displayed on a failed permission check for this
+ * command
*
* @return Permission check failed message
*/
diff --git a/paper-api/src/main/java/org/bukkit/command/CommandException.java b/paper-api/src/main/java/org/bukkit/command/CommandException.java
index 76c1a0169a..b63015f402 100644
--- a/paper-api/src/main/java/org/bukkit/command/CommandException.java
+++ b/paper-api/src/main/java/org/bukkit/command/CommandException.java
@@ -7,12 +7,14 @@ package org.bukkit.command;
public class CommandException extends RuntimeException {
/**
- * Creates a new instance of CommandException without detail message.
+ * Creates a new instance of CommandException without detail
+ * message.
*/
public CommandException() {}
/**
- * Constructs an instance of CommandException with the specified detail message.
+ * Constructs an instance of CommandException with the
+ * specified detail message.
*
* @param msg the detail message.
*/
diff --git a/paper-api/src/main/java/org/bukkit/command/CommandMap.java b/paper-api/src/main/java/org/bukkit/command/CommandMap.java
index e7fad28755..e7e20d89df 100644
--- a/paper-api/src/main/java/org/bukkit/command/CommandMap.java
+++ b/paper-api/src/main/java/org/bukkit/command/CommandMap.java
@@ -6,37 +6,62 @@ public interface CommandMap {
/**
* Registers all the commands belonging to a certain plugin.
+ *
* Caller can use:-
- * command.getName() to determine the label registered for this command
- * command.getAliases() to determine the aliases which where registered
+ *
+ *
command.getName() to determine the label registered for this
+ * command
+ *
command.getAliases() to determine the aliases which where
+ * registered
+ *
*
- * @param fallbackPrefix a prefix which is prepended to each command with a ':' one or more times to make the command unique
+ * @param fallbackPrefix a prefix which is prepended to each command with
+ * a ':' one or more times to make the command unique
* @param commands a list of commands to register
*/
public void registerAll(String fallbackPrefix, List commands);
/**
- * Registers a command. Returns true on success; false if name is already taken and fallback had to be used.
+ * Registers a command. Returns true on success; false if name is already
+ * taken and fallback had to be used.
+ *
* Caller can use:-
- * command.getName() to determine the label registered for this command
- * command.getAliases() to determine the aliases which where registered
+ *
+ *
command.getName() to determine the label registered for this
+ * command
+ *
command.getAliases() to determine the aliases which where
+ * registered
+ *
*
* @param label the label of the command, without the '/'-prefix.
- * @param fallbackPrefix a prefix which is prepended to the command with a ':' one or more times to make the command unique
+ * @param fallbackPrefix a prefix which is prepended to the command with a
+ * ':' one or more times to make the command unique
* @param command the command to register
- * @return true if command was registered with the passed in label, false otherwise, which indicates the fallbackPrefix was used one or more times
+ * @return true if command was registered with the passed in label, false
+ * otherwise, which indicates the fallbackPrefix was used one or more
+ * times
*/
public boolean register(String label, String fallbackPrefix, Command command);
/**
- * Registers a command. Returns true on success; false if name is already taken and fallback had to be used.
+ * Registers a command. Returns true on success; false if name is already
+ * taken and fallback had to be used.
+ *
* Caller can use:-
- * command.getName() to determine the label registered for this command
- * command.getAliases() to determine the aliases which where registered
+ *
+ *
command.getName() to determine the label registered for this
+ * command
+ *
command.getAliases() to determine the aliases which where
+ * registered
+ *
*
- * @param fallbackPrefix a prefix which is prepended to the command with a ':' one or more times to make the command unique
- * @param command the command to register, from which label is determined from the command name
- * @return true if command was registered with the passed in label, false otherwise, which indicates the fallbackPrefix was used one or more times
+ * @param fallbackPrefix a prefix which is prepended to the command with a
+ * ':' one or more times to make the command unique
+ * @param command the command to register, from which label is determined
+ * from the command name
+ * @return true if command was registered with the passed in label, false
+ * otherwise, which indicates the fallbackPrefix was used one or more
+ * times
*/
public boolean register(String fallbackPrefix, Command command);
@@ -46,7 +71,8 @@ public interface CommandMap {
* @param sender The command's sender
* @param cmdLine command + arguments. Example: "/test abc 123"
* @return returns false if no target is found, true otherwise.
- * @throws CommandException Thrown when the executor for the given command fails with an unhandled exception
+ * @throws CommandException Thrown when the executor for the given command
+ * fails with an unhandled exception
*/
public boolean dispatch(CommandSender sender, String cmdLine) throws CommandException;
@@ -59,18 +85,24 @@ public interface CommandMap {
* Gets the command registered to the specified name
*
* @param name Name of the command to retrieve
- * @return Command with the specified name or null if a command with that label doesn't exist
+ * @return Command with the specified name or null if a command with that
+ * label doesn't exist
*/
public Command getCommand(String name);
/**
- * Looks for the requested command and executes an appropriate tab-completer if found. This method will also tab-complete partial commands.
+ * Looks for the requested command and executes an appropriate
+ * tab-completer if found. This method will also tab-complete partial
+ * commands.
*
* @param sender The command's sender.
- * @param cmdLine The entire command string to tab-complete, excluding initial slash.
- * @return a list of possible tab-completions. This list may be immutable. Will be null if no matching command of which sender has permission.
- * @throws CommandException Thrown when the tab-completer for the given command fails with an unhandled exception
+ * @param cmdLine The entire command string to tab-complete, excluding
+ * initial slash.
+ * @return a list of possible tab-completions. This list may be immutable.
+ * Will be null if no matching command of which sender has permission.
+ * @throws CommandException Thrown when the tab-completer for the given
+ * command fails with an unhandled exception
* @throws IllegalArgumentException if either sender or cmdLine are null
*/
public List tabComplete(CommandSender sender, String cmdLine) throws IllegalArgumentException;
diff --git a/paper-api/src/main/java/org/bukkit/command/PluginCommand.java b/paper-api/src/main/java/org/bukkit/command/PluginCommand.java
index f90ee7e08b..3bfa31fc81 100644
--- a/paper-api/src/main/java/org/bukkit/command/PluginCommand.java
+++ b/paper-api/src/main/java/org/bukkit/command/PluginCommand.java
@@ -104,17 +104,20 @@ public final class PluginCommand extends Command implements PluginIdentifiableCo
}
/**
- * {@inheritDoc}
- *
- * Delegates to the tab completer if present.
- * If it is not present or returns null, will delegate to the current command
- * executor if it implements {@link TabCompleter}. If a non-null list has not
- * been found, will default to standard player name completion in
- * {@link Command#tabComplete(CommandSender, String, String[])}.
- *
+ * {@inheritDoc}
+ *
+ * Delegates to the tab completer if present.
+ *
+ * If it is not present or returns null, will delegate to the current
+ * command executor if it implements {@link TabCompleter}. If a non-null
+ * list has not been found, will default to standard player name
+ * completion in {@link
+ * Command#tabComplete(CommandSender, String, String[])}.
+ *
* This method does not consider permissions.
*
- * @throws CommandException if the completer or executor throw an exception during the process of tab-completing.
+ * @throws CommandException if the completer or executor throw an
+ * exception during the process of tab-completing.
* @throws IllegalArgumentException if sender, alias, or args is null
*/
@Override
diff --git a/paper-api/src/main/java/org/bukkit/command/PluginIdentifiableCommand.java b/paper-api/src/main/java/org/bukkit/command/PluginIdentifiableCommand.java
index c58abb6617..c5e0d2c4d3 100644
--- a/paper-api/src/main/java/org/bukkit/command/PluginIdentifiableCommand.java
+++ b/paper-api/src/main/java/org/bukkit/command/PluginIdentifiableCommand.java
@@ -3,12 +3,13 @@ package org.bukkit.command;
import org.bukkit.plugin.Plugin;
/**
- * This interface is used by the help system to group commands into sub-indexes based
- * on the {@link Plugin} they are a part of. Custom command implementations will need to
- * implement this interface to have a sub-index automatically generated on the plugin's
- * behalf.
+ * This interface is used by the help system to group commands into
+ * sub-indexes based on the {@link Plugin} they are a part of. Custom command
+ * implementations will need to implement this interface to have a sub-index
+ * automatically generated on the plugin's behalf.
*/
public interface PluginIdentifiableCommand {
+
/**
* Gets the owner of this PluginIdentifiableCommand.
*
diff --git a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java
index f7167824ba..c2f488a719 100644
--- a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java
+++ b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java
@@ -117,14 +117,18 @@ public class SimpleCommandMap implements CommandMap {
}
/**
- * Registers a command with the given name is possible, otherwise uses fallbackPrefix to create a unique name if its not an alias
+ * Registers a command with the given name is possible, otherwise uses
+ * fallbackPrefix to create a unique name if its not an alias
*
* @param label the name of the command, without the '/'-prefix.
- * @param fallbackPrefix a prefix which is prepended to the command with a ':' one or more times to make the command unique
+ * @param fallbackPrefix a prefix which is prepended to the command with a
+ * ':' one or more times to make the command unique
* @param command the command to register
- * @return true if command was registered with the passed in label, false otherwise.
- * If isAlias was true a return of false indicates no command was registerd
- * If isAlias was false a return of false indicates the fallbackPrefix was used one or more times to create a unique name for the command
+ * @return true if command was registered with the passed in label, false
+ * otherwise. If isAlias was true a return of false indicates no
+ * command was registered. If isAlias was false a return of false
+ * indicates the fallbackPrefix was used one or more times to create a
+ * unique name for the command
*/
private synchronized boolean register(String label, String fallbackPrefix, Command command, boolean isAlias) {
String lowerLabel = label.trim().toLowerCase();
diff --git a/paper-api/src/main/java/org/bukkit/command/TabCommandExecutor.java b/paper-api/src/main/java/org/bukkit/command/TabCommandExecutor.java
index bf6ddd4e2c..d24d795cee 100644
--- a/paper-api/src/main/java/org/bukkit/command/TabCommandExecutor.java
+++ b/paper-api/src/main/java/org/bukkit/command/TabCommandExecutor.java
@@ -5,7 +5,8 @@ import java.util.List;
/**
* Represents a class which can handle command tab completion and commands
*
- * @deprecated Remains for plugins that would have implemented it even without functionality
+ * @deprecated Remains for plugins that would have implemented it even without
+ * functionality
* @see TabExecutor
*/
@Deprecated
diff --git a/paper-api/src/main/java/org/bukkit/command/TabCompleter.java b/paper-api/src/main/java/org/bukkit/command/TabCompleter.java
index 3ba64fe8cb..6d61e3ab3c 100644
--- a/paper-api/src/main/java/org/bukkit/command/TabCompleter.java
+++ b/paper-api/src/main/java/org/bukkit/command/TabCompleter.java
@@ -13,8 +13,10 @@ public interface TabCompleter {
* @param sender Source of the command
* @param command Command which was executed
* @param alias The alias used
- * @param args The arguments passed to the command, including final partial argument to be completed and command label
- * @return A List of possible completions for the final argument, or null to default to the command executor
+ * @param args The arguments passed to the command, including final
+ * partial argument to be completed and command label
+ * @return A List of possible completions for the final argument, or null
+ * to default to the command executor
*/
public List onTabComplete(CommandSender sender, Command command, String alias, String[] args);
}
diff --git a/paper-api/src/main/java/org/bukkit/command/TabExecutor.java b/paper-api/src/main/java/org/bukkit/command/TabExecutor.java
index 67b3503dbc..6b8e3fb2a0 100644
--- a/paper-api/src/main/java/org/bukkit/command/TabExecutor.java
+++ b/paper-api/src/main/java/org/bukkit/command/TabExecutor.java
@@ -1,7 +1,8 @@
package org.bukkit.command;
/**
- * This class is provided as a convenience to implement both TabCompleter and CommandExecutor.
+ * This class is provided as a convenience to implement both TabCompleter and
+ * CommandExecutor.
*/
public interface TabExecutor extends TabCompleter, CommandExecutor {
}
diff --git a/paper-api/src/main/java/org/bukkit/configuration/Configuration.java b/paper-api/src/main/java/org/bukkit/configuration/Configuration.java
index 6fa8018637..9289c218e0 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/Configuration.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/Configuration.java
@@ -9,11 +9,12 @@ public interface Configuration extends ConfigurationSection {
/**
* Sets the default value of the given path as provided.
*
- * If no source {@link Configuration} was provided as a default collection,
- * then a new {@link MemoryConfiguration} will be created to hold the new default
- * value.
+ * If no source {@link Configuration} was provided as a default
+ * collection, then a new {@link MemoryConfiguration} will be created to
+ * hold the new default value.
*
- * If value is null, the value will be removed from the default Configuration source.
+ * If value is null, the value will be removed from the default
+ * Configuration source.
*
* @param path Path of the value to set.
* @param value Value to set the default to.
@@ -24,9 +25,9 @@ public interface Configuration extends ConfigurationSection {
/**
* Sets the default values of the given paths as provided.
*
- * If no source {@link Configuration} was provided as a default collection,
- * then a new {@link MemoryConfiguration} will be created to hold the new default
- * values.
+ * If no source {@link Configuration} was provided as a default
+ * collection, then a new {@link MemoryConfiguration} will be created to
+ * hold the new default values.
*
* @param defaults A map of Path->Values to add to defaults.
* @throws IllegalArgumentException Thrown if defaults is null.
@@ -36,13 +37,14 @@ public interface Configuration extends ConfigurationSection {
/**
* Sets the default values of the given paths as provided.
*
- * If no source {@link Configuration} was provided as a default collection,
- * then a new {@link MemoryConfiguration} will be created to hold the new default
- * value.
+ * If no source {@link Configuration} was provided as a default
+ * collection, then a new {@link MemoryConfiguration} will be created to
+ * hold the new default value.
*
- * This method will not hold a reference to the specified Configuration, nor will it
- * automatically update if that Configuration ever changes. If you require this,
- * you should set the default source with {@link #setDefaults(org.bukkit.configuration.Configuration)}.
+ * This method will not hold a reference to the specified Configuration,
+ * nor will it automatically update if that Configuration ever changes. If
+ * you require this, you should set the default source with {@link
+ * #setDefaults(org.bukkit.configuration.Configuration)}.
*
* @param defaults A configuration holding a list of defaults to copy.
* @throws IllegalArgumentException Thrown if defaults is null or this.
@@ -52,8 +54,8 @@ public interface Configuration extends ConfigurationSection {
/**
* Sets the source of all default values for this {@link Configuration}.
*
- * If a previous source was set, or previous default values were defined, then they will
- * not be copied to the new source.
+ * If a previous source was set, or previous default values were defined,
+ * then they will not be copied to the new source.
*
* @param defaults New source of default values for this configuration.
* @throws IllegalArgumentException Thrown if defaults is null or this.
@@ -63,9 +65,9 @@ public interface Configuration extends ConfigurationSection {
/**
* Gets the source {@link Configuration} for this configuration.
*
- * If no configuration source was set, but default values were added, then a
- * {@link MemoryConfiguration} will be returned. If no source was set and no
- * defaults were set, then this method will return null.
+ * If no configuration source was set, but default values were added, then
+ * a {@link MemoryConfiguration} will be returned. If no source was set
+ * and no defaults were set, then this method will return null.
*
* @return Configuration source for default values, or null if none exist.
*/
diff --git a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java
index 73ca421cd4..2f59382223 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java
@@ -1,7 +1,8 @@
package org.bukkit.configuration;
/**
- * Various settings for controlling the input and output of a {@link Configuration}
+ * Various settings for controlling the input and output of a {@link
+ * Configuration}
*/
public class ConfigurationOptions {
private char pathSeparator = '.';
@@ -22,10 +23,11 @@ public class ConfigurationOptions {
}
/**
- * Gets the char that will be used to separate {@link ConfigurationSection}s
+ * Gets the char that will be used to separate {@link
+ * ConfigurationSection}s
*
- * This value does not affect how the {@link Configuration} is stored, only in
- * how you access the data. The default value is '.'.
+ * This value does not affect how the {@link Configuration} is stored,
+ * only in how you access the data. The default value is '.'.
*
* @return Path separator
*/
@@ -34,10 +36,11 @@ public class ConfigurationOptions {
}
/**
- * Sets the char that will be used to separate {@link ConfigurationSection}s
+ * Sets the char that will be used to separate {@link
+ * ConfigurationSection}s
*
- * This value does not affect how the {@link Configuration} is stored, only in
- * how you access the data. The default value is '.'.
+ * This value does not affect how the {@link Configuration} is stored,
+ * only in how you access the data. The default value is '.'.
*
* @param value Path separator
* @return This object, for chaining
@@ -48,13 +51,16 @@ public class ConfigurationOptions {
}
/**
- * Checks if the {@link Configuration} should copy values from its default {@link Configuration} directly.
+ * Checks if the {@link Configuration} should copy values from its default
+ * {@link Configuration} directly.
*
- * If this is true, all values in the default Configuration will be directly copied,
- * making it impossible to distinguish between values that were set and values that
- * are provided by default. As a result, {@link ConfigurationSection#contains(java.lang.String)} will always
- * return the same value as {@link ConfigurationSection#isSet(java.lang.String)}.
- * The default value is false.
+ * If this is true, all values in the default Configuration will be
+ * directly copied, making it impossible to distinguish between values
+ * that were set and values that are provided by default. As a result,
+ * {@link ConfigurationSection#contains(java.lang.String)} will always
+ * return the same value as {@link
+ * ConfigurationSection#isSet(java.lang.String)}. The default value is
+ * false.
*
* @return Whether or not defaults are directly copied
*/
@@ -63,13 +69,16 @@ public class ConfigurationOptions {
}
/**
- * Sets if the {@link Configuration} should copy values from its default {@link Configuration} directly.
+ * Sets if the {@link Configuration} should copy values from its default
+ * {@link Configuration} directly.
*
- * If this is true, all values in the default Configuration will be directly copied,
- * making it impossible to distinguish between values that were set and values that
- * are provided by default. As a result, {@link ConfigurationSection#contains(java.lang.String)} will always
- * return the same value as {@link ConfigurationSection#isSet(java.lang.String)}.
- * The default value is false.
+ * If this is true, all values in the default Configuration will be
+ * directly copied, making it impossible to distinguish between values
+ * that were set and values that are provided by default. As a result,
+ * {@link ConfigurationSection#contains(java.lang.String)} will always
+ * return the same value as {@link
+ * ConfigurationSection#isSet(java.lang.String)}. The default value is
+ * false.
*
* @param value Whether or not defaults are directly copied
* @return This object, for chaining
diff --git a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java
index c207e3d6e8..1bd7fb51c2 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java
@@ -16,14 +16,15 @@ public interface ConfigurationSection {
/**
* Gets a set containing all keys in this section.
*
- * If deep is set to true, then this will contain all the keys within any child
- * {@link ConfigurationSection}s (and their children, etc). These will be in a
- * valid path notation for you to use.
+ * If deep is set to true, then this will contain all the keys within any
+ * child {@link ConfigurationSection}s (and their children, etc). These
+ * will be in a valid path notation for you to use.
*
- * If deep is set to false, then this will contain only the keys of any direct children,
- * and not their own children.
+ * If deep is set to false, then this will contain only the keys of any
+ * direct children, and not their own children.
*
- * @param deep Whether or not to get a deep list, as opposed to a shallow list.
+ * @param deep Whether or not to get a deep list, as opposed to a shallow
+ * list.
* @return Set of keys contained within this ConfigurationSection.
*/
public Set getKeys(boolean deep);
@@ -31,14 +32,15 @@ public interface ConfigurationSection {
/**
* Gets a Map containing all keys and their values for this section.
*
- * If deep is set to true, then this will contain all the keys and values within
- * any child {@link ConfigurationSection}s (and their children, etc). These
- * keys will be in a valid path notation for you to use.
+ * If deep is set to true, then this will contain all the keys and values
+ * within any child {@link ConfigurationSection}s (and their children,
+ * etc). These keys will be in a valid path notation for you to use.
*
- * If deep is set to false, then this will contain only the keys and values of any
- * direct children, and not their own children.
+ * If deep is set to false, then this will contain only the keys and
+ * values of any direct children, and not their own children.
*
- * @param deep Whether or not to get a deep list, as opposed to a shallow list.
+ * @param deep Whether or not to get a deep list, as opposed to a shallow
+ * list.
* @return Map of keys and values of this section.
*/
public Map getValues(boolean deep);
@@ -46,72 +48,80 @@ public interface ConfigurationSection {
/**
* Checks if this {@link ConfigurationSection} contains the given path.
*
- * If the value for the requested path does not exist but a default value has
- * been specified, this will return true.
+ * If the value for the requested path does not exist but a default value
+ * has been specified, this will return true.
*
* @param path Path to check for existence.
- * @return True if this section contains the requested path, either via default or being set.
+ * @return True if this section contains the requested path, either via
+ * default or being set.
* @throws IllegalArgumentException Thrown when path is null.
*/
public boolean contains(String path);
/**
- * Checks if this {@link ConfigurationSection} has a value set for the given path.
+ * Checks if this {@link ConfigurationSection} has a value set for the
+ * given path.
*
- * If the value for the requested path does not exist but a default value has
- * been specified, this will still return false.
+ * If the value for the requested path does not exist but a default value
+ * has been specified, this will still return false.
*
* @param path Path to check for existence.
- * @return True if this section contains the requested path, regardless of having a default.
+ * @return True if this section contains the requested path, regardless of
+ * having a default.
* @throws IllegalArgumentException Thrown when path is null.
*/
public boolean isSet(String path);
/**
- * Gets the path of this {@link ConfigurationSection} from its root {@link Configuration}
+ * Gets the path of this {@link ConfigurationSection} from its root {@link
+ * Configuration}
*
- * For any {@link Configuration} themselves, this will return an empty string.
+ * For any {@link Configuration} themselves, this will return an empty
+ * string.
*
- * If the section is no longer contained within its root for any reason, such as
- * being replaced with a different value, this may return null.
+ * If the section is no longer contained within its root for any reason,
+ * such as being replaced with a different value, this may return null.
*
- * To retrieve the single name of this section, that is, the final part of the path
- * returned by this method, you may use {@link #getName()}.
+ * To retrieve the single name of this section, that is, the final part of
+ * the path returned by this method, you may use {@link #getName()}.
*
* @return Path of this section relative to its root
*/
public String getCurrentPath();
/**
- * Gets the name of this individual {@link ConfigurationSection}, in the path.
+ * Gets the name of this individual {@link ConfigurationSection}, in the
+ * path.
*
- * This will always be the final part of {@link #getCurrentPath()}, unless the
- * section is orphaned.
+ * This will always be the final part of {@link #getCurrentPath()}, unless
+ * the section is orphaned.
*
* @return Name of this section
*/
public String getName();
/**
- * Gets the root {@link Configuration} that contains this {@link ConfigurationSection}
+ * Gets the root {@link Configuration} that contains this {@link
+ * ConfigurationSection}
*
- * For any {@link Configuration} themselves, this will return its own object.
+ * For any {@link Configuration} themselves, this will return its own
+ * object.
*
- * If the section is no longer contained within its root for any reason, such as
- * being replaced with a different value, this may return null.
+ * If the section is no longer contained within its root for any reason,
+ * such as being replaced with a different value, this may return null.
*
* @return Root configuration containing this section.
*/
public Configuration getRoot();
/**
- * Gets the parent {@link ConfigurationSection} that directly contains this
- * {@link ConfigurationSection}.
+ * Gets the parent {@link ConfigurationSection} that directly contains
+ * this {@link ConfigurationSection}.
*
* For any {@link Configuration} themselves, this will return null.
*
- * If the section is no longer contained within its parent for any reason, such as
- * being replaced with a different value, this may return null.
+ * If the section is no longer contained within its parent for any reason,
+ * such as being replaced with a different value, this may return null.
*
* @return Parent section containing this section.
*/
@@ -120,9 +130,9 @@ public interface ConfigurationSection {
/**
* Gets the requested Object by path.
*
- * If the Object does not exist but a default value has been specified, this
- * will return the default value. If the Object does not exist and no default
- * value was specified, this will return null.
+ * If the Object does not exist but a default value has been specified,
+ * this will return the default value. If the Object does not exist and no
+ * default value was specified, this will return null.
*
* @param path Path of the Object to get.
* @return Requested Object.
@@ -130,10 +140,12 @@ public interface ConfigurationSection {
public Object get(String path);
/**
- * Gets the requested Object by path, returning a default value if not found.
+ * Gets the requested Object by path, returning a default value if not
+ * found.
*
- * If the Object does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the Object does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the Object to get.
* @param def The default value to return if the path is not found.
@@ -147,10 +159,10 @@ public interface ConfigurationSection {
* If value is null, the entry will be removed. Any existing entry will be
* replaced, regardless of what the new value is.
*
- * Some implementations may have limitations on what you may store. See their
- * individual javadocs for details. No implementations should allow you to store
- * {@link Configuration}s or {@link ConfigurationSection}s, please use
- * {@link #createSection(java.lang.String)} for that.
+ * Some implementations may have limitations on what you may store. See
+ * their individual javadocs for details. No implementations should allow
+ * you to store {@link Configuration}s or {@link ConfigurationSection}s,
+ * please use {@link #createSection(java.lang.String)} for that.
*
* @param path Path of the object to set.
* @param value New value to set the path to.
@@ -160,8 +172,9 @@ public interface ConfigurationSection {
/**
* Creates an empty {@link ConfigurationSection} at the specified path.
*
- * Any value that was previously set at this path will be overwritten. If the
- * previous value was itself a {@link ConfigurationSection}, it will be orphaned.
+ * Any value that was previously set at this path will be overwritten. If
+ * the previous value was itself a {@link ConfigurationSection}, it will
+ * be orphaned.
*
* @param path Path to create the section at.
* @return Newly created section
@@ -169,10 +182,12 @@ public interface ConfigurationSection {
public ConfigurationSection createSection(String path);
/**
- * Creates a {@link ConfigurationSection} at the specified path, with specified values.
+ * Creates a {@link ConfigurationSection} at the specified path, with
+ * specified values.
*
- * Any value that was previously set at this path will be overwritten. If the
- * previous value was itself a {@link ConfigurationSection}, it will be orphaned.
+ * Any value that was previously set at this path will be overwritten. If
+ * the previous value was itself a {@link ConfigurationSection}, it will
+ * be orphaned.
*
* @param path Path to create the section at.
* @param map The values to used.
@@ -184,9 +199,9 @@ public interface ConfigurationSection {
/**
* Gets the requested String by path.
*
- * If the String does not exist but a default value has been specified, this
- * will return the default value. If the String does not exist and no default
- * value was specified, this will return null.
+ * If the String does not exist but a default value has been specified,
+ * this will return the default value. If the String does not exist and no
+ * default value was specified, this will return null.
*
* @param path Path of the String to get.
* @return Requested String.
@@ -194,13 +209,16 @@ public interface ConfigurationSection {
public String getString(String path);
/**
- * Gets the requested String by path, returning a default value if not found.
+ * Gets the requested String by path, returning a default value if not
+ * found.
*
- * If the String does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the String does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the String to get.
- * @param def The default value to return if the path is not found or is not a String.
+ * @param def The default value to return if the path is not found or is
+ * not a String.
* @return Requested String.
*/
public String getString(String path, String def);
@@ -208,10 +226,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a String.
*
- * If the path exists but is not a String, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a String and return
- * appropriately.
+ * If the path exists but is not a String, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a String and return appropriately.
*
* @param path Path of the String to check.
* @return Whether or not the specified path is a String.
@@ -233,11 +251,13 @@ public interface ConfigurationSection {
/**
* Gets the requested int by path, returning a default value if not found.
*
- * If the int does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the int does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the int to get.
- * @param def The default value to return if the path is not found or is not an int.
+ * @param def The default value to return if the path is not found or is
+ * not an int.
* @return Requested int.
*/
public int getInt(String path, int def);
@@ -245,10 +265,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is an int.
*
- * If the path exists but is not a int, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a int and return
- * appropriately.
+ * If the path exists but is not a int, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a int and return appropriately.
*
* @param path Path of the int to check.
* @return Whether or not the specified path is an int.
@@ -258,9 +278,9 @@ public interface ConfigurationSection {
/**
* Gets the requested boolean by path.
*
- * If the boolean does not exist but a default value has been specified, this
- * will return the default value. If the boolean does not exist and no default
- * value was specified, this will return false.
+ * If the boolean does not exist but a default value has been specified,
+ * this will return the default value. If the boolean does not exist and
+ * no default value was specified, this will return false.
*
* @param path Path of the boolean to get.
* @return Requested boolean.
@@ -268,13 +288,16 @@ public interface ConfigurationSection {
public boolean getBoolean(String path);
/**
- * Gets the requested boolean by path, returning a default value if not found.
+ * Gets the requested boolean by path, returning a default value if not
+ * found.
*
- * If the boolean does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the boolean does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the boolean to get.
- * @param def The default value to return if the path is not found or is not a boolean.
+ * @param def The default value to return if the path is not found or is
+ * not a boolean.
* @return Requested boolean.
*/
public boolean getBoolean(String path, boolean def);
@@ -282,10 +305,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a boolean.
*
- * If the path exists but is not a boolean, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a boolean and return
- * appropriately.
+ * If the path exists but is not a boolean, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a boolean and return appropriately.
*
* @param path Path of the boolean to check.
* @return Whether or not the specified path is a boolean.
@@ -295,9 +318,9 @@ public interface ConfigurationSection {
/**
* Gets the requested double by path.
*
- * If the double does not exist but a default value has been specified, this
- * will return the default value. If the double does not exist and no default
- * value was specified, this will return 0.
+ * If the double does not exist but a default value has been specified,
+ * this will return the default value. If the double does not exist and no
+ * default value was specified, this will return 0.
*
* @param path Path of the double to get.
* @return Requested double.
@@ -305,13 +328,16 @@ public interface ConfigurationSection {
public double getDouble(String path);
/**
- * Gets the requested double by path, returning a default value if not found.
+ * Gets the requested double by path, returning a default value if not
+ * found.
*
- * If the double does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the double does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the double to get.
- * @param def The default value to return if the path is not found or is not a double.
+ * @param def The default value to return if the path is not found or is
+ * not a double.
* @return Requested double.
*/
public double getDouble(String path, double def);
@@ -319,10 +345,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a double.
*
- * If the path exists but is not a double, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a double and return
- * appropriately.
+ * If the path exists but is not a double, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a double and return appropriately.
*
* @param path Path of the double to check.
* @return Whether or not the specified path is a double.
@@ -333,8 +359,8 @@ public interface ConfigurationSection {
* Gets the requested long by path.
*
* If the long does not exist but a default value has been specified, this
- * will return the default value. If the long does not exist and no default
- * value was specified, this will return 0.
+ * will return the default value. If the long does not exist and no
+ * default value was specified, this will return 0.
*
* @param path Path of the long to get.
* @return Requested long.
@@ -342,13 +368,16 @@ public interface ConfigurationSection {
public long getLong(String path);
/**
- * Gets the requested long by path, returning a default value if not found.
+ * Gets the requested long by path, returning a default value if not
+ * found.
*
- * If the long does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the long does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the long to get.
- * @param def The default value to return if the path is not found or is not a long.
+ * @param def The default value to return if the path is not found or is
+ * not a long.
* @return Requested long.
*/
public long getLong(String path, long def);
@@ -356,10 +385,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a long.
*
- * If the path exists but is not a long, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a long and return
- * appropriately.
+ * If the path exists but is not a long, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a long and return appropriately.
*
* @param path Path of the long to check.
* @return Whether or not the specified path is a long.
@@ -371,8 +400,8 @@ public interface ConfigurationSection {
* Gets the requested List by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return null.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return null.
*
* @param path Path of the List to get.
* @return Requested List.
@@ -380,13 +409,16 @@ public interface ConfigurationSection {
public List> getList(String path);
/**
- * Gets the requested List by path, returning a default value if not found.
+ * Gets the requested List by path, returning a default value if not
+ * found.
*
- * If the List does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the List does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the List to get.
- * @param def The default value to return if the path is not found or is not a List.
+ * @param def The default value to return if the path is not found or is
+ * not a List.
* @return Requested List.
*/
public List> getList(String path, List> def);
@@ -394,10 +426,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a List.
*
- * If the path exists but is not a List, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a List and return
- * appropriately.
+ * If the path exists but is not a List, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a List and return appropriately.
*
* @param path Path of the List to check.
* @return Whether or not the specified path is a List.
@@ -408,11 +440,11 @@ public interface ConfigurationSection {
* Gets the requested List of String by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a String if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a String if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of String.
@@ -423,11 +455,11 @@ public interface ConfigurationSection {
* Gets the requested List of Integer by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Integer if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Integer if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Integer.
@@ -438,11 +470,11 @@ public interface ConfigurationSection {
* Gets the requested List of Boolean by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Boolean if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Boolean if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Boolean.
@@ -453,11 +485,11 @@ public interface ConfigurationSection {
* Gets the requested List of Double by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Double if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Double if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Double.
@@ -468,11 +500,11 @@ public interface ConfigurationSection {
* Gets the requested List of Float by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Float if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Float if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Float.
@@ -483,11 +515,11 @@ public interface ConfigurationSection {
* Gets the requested List of Long by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Long if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Long if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Long.
@@ -498,11 +530,11 @@ public interface ConfigurationSection {
* Gets the requested List of Byte by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Byte if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Byte if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Byte.
@@ -513,11 +545,11 @@ public interface ConfigurationSection {
* Gets the requested List of Character by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Character if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Character if
+ * possible, but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Character.
@@ -528,11 +560,11 @@ public interface ConfigurationSection {
* Gets the requested List of Short by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Short if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Short if possible,
+ * but may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Short.
@@ -543,11 +575,11 @@ public interface ConfigurationSection {
* Gets the requested List of Maps by path.
*
* If the List does not exist but a default value has been specified, this
- * will return the default value. If the List does not exist and no default
- * value was specified, this will return an empty List.
+ * will return the default value. If the List does not exist and no
+ * default value was specified, this will return an empty List.
*
- * This method will attempt to cast any values into a Map if possible, but may
- * miss any values out if they are not compatible.
+ * This method will attempt to cast any values into a Map if possible, but
+ * may miss any values out if they are not compatible.
*
* @param path Path of the List to get.
* @return Requested List of Maps.
@@ -558,9 +590,9 @@ public interface ConfigurationSection {
/**
* Gets the requested Vector by path.
*
- * If the Vector does not exist but a default value has been specified, this
- * will return the default value. If the Vector does not exist and no default
- * value was specified, this will return null.
+ * If the Vector does not exist but a default value has been specified,
+ * this will return the default value. If the Vector does not exist and no
+ * default value was specified, this will return null.
*
* @param path Path of the Vector to get.
* @return Requested Vector.
@@ -568,13 +600,16 @@ public interface ConfigurationSection {
public Vector getVector(String path);
/**
- * Gets the requested {@link Vector} by path, returning a default value if not found.
+ * Gets the requested {@link Vector} by path, returning a default value if
+ * not found.
*
- * If the Vector does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the Vector does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the Vector to get.
- * @param def The default value to return if the path is not found or is not a Vector.
+ * @param def The default value to return if the path is not found or is
+ * not a Vector.
* @return Requested Vector.
*/
public Vector getVector(String path, Vector def);
@@ -582,10 +617,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a Vector.
*
- * If the path exists but is not a Vector, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a Vector and return
- * appropriately.
+ * If the path exists but is not a Vector, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a Vector and return appropriately.
*
* @param path Path of the Vector to check.
* @return Whether or not the specified path is a Vector.
@@ -595,9 +630,10 @@ public interface ConfigurationSection {
/**
* Gets the requested OfflinePlayer by path.
*
- * If the OfflinePlayer does not exist but a default value has been specified, this
- * will return the default value. If the OfflinePlayer does not exist and no default
- * value was specified, this will return null.
+ * If the OfflinePlayer does not exist but a default value has been
+ * specified, this will return the default value. If the OfflinePlayer
+ * does not exist and no default value was specified, this will return
+ * null.
*
* @param path Path of the OfflinePlayer to get.
* @return Requested OfflinePlayer.
@@ -605,13 +641,16 @@ public interface ConfigurationSection {
public OfflinePlayer getOfflinePlayer(String path);
/**
- * Gets the requested {@link OfflinePlayer} by path, returning a default value if not found.
+ * Gets the requested {@link OfflinePlayer} by path, returning a default
+ * value if not found.
*
- * If the OfflinePlayer does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the OfflinePlayer does not exist then the specified default value
+ * will returned regardless of if a default has been identified in the
+ * root {@link Configuration}.
*
* @param path Path of the OfflinePlayer to get.
- * @param def The default value to return if the path is not found or is not an OfflinePlayer.
+ * @param def The default value to return if the path is not found or is
+ * not an OfflinePlayer.
* @return Requested OfflinePlayer.
*/
public OfflinePlayer getOfflinePlayer(String path, OfflinePlayer def);
@@ -619,10 +658,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is an OfflinePlayer.
*
- * If the path exists but is not a OfflinePlayer, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a OfflinePlayer and return
- * appropriately.
+ * If the path exists but is not a OfflinePlayer, this will return false.
+ * If the path does not exist, this will return false. If the path does
+ * not exist but a default value has been specified, this will check if
+ * that default value is a OfflinePlayer and return appropriately.
*
* @param path Path of the OfflinePlayer to check.
* @return Whether or not the specified path is an OfflinePlayer.
@@ -632,9 +671,9 @@ public interface ConfigurationSection {
/**
* Gets the requested ItemStack by path.
*
- * If the ItemStack does not exist but a default value has been specified, this
- * will return the default value. If the ItemStack does not exist and no default
- * value was specified, this will return null.
+ * If the ItemStack does not exist but a default value has been specified,
+ * this will return the default value. If the ItemStack does not exist and
+ * no default value was specified, this will return null.
*
* @param path Path of the ItemStack to get.
* @return Requested ItemStack.
@@ -642,13 +681,16 @@ public interface ConfigurationSection {
public ItemStack getItemStack(String path);
/**
- * Gets the requested {@link ItemStack} by path, returning a default value if not found.
+ * Gets the requested {@link ItemStack} by path, returning a default value
+ * if not found.
*
- * If the ItemStack does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the ItemStack does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the ItemStack to get.
- * @param def The default value to return if the path is not found or is not an ItemStack.
+ * @param def The default value to return if the path is not found or is
+ * not an ItemStack.
* @return Requested ItemStack.
*/
public ItemStack getItemStack(String path, ItemStack def);
@@ -656,10 +698,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is an ItemStack.
*
- * If the path exists but is not a ItemStack, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a ItemStack and return
- * appropriately.
+ * If the path exists but is not a ItemStack, this will return false. If
+ * the path does not exist, this will return false. If the path does not
+ * exist but a default value has been specified, this will check if that
+ * default value is a ItemStack and return appropriately.
*
* @param path Path of the ItemStack to check.
* @return Whether or not the specified path is an ItemStack.
@@ -669,9 +711,9 @@ public interface ConfigurationSection {
/**
* Gets the requested Color by path.
*
- * If the Color does not exist but a default value has been specified, this
- * will return the default value. If the Color does not exist and no default
- * value was specified, this will return null.
+ * If the Color does not exist but a default value has been specified,
+ * this will return the default value. If the Color does not exist and no
+ * default value was specified, this will return null.
*
* @param path Path of the Color to get.
* @return Requested Color.
@@ -679,13 +721,16 @@ public interface ConfigurationSection {
public Color getColor(String path);
/**
- * Gets the requested {@link Color} by path, returning a default value if not found.
+ * Gets the requested {@link Color} by path, returning a default value if
+ * not found.
*
- * If the Color does not exist then the specified default value will returned
- * regardless of if a default has been identified in the root {@link Configuration}.
+ * If the Color does not exist then the specified default value will
+ * returned regardless of if a default has been identified in the root
+ * {@link Configuration}.
*
* @param path Path of the Color to get.
- * @param def The default value to return if the path is not found or is not an Color.
+ * @param def The default value to return if the path is not found or is
+ * not a Color.
* @return Requested Color.
*/
public Color getColor(String path, Color def);
@@ -693,22 +738,23 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a Color.
*
- * If the path exists but is not a Color, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a Color and return
- * appropriately.
+ * If the path exists but is not a Color, this will return false. If the
+ * path does not exist, this will return false. If the path does not exist
+ * but a default value has been specified, this will check if that default
+ * value is a Color and return appropriately.
*
* @param path Path of the Color to check.
- * @return Whether or not the specified path is an Color.
+ * @return Whether or not the specified path is a Color.
*/
public boolean isColor(String path);
/**
* Gets the requested ConfigurationSection by path.
*
- * If the ConfigurationSection does not exist but a default value has been specified, this
- * will return the default value. If the ConfigurationSection does not exist and no default
- * value was specified, this will return null.
+ * If the ConfigurationSection does not exist but a default value has been
+ * specified, this will return the default value. If the
+ * ConfigurationSection does not exist and no default value was specified,
+ * this will return null.
*
* @param path Path of the ConfigurationSection to get.
* @return Requested ConfigurationSection.
@@ -718,9 +764,10 @@ public interface ConfigurationSection {
/**
* Checks if the specified path is a ConfigurationSection.
*
- * If the path exists but is not a ConfigurationSection, this will return false. If the path does not
- * exist, this will return false. If the path does not exist but a default value
- * has been specified, this will check if that default value is a ConfigurationSection and return
+ * If the path exists but is not a ConfigurationSection, this will return
+ * false. If the path does not exist, this will return false. If the path
+ * does not exist but a default value has been specified, this will check
+ * if that default value is a ConfigurationSection and return
* appropriately.
*
* @param path Path of the ConfigurationSection to check.
@@ -729,11 +776,12 @@ public interface ConfigurationSection {
public boolean isConfigurationSection(String path);
/**
- * Gets the equivalent {@link ConfigurationSection} from the default {@link Configuration} defined in {@link #getRoot()}.
+ * Gets the equivalent {@link ConfigurationSection} from the default
+ * {@link Configuration} defined in {@link #getRoot()}.
*
- * If the root contains no defaults, or the defaults doesn't contain a value
- * for this path, or the value at this path is not a {@link ConfigurationSection} then
- * this will return null.
+ * If the root contains no defaults, or the defaults doesn't contain a
+ * value for this path, or the value at this path is not a {@link
+ * ConfigurationSection} then this will return null.
*
* @return Equivalent section in root configuration
*/
@@ -742,15 +790,16 @@ public interface ConfigurationSection {
/**
* Sets the default value in the root at the given path as provided.
*
- * If no source {@link Configuration} was provided as a default collection,
- * then a new {@link MemoryConfiguration} will be created to hold the new default
- * value.
+ * If no source {@link Configuration} was provided as a default
+ * collection, then a new {@link MemoryConfiguration} will be created to
+ * hold the new default value.
*
- * If value is null, the value will be removed from the default Configuration source.
+ * If value is null, the value will be removed from the default
+ * Configuration source.
*
- * If the value as returned by {@link #getDefaultSection()} is null,
- * then this will create a new section at the path, replacing anything that
- * may have existed there previously.
+ * If the value as returned by {@link #getDefaultSection()} is null, then
+ * this will create a new section at the path, replacing anything that may
+ * have existed there previously.
*
* @param path Path of the value to set.
* @param value Value to set the default to.
diff --git a/paper-api/src/main/java/org/bukkit/configuration/InvalidConfigurationException.java b/paper-api/src/main/java/org/bukkit/configuration/InvalidConfigurationException.java
index 8143213981..d23480e59f 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/InvalidConfigurationException.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/InvalidConfigurationException.java
@@ -7,12 +7,14 @@ package org.bukkit.configuration;
public class InvalidConfigurationException extends Exception {
/**
- * Creates a new instance of InvalidConfigurationException without a message or cause.
+ * Creates a new instance of InvalidConfigurationException without a
+ * message or cause.
*/
public InvalidConfigurationException() {}
/**
- * Constructs an instance of InvalidConfigurationException with the specified message.
+ * Constructs an instance of InvalidConfigurationException with the
+ * specified message.
*
* @param msg The details of the exception.
*/
@@ -21,7 +23,8 @@ public class InvalidConfigurationException extends Exception {
}
/**
- * Constructs an instance of InvalidConfigurationException with the specified cause.
+ * Constructs an instance of InvalidConfigurationException with the
+ * specified cause.
*
* @param cause The cause of the exception.
*/
@@ -30,7 +33,8 @@ public class InvalidConfigurationException extends Exception {
}
/**
- * Constructs an instance of InvalidConfigurationException with the specified message and cause.
+ * Constructs an instance of InvalidConfigurationException with the
+ * specified message and cause.
*
* @param cause The cause of the exception.
* @param msg The details of the exception.
diff --git a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java
index 7eaeff34db..19c27a1c42 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java
@@ -19,8 +19,8 @@ public class MemoryConfiguration extends MemorySection implements Configuration
public MemoryConfiguration() {}
/**
- * Creates an empty {@link MemoryConfiguration} using the specified {@link Configuration}
- * as a source for all default values.
+ * Creates an empty {@link MemoryConfiguration} using the specified {@link
+ * Configuration} as a source for all default values.
*
* @param defaults Default value provider
* @throws IllegalArgumentException Thrown if defaults is null
diff --git a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfigurationOptions.java
index 16b1051471..44c046c483 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfigurationOptions.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfigurationOptions.java
@@ -1,7 +1,8 @@
package org.bukkit.configuration;
/**
- * Various settings for controlling the input and output of a {@link MemoryConfiguration}
+ * Various settings for controlling the input and output of a {@link
+ * MemoryConfiguration}
*/
public class MemoryConfigurationOptions extends ConfigurationOptions {
protected MemoryConfigurationOptions(MemoryConfiguration configuration) {
diff --git a/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java b/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java
index e20121e23b..f180bf5f76 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java
@@ -26,12 +26,14 @@ public class MemorySection implements ConfigurationSection {
private final String fullPath;
/**
- * Creates an empty MemorySection for use as a root {@link Configuration} section.
+ * Creates an empty MemorySection for use as a root {@link Configuration}
+ * section.
*
- * Note that calling this without being yourself a {@link Configuration} will throw an
- * exception!
+ * Note that calling this without being yourself a {@link Configuration}
+ * will throw an exception!
*
- * @throws IllegalStateException Thrown if this is not a {@link Configuration} root.
+ * @throws IllegalStateException Thrown if this is not a {@link
+ * Configuration} root.
*/
protected MemorySection() {
if (!(this instanceof Configuration)) {
@@ -48,8 +50,10 @@ public class MemorySection implements ConfigurationSection {
* Creates an empty MemorySection with the specified parent and path.
*
* @param parent Parent section that contains this own section.
- * @param path Path that you may access this section from via the root {@link Configuration}.
- * @throws IllegalArgumentException Thrown is parent or path is null, or if parent contains no root Configuration.
+ * @param path Path that you may access this section from via the root
+ * {@link Configuration}.
+ * @throws IllegalArgumentException Thrown is parent or path is null, or
+ * if parent contains no root Configuration.
*/
protected MemorySection(ConfigurationSection parent, String path) {
Validate.notNull(parent, "Parent cannot be null");
@@ -745,9 +749,11 @@ public class MemorySection implements ConfigurationSection {
}
/**
- * Creates a full path to the given {@link ConfigurationSection} from its root {@link Configuration}.
+ * Creates a full path to the given {@link ConfigurationSection} from its
+ * root {@link Configuration}.
*
- * You may use this method for any given {@link ConfigurationSection}, not only {@link MemorySection}.
+ * You may use this method for any given {@link ConfigurationSection}, not
+ * only {@link MemorySection}.
*
* @param section Section to create a path for.
* @param key Name of the specified section.
@@ -758,9 +764,11 @@ public class MemorySection implements ConfigurationSection {
}
/**
- * Creates a relative path to the given {@link ConfigurationSection} from the given relative section.
+ * Creates a relative path to the given {@link ConfigurationSection} from
+ * the given relative section.
*
- * You may use this method for any given {@link ConfigurationSection}, not only {@link MemorySection}.
+ * You may use this method for any given {@link ConfigurationSection}, not
+ * only {@link MemorySection}.
*
* @param section Section to create a path for.
* @param key Name of the specified section.
diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
index 33aac313b1..3f9992e76b 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
@@ -16,7 +16,8 @@ import org.bukkit.configuration.Configuration;
import org.bukkit.configuration.MemoryConfiguration;
/**
- * This is a base class for all File based implementations of {@link Configuration}
+ * This is a base class for all File based implementations of {@link
+ * Configuration}
*/
public abstract class FileConfiguration extends MemoryConfiguration {
/**
@@ -27,8 +28,8 @@ public abstract class FileConfiguration extends MemoryConfiguration {
}
/**
- * Creates an empty {@link FileConfiguration} using the specified {@link Configuration}
- * as a source for all default values.
+ * Creates an empty {@link FileConfiguration} using the specified {@link
+ * Configuration} as a source for all default values.
*
* @param defaults Default value provider
*/
@@ -39,11 +40,13 @@ public abstract class FileConfiguration extends MemoryConfiguration {
/**
* Saves this {@link FileConfiguration} to the specified location.
*
- * If the file does not exist, it will be created. If already exists, it will
- * be overwritten. If it cannot be overwritten or created, an exception will be thrown.
+ * If the file does not exist, it will be created. If already exists, it
+ * will be overwritten. If it cannot be overwritten or created, an
+ * exception will be thrown.
*
* @param file File to save to.
- * @throws IOException Thrown when the given file cannot be written to for any reason.
+ * @throws IOException Thrown when the given file cannot be written to for
+ * any reason.
* @throws IllegalArgumentException Thrown when file is null.
*/
public void save(File file) throws IOException {
@@ -65,11 +68,13 @@ public abstract class FileConfiguration extends MemoryConfiguration {
/**
* Saves this {@link FileConfiguration} to the specified location.
*
- * If the file does not exist, it will be created. If already exists, it will
- * be overwritten. If it cannot be overwritten or created, an exception will be thrown.
+ * If the file does not exist, it will be created. If already exists, it
+ * will be overwritten. If it cannot be overwritten or created, an
+ * exception will be thrown.
*
* @param file File to save to.
- * @throws IOException Thrown when the given file cannot be written to for any reason.
+ * @throws IOException Thrown when the given file cannot be written to for
+ * any reason.
* @throws IllegalArgumentException Thrown when file is null.
*/
public void save(String file) throws IOException {
@@ -88,15 +93,19 @@ public abstract class FileConfiguration extends MemoryConfiguration {
/**
* Loads this {@link FileConfiguration} from the specified location.
*
- * All the values contained within this configuration will be removed, leaving
- * only settings and defaults, and the new values will be loaded from the given file.
+ * All the values contained within this configuration will be removed,
+ * leaving only settings and defaults, and the new values will be loaded
+ * from the given file.
*
- * If the file cannot be loaded for any reason, an exception will be thrown.
+ * If the file cannot be loaded for any reason, an exception will be
+ * thrown.
*
* @param file File to load from.
- * @throws FileNotFoundException Thrown when the given file cannot be opened.
+ * @throws FileNotFoundException Thrown when the given file cannot be
+ * opened.
* @throws IOException Thrown when the given file cannot be read.
- * @throws InvalidConfigurationException Thrown when the given file is not a valid Configuration.
+ * @throws InvalidConfigurationException Thrown when the given file is not
+ * a valid Configuration.
* @throws IllegalArgumentException Thrown when file is null.
*/
public void load(File file) throws FileNotFoundException, IOException, InvalidConfigurationException {
@@ -108,12 +117,14 @@ public abstract class FileConfiguration extends MemoryConfiguration {
/**
* Loads this {@link FileConfiguration} from the specified stream.
*
- * All the values contained within this configuration will be removed, leaving
- * only settings and defaults, and the new values will be loaded from the given stream.
+ * All the values contained within this configuration will be removed,
+ * leaving only settings and defaults, and the new values will be loaded
+ * from the given stream.
*
* @param stream Stream to load from
* @throws IOException Thrown when the given file cannot be read.
- * @throws InvalidConfigurationException Thrown when the given file is not a valid Configuration.
+ * @throws InvalidConfigurationException Thrown when the given file is not
+ * a valid Configuration.
* @throws IllegalArgumentException Thrown when stream is null.
*/
public void load(InputStream stream) throws IOException, InvalidConfigurationException {
@@ -141,15 +152,19 @@ public abstract class FileConfiguration extends MemoryConfiguration {
/**
* Loads this {@link FileConfiguration} from the specified location.
*
- * All the values contained within this configuration will be removed, leaving
- * only settings and defaults, and the new values will be loaded from the given file.
+ * All the values contained within this configuration will be removed,
+ * leaving only settings and defaults, and the new values will be loaded
+ * from the given file.
*
- * If the file cannot be loaded for any reason, an exception will be thrown.
+ * If the file cannot be loaded for any reason, an exception will be
+ * thrown.
*
* @param file File to load from.
- * @throws FileNotFoundException Thrown when the given file cannot be opened.
+ * @throws FileNotFoundException Thrown when the given file cannot be
+ * opened.
* @throws IOException Thrown when the given file cannot be read.
- * @throws InvalidConfigurationException Thrown when the given file is not a valid Configuration.
+ * @throws InvalidConfigurationException Thrown when the given file is not
+ * a valid Configuration.
* @throws IllegalArgumentException Thrown when file is null.
*/
public void load(String file) throws FileNotFoundException, IOException, InvalidConfigurationException {
@@ -159,24 +174,29 @@ public abstract class FileConfiguration extends MemoryConfiguration {
}
/**
- * Loads this {@link FileConfiguration} from the specified string, as opposed to from file.
+ * Loads this {@link FileConfiguration} from the specified string, as
+ * opposed to from file.
*
- * All the values contained within this configuration will be removed, leaving
- * only settings and defaults, and the new values will be loaded from the given string.
+ * All the values contained within this configuration will be removed,
+ * leaving only settings and defaults, and the new values will be loaded
+ * from the given string.
*
* If the string is invalid in any way, an exception will be thrown.
*
* @param contents Contents of a Configuration to load.
- * @throws InvalidConfigurationException Thrown if the specified string is invalid.
+ * @throws InvalidConfigurationException Thrown if the specified string is
+ * invalid.
* @throws IllegalArgumentException Thrown if contents is null.
*/
public abstract void loadFromString(String contents) throws InvalidConfigurationException;
/**
- * Compiles the header for this {@link FileConfiguration} and returns the result.
+ * Compiles the header for this {@link FileConfiguration} and returns the
+ * result.
*
- * This will use the header from {@link #options()} -> {@link FileConfigurationOptions#header()},
- * respecting the rules of {@link FileConfigurationOptions#copyHeader()} if set.
+ * This will use the header from {@link #options()} -> {@link
+ * FileConfigurationOptions#header()}, respecting the rules of {@link
+ * FileConfigurationOptions#copyHeader()} if set.
*
* @return Compiled header
*/
diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java
index 3d22544396..ccf81e0638 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java
@@ -3,7 +3,8 @@ package org.bukkit.configuration.file;
import org.bukkit.configuration.*;
/**
- * Various settings for controlling the input and output of a {@link FileConfiguration}
+ * Various settings for controlling the input and output of a {@link
+ * FileConfiguration}
*/
public class FileConfigurationOptions extends MemoryConfigurationOptions {
private String header = null;
@@ -33,13 +34,14 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
/**
* Gets the header that will be applied to the top of the saved output.
*
- * This header will be commented out and applied directly at the top of the
- * generated output of the {@link FileConfiguration}. It is not required to
- * include a newline at the end of the header as it will automatically be applied,
- * but you may include one if you wish for extra spacing.
+ * This header will be commented out and applied directly at the top of
+ * the generated output of the {@link FileConfiguration}. It is not
+ * required to include a newline at the end of the header as it will
+ * automatically be applied, but you may include one if you wish for extra
+ * spacing.
*
- * Null is a valid value which will indicate that no header is to be applied.
- * The default value is null.
+ * Null is a valid value which will indicate that no header is to be
+ * applied. The default value is null.
*
* @return Header
*/
@@ -50,12 +52,14 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
/**
* Sets the header that will be applied to the top of the saved output.
*
- * This header will be commented out and applied directly at the top of the
- * generated output of the {@link FileConfiguration}. It is not required to
- * include a newline at the end of the header as it will automatically be applied,
- * but you may include one if you wish for extra spacing.
+ * This header will be commented out and applied directly at the top of
+ * the generated output of the {@link FileConfiguration}. It is not
+ * required to include a newline at the end of the header as it will
+ * automatically be applied, but you may include one if you wish for extra
+ * spacing.
*
- * Null is a valid value which will indicate that no header is to be applied.
+ * Null is a valid value which will indicate that no header is to be
+ * applied.
*
* @param value New header
* @return This object, for chaining
@@ -69,12 +73,15 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* Gets whether or not the header should be copied from a default source.
*
* If this is true, if a default {@link FileConfiguration} is passed to
- * {@link FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)}
- * then upon saving it will use the header from that config, instead of the one provided here.
+ * {@link
+ * FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)}
+ * then upon saving it will use the header from that config, instead of
+ * the one provided here.
*
- * If no default is set on the configuration, or the default is not of type FileConfiguration,
- * or that config has no header ({@link #header()} returns null) then the header
- * specified in this configuration will be used.
+ * If no default is set on the configuration, or the default is not of
+ * type FileConfiguration, or that config has no header ({@link #header()}
+ * returns null) then the header specified in this configuration will be
+ * used.
*
* Defaults to true.
*
@@ -88,12 +95,15 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* Sets whether or not the header should be copied from a default source.
*
* If this is true, if a default {@link FileConfiguration} is passed to
- * {@link FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)}
- * then upon saving it will use the header from that config, instead of the one provided here.
+ * {@link
+ * FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)}
+ * then upon saving it will use the header from that config, instead of
+ * the one provided here.
*
- * If no default is set on the configuration, or the default is not of type FileConfiguration,
- * or that config has no header ({@link #header()} returns null) then the header
- * specified in this configuration will be used.
+ * If no default is set on the configuration, or the default is not of
+ * type FileConfiguration, or that config has no header ({@link #header()}
+ * returns null) then the header specified in this configuration will be
+ * used.
*
* Defaults to true.
*
diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
index 98247538b5..18be0dc624 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
@@ -160,7 +160,8 @@ public class YamlConfiguration extends FileConfiguration {
* Creates a new {@link YamlConfiguration}, loading from the given file.
*
* Any errors loading the Configuration will be logged and then ignored.
- * If the specified input is not a valid config, a blank config will be returned.
+ * If the specified input is not a valid config, a blank config will be
+ * returned.
*
* @param file Input file
* @return Resulting configuration
@@ -187,7 +188,8 @@ public class YamlConfiguration extends FileConfiguration {
* Creates a new {@link YamlConfiguration}, loading from the given stream.
*
* Any errors loading the Configuration will be logged and then ignored.
- * If the specified input is not a valid config, a blank config will be returned.
+ * If the specified input is not a valid config, a blank config will be
+ * returned.
*
* @param stream Input stream
* @return Resulting configuration
diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfigurationOptions.java
index d2dd712f13..57894e320c 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfigurationOptions.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfigurationOptions.java
@@ -3,7 +3,8 @@ package org.bukkit.configuration.file;
import org.apache.commons.lang.Validate;
/**
- * Various settings for controlling the input and output of a {@link YamlConfiguration}
+ * Various settings for controlling the input and output of a {@link
+ * YamlConfiguration}
*/
public class YamlConfigurationOptions extends FileConfigurationOptions {
private int indent = 2;
diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java
index 7bf4b29982..ba3c8c4755 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java
@@ -5,17 +5,18 @@ import java.util.Map;
/**
* Represents an object that may be serialized.
*
- * These objects MUST implement one of the following, in addition to the methods
- * as defined by this interface:
+ * These objects MUST implement one of the following, in addition to the
+ * methods as defined by this interface:
*
- *
A static method "deserialize" that accepts a single {@link Map}<{@link String}, {@link Object}>
- * and returns the class.
- *
A static method "valueOf" that accepts a single {@link Map}<{@link String}, {@link Object}>
- * and returns the class.
- *
A constructor that accepts a single {@link Map}<{@link String}, {@link Object}>.
+ *
A static method "deserialize" that accepts a single {@link Map}<
+ * {@link String}, {@link Object}> and returns the class.
+ *
A static method "valueOf" that accepts a single {@link Map}<{@link
+ * String}, {@link Object}> and returns the class.
+ *
A constructor that accepts a single {@link Map}<{@link String},
+ * {@link Object}>.
*
- * In addition to implementing this interface, you must register the class with
- * {@link ConfigurationSerialization#registerClass(Class)}.
+ * In addition to implementing this interface, you must register the class
+ * with {@link ConfigurationSerialization#registerClass(Class)}.
*
* @see DelegateDeserialization
* @see SerializableAs
@@ -25,8 +26,8 @@ public interface ConfigurationSerializable {
/**
* Creates a Map representation of this class.
*
- * This class must provide a method to restore this class, as defined in the
- * {@link ConfigurationSerializable} interface javadocs.
+ * This class must provide a method to restore this class, as defined in
+ * the {@link ConfigurationSerializable} interface javadocs.
*
* @return Map containing the current state of this class
*/
diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java
index e6a07f955d..96a806f1b9 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java
@@ -134,13 +134,15 @@ public class ConfigurationSerialization {
}
/**
- * Attempts to deserialize the given arguments into a new instance of the given class.
+ * Attempts to deserialize the given arguments into a new instance of the
+ * given class.
*
- * The class must implement {@link ConfigurationSerializable}, including the extra methods
- * as specified in the javadoc of ConfigurationSerializable.
+ * The class must implement {@link ConfigurationSerializable}, including
+ * the extra methods as specified in the javadoc of
+ * ConfigurationSerializable.
*
- * If a new instance could not be made, an example being the class not fully implementing
- * the interface, null will be returned.
+ * If a new instance could not be made, an example being the class not
+ * fully implementing the interface, null will be returned.
*
* @param args Arguments for deserialization
* @param clazz Class to deserialize into
@@ -151,13 +153,15 @@ public class ConfigurationSerialization {
}
/**
- * Attempts to deserialize the given arguments into a new instance of the given class.
+ * Attempts to deserialize the given arguments into a new instance of the
+ * given class.
*
- * The class must implement {@link ConfigurationSerializable}, including the extra methods
- * as specified in the javadoc of ConfigurationSerializable.
+ * The class must implement {@link ConfigurationSerializable}, including
+ * the extra methods as specified in the javadoc of
+ * ConfigurationSerializable.
*
- * If a new instance could not be made, an example being the class not fully implementing
- * the interface, null will be returned.
+ * If a new instance could not be made, an example being the class not
+ * fully implementing the interface, null will be returned.
*
* @param args Arguments for deserialization
* @return New instance of the specified class
@@ -188,7 +192,8 @@ public class ConfigurationSerialization {
}
/**
- * Registers the given {@link ConfigurationSerializable} class by its alias
+ * Registers the given {@link ConfigurationSerializable} class by its
+ * alias
*
* @param clazz Class to register
*/
@@ -202,7 +207,8 @@ public class ConfigurationSerialization {
}
/**
- * Registers the given alias to the specified {@link ConfigurationSerializable} class
+ * Registers the given alias to the specified {@link
+ * ConfigurationSerializable} class
*
* @param clazz Class to register
* @param alias Alias to register as
@@ -222,7 +228,8 @@ public class ConfigurationSerialization {
}
/**
- * Unregisters any aliases for the specified {@link ConfigurationSerializable} class
+ * Unregisters any aliases for the specified {@link
+ * ConfigurationSerializable} class
*
* @param clazz Class to unregister
*/
@@ -233,7 +240,8 @@ public class ConfigurationSerialization {
}
/**
- * Attempts to get a registered {@link ConfigurationSerializable} class by its alias
+ * Attempts to get a registered {@link ConfigurationSerializable} class by
+ * its alias
*
* @param alias Alias of the serializable
* @return Registered class, or null if not found
@@ -243,7 +251,8 @@ public class ConfigurationSerialization {
}
/**
- * Gets the correct alias for the given {@link ConfigurationSerializable} class
+ * Gets the correct alias for the given {@link ConfigurationSerializable}
+ * class
*
* @param clazz Class to get alias for
* @return Alias to use for the class
diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java
index 437d710894..1cfae94f73 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java
@@ -6,14 +6,15 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * Applies to a {@link ConfigurationSerializable} that will delegate all deserialization to another
- * {@link ConfigurationSerializable}.
+ * Applies to a {@link ConfigurationSerializable} that will delegate all
+ * deserialization to another {@link ConfigurationSerializable}.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface DelegateDeserialization {
/**
- * Which class should be used as a delegate for this classes deserialization
+ * Which class should be used as a delegate for this classes
+ * deserialization
*
* @return Delegate class
*/
diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java
index 4612ab3a31..c5ee9987a5 100644
--- a/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java
+++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java
@@ -6,15 +6,16 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * Represents an "alias" that a {@link ConfigurationSerializable} may be stored as.
- * If this is not present on a {@link ConfigurationSerializable} class, it will use the
- * fully qualified name of the class.
+ * Represents an "alias" that a {@link ConfigurationSerializable} may be
+ * stored as.
+ * If this is not present on a {@link ConfigurationSerializable} class, it
+ * will use the fully qualified name of the class.
*
- * This value will be stored in the configuration so that the configuration deserialization
- * can determine what type it is.
+ * This value will be stored in the configuration so that the configuration
+ * deserialization can determine what type it is.
*
- * Using this annotation on any other class than a {@link ConfigurationSerializable} will
- * have no effect.
+ * Using this annotation on any other class than a {@link
+ * ConfigurationSerializable} will have no effect.
*
* @see ConfigurationSerialization#registerClass(Class, String)
*/
@@ -24,8 +25,8 @@ public @interface SerializableAs {
/**
* This is the name your class will be stored and retrieved as.
*
- * This name MUST be unique. We recommend using names such as "MyPluginThing" instead of
- * "Thing".
+ * This name MUST be unique. We recommend using names such as
+ * "MyPluginThing" instead of "Thing".
*
* @return Name to serialize the class as.
*/
diff --git a/paper-api/src/main/java/org/bukkit/conversations/BooleanPrompt.java b/paper-api/src/main/java/org/bukkit/conversations/BooleanPrompt.java
index 6abb35473a..3f2c97f4f9 100644
--- a/paper-api/src/main/java/org/bukkit/conversations/BooleanPrompt.java
+++ b/paper-api/src/main/java/org/bukkit/conversations/BooleanPrompt.java
@@ -4,7 +4,8 @@ import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.BooleanUtils;
/**
- * BooleanPrompt is the base class for any prompt that requires a boolean response from the user.
+ * BooleanPrompt is the base class for any prompt that requires a boolean
+ * response from the user.
*/
public abstract class BooleanPrompt extends ValidatingPrompt{
@@ -24,7 +25,8 @@ public abstract class BooleanPrompt extends ValidatingPrompt{
}
/**
- * Override this method to perform some action with the user's boolean response.
+ * Override this method to perform some action with the user's boolean
+ * response.
*
* @param context Context information about the conversation.
* @param input The user's boolean response.
diff --git a/paper-api/src/main/java/org/bukkit/conversations/Conversable.java b/paper-api/src/main/java/org/bukkit/conversations/Conversable.java
index 52b80b6dc7..55674b5359 100644
--- a/paper-api/src/main/java/org/bukkit/conversations/Conversable.java
+++ b/paper-api/src/main/java/org/bukkit/conversations/Conversable.java
@@ -3,20 +3,22 @@ package org.bukkit.conversations;
import org.bukkit.command.CommandSender;
/**
- * The Conversable interface is used to indicate objects that can have conversations.
+ * The Conversable interface is used to indicate objects that can have
+ * conversations.
*/
public interface Conversable {
/**
- * Tests to see of a Conversable object is actively engaged in a conversation.
+ * Tests to see of a Conversable object is actively engaged in a
+ * conversation.
*
* @return True if a conversation is in progress
*/
public boolean isConversing();
/**
- * Accepts input into the active conversation. If no conversation is in progress,
- * this method does nothing.
+ * Accepts input into the active conversation. If no conversation is in
+ * progress, this method does nothing.
*
* @param input The input message into the conversation
*/
@@ -26,7 +28,8 @@ public interface Conversable {
* Enters into a dialog with a Conversation object.
*
* @param conversation The conversation to begin
- * @return True if the conversation should proceed, false if it has been enqueued
+ * @return True if the conversation should proceed, false if it has been
+ * enqueued
*/
public boolean beginConversation(Conversation conversation);
diff --git a/paper-api/src/main/java/org/bukkit/conversations/Conversation.java b/paper-api/src/main/java/org/bukkit/conversations/Conversation.java
index a30745fee2..d4c1f6d316 100644
--- a/paper-api/src/main/java/org/bukkit/conversations/Conversation.java
+++ b/paper-api/src/main/java/org/bukkit/conversations/Conversation.java
@@ -8,23 +8,29 @@ import java.util.List;
import java.util.Map;
/**
- * The Conversation class is responsible for tracking the current state of a conversation, displaying prompts to
- * the user, and dispatching the user's response to the appropriate place. Conversation objects are not typically
- * instantiated directly. Instead a {@link ConversationFactory} is used to construct identical conversations on demand.
+ * The Conversation class is responsible for tracking the current state of a
+ * conversation, displaying prompts to the user, and dispatching the user's
+ * response to the appropriate place. Conversation objects are not typically
+ * instantiated directly. Instead a {@link ConversationFactory} is used to
+ * construct identical conversations on demand.
*
- * Conversation flow consists of a directed graph of {@link Prompt} objects. Each time a prompt gets input from the
- * user, it must return the next prompt in the graph. Since each Prompt chooses the next Prompt, complex conversation
- * trees can be implemented where the nature of the player's response directs the flow of the conversation.
+ * Conversation flow consists of a directed graph of {@link Prompt} objects.
+ * Each time a prompt gets input from the user, it must return the next prompt
+ * in the graph. Since each Prompt chooses the next Prompt, complex
+ * conversation trees can be implemented where the nature of the player's
+ * response directs the flow of the conversation.
*
- * Each conversation has a {@link ConversationPrefix} that prepends all output from the conversation to the player.
- * The ConversationPrefix can be used to display the plugin name or conversation status as the conversation evolves.
+ * Each conversation has a {@link ConversationPrefix} that prepends all output
+ * from the conversation to the player. The ConversationPrefix can be used to
+ * display the plugin name or conversation status as the conversation evolves.
*
- * Each conversation has a timeout measured in the number of inactive seconds to wait before abandoning the conversation.
- * If the inactivity timeout is reached, the conversation is abandoned and the user's incoming and outgoing chat is
- * returned to normal.
+ * Each conversation has a timeout measured in the number of inactive seconds
+ * to wait before abandoning the conversation. If the inactivity timeout is
+ * reached, the conversation is abandoned and the user's incoming and outgoing
+ * chat is returned to normal.
*
- * You should not construct a conversation manually. Instead, use the {@link ConversationFactory} for access to all
- * available options.
+ * You should not construct a conversation manually. Instead, use the {@link
+ * ConversationFactory} for access to all available options.
*/
public class Conversation {
@@ -55,7 +61,8 @@ public class Conversation {
* @param plugin The plugin that owns this conversation.
* @param forWhom The entity for whom this conversation is mediating.
* @param firstPrompt The first prompt in the conversation graph.
- * @param initialSessionData Any initial values to put in the conversation context sessionData map.
+ * @param initialSessionData Any initial values to put in the conversation
+ * context sessionData map.
*/
public Conversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt, Map