diff --git a/paper-api/src/main/java/org/bukkit/Achievement.java b/paper-api/src/main/java/org/bukkit/Achievement.java index f9633f5150..98dbcd17a5 100644 --- a/paper-api/src/main/java/org/bukkit/Achievement.java +++ b/paper-api/src/main/java/org/bukkit/Achievement.java @@ -49,7 +49,7 @@ public enum Achievement { /** * Gets the ID for this achievement. - *

+ *

* Note that this is offset using {@link #STATISTIC_OFFSET} * * @return ID of this achievement @@ -60,7 +60,7 @@ public enum Achievement { /** * Gets the achievement associated with the given ID. - *

+ *

* Note that the ID must already be offset using {@link #STATISTIC_OFFSET} * * @param id ID of the achievement to return diff --git a/paper-api/src/main/java/org/bukkit/Art.java b/paper-api/src/main/java/org/bukkit/Art.java index 7f35d7e71c..049e1a1840 100644 --- a/paper-api/src/main/java/org/bukkit/Art.java +++ b/paper-api/src/main/java/org/bukkit/Art.java @@ -86,7 +86,7 @@ public enum Art { /** * Get a painting by its unique name - *

+ *

* This ignores underscores and capitalization * * @param name The name diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index ba5f6d7466..2e793784c8 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -50,7 +50,7 @@ public final class Bukkit { /** * Attempts to set the {@link Server} singleton. - *

+ *

* This cannot be done if the Server is already set. * * @param server Server instance diff --git a/paper-api/src/main/java/org/bukkit/EntityEffect.java b/paper-api/src/main/java/org/bukkit/EntityEffect.java index 00a46482cd..82d96f670d 100644 --- a/paper-api/src/main/java/org/bukkit/EntityEffect.java +++ b/paper-api/src/main/java/org/bukkit/EntityEffect.java @@ -16,28 +16,28 @@ public enum EntityEffect { /** * When a mob dies. - *

+ *

* This will cause client-glitches! */ DEATH(3), /** * The smoke when taming a wolf fails. - *

+ *

* Without client-mods this will be ignored if the entity is not a wolf. */ WOLF_SMOKE(6), /** * The hearts when taming a wolf succeeds. - *

+ *

* Without client-mods this will be ignored if the entity is not a wolf. */ WOLF_HEARTS(7), /** * When a wolf shakes (after being wet). - *

+ *

* Without client-mods this will be ignored if the entity is not a wolf. */ WOLF_SHAKE(8), diff --git a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java index 914677133e..013dc0a2b9 100644 --- a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java +++ b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java @@ -50,7 +50,7 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio /** * Gets a {@link Player} object that this represents, if there is one - *

+ *

* If the player is online, this will return that player. Otherwise, * it will return null. * @@ -60,7 +60,7 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio /** * 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. * @@ -70,7 +70,7 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio /** * 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. * diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 683938a3d2..cceb0d5b81 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -37,14 +37,14 @@ import org.bukkit.inventory.meta.ItemMeta; public interface Server extends PluginMessageRecipient { /** * 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. - *

+ *

* For use in {@link #broadcast(java.lang.String, java.lang.String)} */ public static final String BROADCAST_CHANNEL_USERS = "bukkit.broadcast.user"; @@ -176,7 +176,7 @@ 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} * * @param message the message @@ -187,7 +187,7 @@ public interface Server extends PluginMessageRecipient { /** * 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. * * @return The name of the update folder @@ -211,17 +211,17 @@ public interface Server extends PluginMessageRecipient { /** * Gets default ticks per animal spawns value - *

+ *

* Example Usage: *

- *

+ *

* Note: * If set to 0, animal spawning will be disabled. We recommend using spawn-animals to control this instead. - *

+ *

* Minecraft default: 400. * * @return The default ticks per animal spawns value @@ -230,17 +230,17 @@ public interface Server extends PluginMessageRecipient { /** * Gets the default ticks per monster spawns value - *

+ *

* Example Usage: *

- *

+ *

* Note: * If set to 0, monsters spawning will be disabled. We recommend using spawn-monsters to control this instead. - *

+ *

* Minecraft default: 1. * * @return The default ticks per monsters spawn value @@ -249,7 +249,7 @@ public interface Server extends PluginMessageRecipient { /** * Gets a player object by the given username - *

+ *

* This method may not return objects for offline players * * @param name Name to look up @@ -268,7 +268,7 @@ 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. * @@ -307,7 +307,7 @@ public interface Server extends PluginMessageRecipient { /** * 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()). * @@ -510,7 +510,7 @@ public interface Server extends PluginMessageRecipient { /** * 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. * * @param name Name of the player to retrieve diff --git a/paper-api/src/main/java/org/bukkit/Sound.java b/paper-api/src/main/java/org/bukkit/Sound.java index 6d263809fb..d4b5ccf8d2 100644 --- a/paper-api/src/main/java/org/bukkit/Sound.java +++ b/paper-api/src/main/java/org/bukkit/Sound.java @@ -2,7 +2,7 @@ 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. */ diff --git a/paper-api/src/main/java/org/bukkit/Statistic.java b/paper-api/src/main/java/org/bukkit/Statistic.java index 11e69b69cc..c3665013a7 100644 --- a/paper-api/src/main/java/org/bukkit/Statistic.java +++ b/paper-api/src/main/java/org/bukkit/Statistic.java @@ -48,7 +48,7 @@ public enum Statistic { /** * Checks if this is a substatistic. - *

+ *

* A substatistic exists in mass for each block or item, depending on {@link #isBlock()} * * @return true if this is a substatistic diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 266a59adc5..e14fe40125 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -163,7 +163,7 @@ 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. * @@ -184,7 +184,7 @@ 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 * * @param chunk the chunk to unload @@ -194,7 +194,7 @@ 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 * * @param x X-coordinate of the chunk @@ -205,7 +205,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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 * * @param x X-coordinate of the chunk @@ -228,7 +228,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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 * * @param x X-coordinate of the chunk @@ -438,7 +438,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Gets the relative in-game time of this world. - *

+ *

* The relative time is analogous to hours * 1000 * * @return The current relative time @@ -448,9 +448,9 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Sets the relative in-game time on the server. - *

+ *

* 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 @@ -470,7 +470,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Sets the in-game time on the server - *

+ *

* Note that this sets the full time of the world, which may cause adverse * effects such as breaking redstone clocks and any scheduled events * @@ -655,7 +655,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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. * @@ -771,7 +771,7 @@ 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. * * @param x X coordinate of the block @@ -782,7 +782,7 @@ 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. * * @param x X coordinate of the block @@ -793,7 +793,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Gets the maximum height of this world. - *

+ *

* If the max height is 100, there are only blocks from y=0 to y=99. * * @return Maximum height of the world @@ -802,7 +802,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Gets the sea level for this world. - *

+ *

* This is often half of {@link #getMaxHeight()} * * @return Sea level @@ -874,19 +874,19 @@ 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. - *

+ *

* Example Usage: *

- *

+ *

* Note: * 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. * * @return The world's ticks per animal spawns value @@ -895,19 +895,19 @@ 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. - *

+ *

* Example Usage: *

- *

+ *

* Note: * 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 @@ -916,19 +916,19 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Gets the world's ticks per monster spawns value - *

+ *

* This value determines how many ticks there are between attempts to spawn monsters. - *

+ *

* Example Usage: *

- *

+ *

* Note: * 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. * * @return The world's ticks per monster spawns value @@ -937,19 +937,19 @@ 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. - *

+ *

* Example Usage: *

- *

+ *

* Note: * 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 @@ -964,7 +964,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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. */ @@ -978,7 +978,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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. */ @@ -992,7 +992,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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. */ @@ -1006,7 +1006,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * 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. */ @@ -1014,7 +1014,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Play a Sound at the provided Location in the World - *

+ *

* This function will fail silently if Location or Sound are null. * * @param location The location to play the sound @@ -1033,7 +1033,7 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Gets the current state of the specified rule - *

+ *

* Will return null if rule passed is null * * @param rule Rule to look up value of @@ -1043,10 +1043,10 @@ public interface World extends PluginMessageRecipient, Metadatable { /** * Set the specified gamerule to specified value. - *

+ *

* The rule may attempt to validate the value passed, will return true if * value was set. - *

+ *

* If rule is null, the function will return false. * * @param rule Rule to set diff --git a/paper-api/src/main/java/org/bukkit/WorldCreator.java b/paper-api/src/main/java/org/bukkit/WorldCreator.java index 3fde7d2d03..8bfbb26263 100644 --- a/paper-api/src/main/java/org/bukkit/WorldCreator.java +++ b/paper-api/src/main/java/org/bukkit/WorldCreator.java @@ -140,7 +140,7 @@ 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. * @@ -152,7 +152,7 @@ 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. * @@ -167,10 +167,10 @@ 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. - *

+ *

* 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. * @@ -185,10 +185,10 @@ 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. - *

+ *

* 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 * @@ -225,7 +225,7 @@ 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. * @@ -247,10 +247,10 @@ 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. - *

+ *

* 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. 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 933b90fe1e..96232a06fc 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -36,7 +36,7 @@ public interface Block extends Metadatable { /** * Gets the block at the given face - *

+ *

* This method is equal to getRelative(face, 1) * * @param face Face of this block to return @@ -47,7 +47,7 @@ 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. * @@ -86,7 +86,7 @@ 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. * * @return Sky light level @@ -95,7 +95,7 @@ public interface Block extends Metadatable { /** * Get the amount of light at this block from nearby blocks. - *

+ *

* Any light given from other sources (such as the sun) will be ignored. * * @return Block light level @@ -203,7 +203,7 @@ public interface Block extends Metadatable { /** * Gets the face relation of this block compared to the given block - *

+ *

* For example: *

      * Block current = world.getBlockAt(100, 100, 100);
@@ -222,7 +222,7 @@ 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. * @@ -291,7 +291,7 @@ public interface Block extends Metadatable { /** * Checks if this block is empty. - *

+ *

* A block is considered empty when {@link #getType()} returns {@link Material#AIR}. * * @return true if this block is empty @@ -300,7 +300,7 @@ 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}. * * @return true if this block is liquid 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 bdfae5e2aa..7c2ccf0488 100644 --- a/paper-api/src/main/java/org/bukkit/block/BlockState.java +++ b/paper-api/src/main/java/org/bukkit/block/BlockState.java @@ -9,7 +9,7 @@ import org.bukkit.metadata.Metadatable; /** * 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 @@ -127,7 +127,7 @@ public interface BlockState extends Metadatable { /** * 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 * type as it was when this state was taken. It will return false in this @@ -141,7 +141,7 @@ public interface BlockState extends Metadatable { /** * 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. * @@ -153,14 +153,14 @@ public interface BlockState extends Metadatable { /** * 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. - *

+ *

* 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. * diff --git a/paper-api/src/main/java/org/bukkit/block/Dispenser.java b/paper-api/src/main/java/org/bukkit/block/Dispenser.java index 293772a2dd..7091794729 100644 --- a/paper-api/src/main/java/org/bukkit/block/Dispenser.java +++ b/paper-api/src/main/java/org/bukkit/block/Dispenser.java @@ -7,7 +7,7 @@ public interface Dispenser extends BlockState, ContainerBlock { /** * Attempts to dispense the contents of this block - *

+ *

* If the block is no longer a dispenser, this will return false * * @return true if successful, otherwise false diff --git a/paper-api/src/main/java/org/bukkit/block/Dropper.java b/paper-api/src/main/java/org/bukkit/block/Dropper.java index 3cf73ab4a9..21fbedce0d 100644 --- a/paper-api/src/main/java/org/bukkit/block/Dropper.java +++ b/paper-api/src/main/java/org/bukkit/block/Dropper.java @@ -9,14 +9,14 @@ public interface Dropper extends BlockState, InventoryHolder { /** * Tries to drop a randomly selected item from the Dropper's inventory, * following the normal behavior of a Dropper. - *

+ *

* Normal behavior of a Dropper is as follows: - *

+ *

* If the block that the Dropper is facing is an InventoryHolder or * ContainerBlock the randomly selected ItemStack is placed within that * Inventory in the first slot that's available, starting with 0 and * counting up. If the inventory is full, nothing happens. - *

+ *

* If the block that the Dropper is facing is not an InventoryHolder or * ContainerBlock, the randomly selected ItemStack is dropped on * the ground in the form of an {@link org.bukkit.entity.Item Item}. diff --git a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java index fa7ebc7d8f..9fb3845055 100644 --- a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java +++ b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java @@ -38,7 +38,7 @@ public interface NoteBlock extends BlockState { /** * Attempts to play the note at block - *

+ *

* If the block is no longer a note block, this will return false * * @return true if successful, otherwise false diff --git a/paper-api/src/main/java/org/bukkit/block/Sign.java b/paper-api/src/main/java/org/bukkit/block/Sign.java index 9ceaecdbf0..5d7a633dcb 100644 --- a/paper-api/src/main/java/org/bukkit/block/Sign.java +++ b/paper-api/src/main/java/org/bukkit/block/Sign.java @@ -14,7 +14,7 @@ public interface Sign extends BlockState { /** * Gets the line of text at the specified index. - *

+ *

* For example, getLine(0) will return the first line of text. * * @param index Line number to get the text from, starting at 0 @@ -25,7 +25,7 @@ public interface Sign extends BlockState { /** * Sets the line of text at the specified index. - *

+ *

* For example, setLine(0, "Line One") will set the first line of text to * "Line One". * 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 f43d7be34b..30a0060b27 100644 --- a/paper-api/src/main/java/org/bukkit/command/Command.java +++ b/paper-api/src/main/java/org/bukkit/command/Command.java @@ -126,7 +126,7 @@ public abstract class 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. * * @param target User to test @@ -150,7 +150,7 @@ public abstract class Command { /** * Tests the given {@link CommandSender} to see if they can perform this command. - *

+ *

* No error is sent to the sender. * * @param target User to test 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 ef887cffba..6fa8018637 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/Configuration.java +++ b/paper-api/src/main/java/org/bukkit/configuration/Configuration.java @@ -8,11 +8,11 @@ import java.util.Map; 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 value is null, the value will be removed from the default Configuration source. * * @param path Path of the value to set. @@ -23,7 +23,7 @@ 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. @@ -35,11 +35,11 @@ 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. - *

+ *

* 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)}. @@ -51,7 +51,7 @@ 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. * @@ -62,7 +62,7 @@ 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. @@ -73,7 +73,7 @@ public interface Configuration extends ConfigurationSection { /** * Gets the {@link ConfigurationOptions} for this {@link Configuration}. - *

+ *

* All setters through this method are chainable. * * @return Options for this configuration 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 fbfe7feb98..73ca421cd4 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java +++ b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationOptions.java @@ -23,7 +23,7 @@ public class ConfigurationOptions { /** * 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 '.'. * @@ -35,7 +35,7 @@ public class ConfigurationOptions { /** * 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 '.'. * @@ -49,7 +49,7 @@ public class ConfigurationOptions { /** * 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 @@ -64,7 +64,7 @@ public class ConfigurationOptions { /** * 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 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 6a899b7a8a..c207e3d6e8 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java +++ b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java @@ -15,11 +15,11 @@ import org.bukkit.inventory.ItemStack; 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 false, then this will contain only the keys of any direct children, * and not their own children. * @@ -30,11 +30,11 @@ 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 false, then this will contain only the keys and values of any * direct children, and not their own children. * @@ -45,7 +45,7 @@ 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. * @@ -57,7 +57,7 @@ public interface ConfigurationSection { /** * 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. * @@ -69,12 +69,12 @@ public interface ConfigurationSection { /** * Gets the path of this {@link ConfigurationSection} from its root {@link Configuration} - *

+ *

* 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. - *

+ *

* 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()}. * @@ -84,7 +84,7 @@ public interface ConfigurationSection { /** * 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. * @@ -94,9 +94,9 @@ public interface ConfigurationSection { /** * Gets the root {@link Configuration} that contains this {@link ConfigurationSection} - *

+ *

* 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. * @@ -107,9 +107,9 @@ public interface 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. * @@ -119,7 +119,7 @@ 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. @@ -131,7 +131,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -143,10 +143,10 @@ public interface ConfigurationSection { /** * Sets the specified path to the given value. - *

+ *

* 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 @@ -159,7 +159,7 @@ 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. * @@ -170,7 +170,7 @@ public interface ConfigurationSection { /** * 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. * @@ -183,7 +183,7 @@ public interface ConfigurationSection { // Primitives /** * 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. @@ -195,7 +195,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -207,7 +207,7 @@ 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 @@ -220,7 +220,7 @@ public interface ConfigurationSection { /** * Gets the requested int by path. - *

+ *

* If the int does not exist but a default value has been specified, this * will return the default value. If the int does not exist and no default * value was specified, this will return 0. @@ -232,7 +232,7 @@ 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}. * @@ -244,7 +244,7 @@ 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 @@ -257,7 +257,7 @@ 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. @@ -269,7 +269,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -281,7 +281,7 @@ 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 @@ -294,7 +294,7 @@ 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. @@ -306,7 +306,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -318,7 +318,7 @@ 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 @@ -331,7 +331,7 @@ 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. @@ -343,7 +343,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -355,7 +355,7 @@ 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 @@ -369,7 +369,7 @@ public interface ConfigurationSection { // Java /** * 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. @@ -381,7 +381,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -393,7 +393,7 @@ 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 @@ -406,11 +406,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. - *

+ *

* This method will attempt to cast any values into a String if possible, but may * miss any values out if they are not compatible. * @@ -421,11 +421,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. - *

+ *

* This method will attempt to cast any values into a Integer if possible, but may * miss any values out if they are not compatible. * @@ -436,11 +436,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. - *

+ *

* This method will attempt to cast any values into a Boolean if possible, but may * miss any values out if they are not compatible. * @@ -451,11 +451,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. - *

+ *

* This method will attempt to cast any values into a Double if possible, but may * miss any values out if they are not compatible. * @@ -466,11 +466,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. - *

+ *

* This method will attempt to cast any values into a Float if possible, but may * miss any values out if they are not compatible. * @@ -481,11 +481,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. - *

+ *

* This method will attempt to cast any values into a Long if possible, but may * miss any values out if they are not compatible. * @@ -496,11 +496,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. - *

+ *

* This method will attempt to cast any values into a Byte if possible, but may * miss any values out if they are not compatible. * @@ -511,11 +511,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. - *

+ *

* This method will attempt to cast any values into a Character if possible, but may * miss any values out if they are not compatible. * @@ -526,11 +526,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. - *

+ *

* This method will attempt to cast any values into a Short if possible, but may * miss any values out if they are not compatible. * @@ -541,11 +541,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. - *

+ *

* This method will attempt to cast any values into a Map if possible, but may * miss any values out if they are not compatible. * @@ -557,7 +557,7 @@ public interface ConfigurationSection { // Bukkit /** * 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. @@ -569,7 +569,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -581,7 +581,7 @@ 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 @@ -594,7 +594,7 @@ 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. @@ -606,7 +606,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -618,7 +618,7 @@ 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 @@ -631,7 +631,7 @@ 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. @@ -643,7 +643,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -655,7 +655,7 @@ 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 @@ -668,7 +668,7 @@ 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. @@ -680,7 +680,7 @@ public interface ConfigurationSection { /** * 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}. * @@ -692,7 +692,7 @@ 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 @@ -705,7 +705,7 @@ public interface ConfigurationSection { /** * 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. @@ -717,7 +717,7 @@ 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 @@ -730,7 +730,7 @@ public interface ConfigurationSection { /** * 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. @@ -741,13 +741,13 @@ 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 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. 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 ddf7c5156f..e20121e23b 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java +++ b/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java @@ -27,7 +27,7 @@ public class MemorySection implements ConfigurationSection { /** * 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! * @@ -746,7 +746,7 @@ public class MemorySection implements ConfigurationSection { /** * 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}. * * @param section Section to create a path for. @@ -759,7 +759,7 @@ public class MemorySection implements ConfigurationSection { /** * 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}. * * @param section Section to create a path for. 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 087b2688f6..33aac313b1 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 @@ -38,7 +38,7 @@ 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. * @@ -64,7 +64,7 @@ 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. * @@ -87,10 +87,10 @@ 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. - *

+ *

* If the file cannot be loaded for any reason, an exception will be thrown. * * @param file File to load from. @@ -107,7 +107,7 @@ 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. * @@ -140,10 +140,10 @@ 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. - *

+ *

* If the file cannot be loaded for any reason, an exception will be thrown. * * @param file File to load from. @@ -160,10 +160,10 @@ public abstract class FileConfiguration extends MemoryConfiguration { /** * 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. - *

+ *

* If the string is invalid in any way, an exception will be thrown. * * @param contents Contents of a Configuration to load. @@ -174,7 +174,7 @@ public abstract class FileConfiguration extends MemoryConfiguration { /** * 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. * 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 7efc6cbccf..3d22544396 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 @@ -32,12 +32,12 @@ 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. - *

+ *

* Null is a valid value which will indicate that no header is to be applied. * The default value is null. * @@ -49,12 +49,12 @@ 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. - *

+ *

* Null is a valid value which will indicate that no header is to be applied. * * @param value New header @@ -67,15 +67,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. - *

+ *

* 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. * * @return Whether or not to copy the header @@ -86,15 +86,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. - *

+ *

* 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. * * @param value Whether or not to copy the header 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 573e2566af..98247538b5 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 @@ -158,7 +158,7 @@ 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. * @@ -185,7 +185,7 @@ 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. * 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 e726357cf4..d2dd712f13 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 @@ -43,7 +43,7 @@ public class YamlConfigurationOptions extends FileConfigurationOptions { /** * Gets how much spaces should be used to indent each line. - *

+ *

* The minimum value this may be is 2, and the maximum is 9. * * @return How much to indent by @@ -54,7 +54,7 @@ public class YamlConfigurationOptions extends FileConfigurationOptions { /** * Sets how much spaces should be used to indent each line. - *

+ *

* The minimum value this may be is 2, and the maximum is 9. * * @param value New indent 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 880118f5bc..7eb0154995 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 @@ -4,7 +4,7 @@ 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: *