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: *
* This class must provide a method to restore this class, as defined in the * {@link ConfigurationSerializable} interface javadocs. * 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 3ae00f2b09..665c347c2b 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 @@ -135,10 +135,10 @@ public class ConfigurationSerialization { /** * 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. - *
+ ** If a new instance could not be made, an example being the class not fully implementing * the interface, null will be returned. * @@ -152,10 +152,10 @@ public class ConfigurationSerialization { /** * 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. - *
+ ** If a new instance could not be made, an example being the class not fully implementing * the interface, null will be returned. * 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 dc5f8ffa87..db69dfc816 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 @@ -9,10 +9,10 @@ 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. - *
+ ** 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. * @see ConfigurationSerialization#registerClass(Class, String) @@ -22,7 +22,7 @@ import java.lang.annotation.Target; 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". * diff --git a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java index 335eeef3c1..0217d49a2e 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java @@ -210,7 +210,7 @@ public abstract class Enchantment { /** * Registers an enchantment with the given ID and object. - *
+ ** Generally not to be used from within a plugin. * * @param enchantment Enchantment to register diff --git a/paper-api/src/main/java/org/bukkit/entity/Damageable.java b/paper-api/src/main/java/org/bukkit/entity/Damageable.java index 3ce7c5cf62..bf907846f7 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Damageable.java +++ b/paper-api/src/main/java/org/bukkit/entity/Damageable.java @@ -43,9 +43,9 @@ public interface Damageable extends Entity { /** * Sets the maximum health this entity can have. - *
+ ** If the health of the entity is above the value provided it will be set to that value. - *
+ ** Note: An entity with a health bar ({@link Player}, {@link EnderDragon}, {@link Wither}, etc...} will have their bar scaled accordingly. * * @param health amount of health to set the maximum to diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index d33f83656e..72af4fa12c 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -226,7 +226,7 @@ public interface Entity extends Metadatable { /** * Gets the amount of ticks this entity has lived for. - *
+ ** This is the equivalent to "age" in entities. * * @return Age of entity @@ -235,7 +235,7 @@ public interface Entity extends Metadatable { /** * Sets the amount of ticks this entity has lived for. - *
+ ** This is the equivalent to "age" in entities. May not be less than one tick. * * @param value Age of entity @@ -244,7 +244,7 @@ public interface Entity extends Metadatable { /** * Performs the specified {@link EntityEffect} for this entity. - *
+ ** This will be viewable to all players near the entity. * * @param type Effect to play. diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 8bcae00f48..6bd04f99e8 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -15,278 +15,309 @@ import org.bukkit.potion.PotionEffectType; */ public interface LivingEntity extends Entity, Damageable { /** - * Gets the height of the entity's head above its Location + * Gets the height of the living entity's eyes above its Location. * - * @return Height of the entity's eyes above its Location + * @return height of the living entity's eyes above its location */ public double getEyeHeight(); /** - * Gets the height of the entity's head above its Location + * Gets the height of the living entity's eyes above its Location. * - * @param ignoreSneaking If set to true, the effects of sneaking will be ignored - * @return Height of the entity's eyes above its Location + * @param ignoreSneaking if set to true, the effects of sneaking + * will be ignored + * @return height of the living entity's eyes above its location */ public double getEyeHeight(boolean ignoreSneaking); /** - * Get a Location detailing the current eye position of the LivingEntity. + * Get a Location detailing the current eye position of the living + * entity. * - * @return a Location at the eyes of the LivingEntity. + * @return a location at the eyes of the living entity */ public Location getEyeLocation(); /** - * Gets all blocks along the player's line of sight - * List iterates from player's position to target inclusive + * Gets all blocks along the living entity's line of sight. + *
+ * This list contains all blocks from the living entity's eye position
+ * to target inclusive.
*
- * @param transparent HashSet containing all transparent block IDs. If set to null only air is considered transparent.
- * @param maxDistance This is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks.
- * @return List containing all blocks along the player's line of sight
+ * @param transparent HashSet containing all transparent block IDs
+ * (set to null for only air)
+ * @param maxDistance this is the maximum distance to scan (may be
+ * limited by server by at least 100 blocks, no less)
+ * @return list containing all blocks along the living entity's line
+ * of sight
*/
public List
* The target block will be the last block in the list.
*
- * @param transparent HashSet containing all transparent block IDs. If set to null only air is considered transparent.
- * @param maxDistance This is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks
- * @return List containing the last 2 blocks along the player's line of sight
+ * @param transparent HashSet containing all transparent block IDs
+ * (set to null for only air)
+ * @param maxDistance this is the maximum distance to scan. This may be
+ * further limited by the server, but never to less than 100 blocks
+ * @return list containing the last 2 blocks along the living entity's
+ * line of sight
*/
public List
+ * This is the maximum duration in which the living entity will not
+ * take damage.
*
- * @return noDamageTicks
+ * @return maximum no damage ticks
*/
public int getMaximumNoDamageTicks();
/**
- * Sets the entities current maximum noDamageTicks
+ * Sets the living entity's current maximum no damage ticks.
*
- * @param ticks maximumNoDamageTicks
+ * @param ticks maximum amount of no damage ticks
*/
public void setMaximumNoDamageTicks(int ticks);
/**
- * Returns the entities lastDamage taken in the current noDamageTicks time.
- * Only damage higher than this amount will further damage the entity.
+ * Returns the living entity's last damage taken in the current no
+ * damage ticks time.
+ *
+ * Only damage higher than this amount will further damage the living
+ * entity.
*
- * @return lastDamage
+ * @return damage taken since the last no damage ticks time period
*/
public int getLastDamage();
/**
- * Sets the entities current maximum noDamageTicks
+ * Sets the damage dealt within the current no damage ticks time period.
*
- * @param damage last damage
+ * @param damage amount of damage
*/
public void setLastDamage(int damage);
/**
- * Returns the entities current noDamageTicks
+ * Returns the living entity's current no damage ticks.
*
- * @return noDamageTicks
+ * @return amount of no damage ticks
*/
public int getNoDamageTicks();
/**
- * Sets the entities current noDamageTicks
+ * Sets the living entity's current no damage ticks.
*
- * @param ticks NoDamageTicks
+ * @param ticks amount of no damage ticks
*/
public void setNoDamageTicks(int ticks);
/**
- * Gets the player identified as the killer of this entity.
- *
* May be null.
*
- * @return Killer player, or null if none found.
+ * @return killer player, or null if none found
*/
public Player getKiller();
/**
- * Adds the given {@link PotionEffect} to this entity.
- * Only one potion effect can be present for a given {@link PotionEffectType}.
+ * Adds the given {@link PotionEffect} to the living entity.
+ *
+ * Only one potion effect can be present for a given
+ * {@link PotionEffectType}.
*
* @param effect PotionEffect to be added
- * @return Whether the effect could be added
+ * @return whether the effect could be added
*/
public boolean addPotionEffect(PotionEffect effect);
/**
- * Adds the given {@link PotionEffect} to this entity.
- * Only one potion effect can be present for a given {@link PotionEffectType}.
+ * Adds the given {@link PotionEffect} to the living entity.
+ *
+ * Only one potion effect can be present for a given
+ * {@link PotionEffectType}.
*
* @param effect PotionEffect to be added
- * @param force Whether conflicting effects should be removed
- * @return Whether the effect could be added
+ * @param force whether conflicting effects should be removed
+ * @return whether the effect could be added
*/
public boolean addPotionEffect(PotionEffect effect, boolean force);
/**
- * Attempts to add all of the given {@link PotionEffect} to this entity.
+ * Attempts to add all of the given {@link PotionEffect} to the living
+ * entity.
*
- * @param effects The effects to add
- * @return Whether all of the effects could be added
+ * @param effects the effects to add
+ * @return whether all of the effects could be added
*/
public boolean addPotionEffects(Collection
+ * This uses the same algorithm that hostile mobs use to find the
+ * closest player.
*
- * @param other The entity to determine line of sight to.
- * @return true if there is a line of sight, false if not.
+ * @param other the entity to determine line of sight to
+ * @return true if there is a line of sight, false if not
*/
public boolean hasLineOfSight(Entity other);
/**
- * Returns if the entity despawns when away from players or not.
+ * By default, animals are not removed while other mobs are.
*
- * @return true if the entity is removed when away from players
+ * @return true if the living entity is removed when away from players
*/
public boolean getRemoveWhenFarAway();
/**
- * Sets whether or not the entity despawns when away from players or not.
+ * Sets whether or not the living entity despawns when away from
+ * players or not.
*
- * @param remove The remove status
+ * @param remove the removal status
*/
public void setRemoveWhenFarAway(boolean remove);
/**
- * Gets the inventory with the equipment worn by this entity.
+ * Gets the inventory with the equipment worn by the living entity.
*
- * @return the entities inventory.
+ * @return the living entity's inventory
*/
public EntityEquipment getEquipment();
/**
- * Sets whether or not the entity can pick up items
+ * Sets whether or not the living entity can pick up items.
*
- * @param pickup Whether or not the entity can pick up items
+ * @param pickup whether or not the living entity can pick up items
*/
public void setCanPickupItems(boolean pickup);
/**
- * Gets if the entity can pick up items
+ * Gets if the living entity can pick up items.
*
- * @return whether or not the entity can pick up items
+ * @return whether or not the living entity can pick up items
*/
public boolean getCanPickupItems();
/**
- * Sets a custom name on a mob. This name will be used in death messages
- * and can be sent to the client as a nameplate over the mob.
+ * Sets a custom name on a mob. This name will be used in death
+ * messages and can be sent to the client as a nameplate over the mob.
*
* Setting the name to null or an empty string will clear it.
*
* This value has no effect on players, they will always use their real
* name.
- * @param name name to set
+ *
+ * @param name the name to set
*/
public void setCustomName(String name);
@@ -296,6 +327,7 @@ public interface LivingEntity extends Entity, Damageable {
*
* This value has no effect on players, they will always use their real
* name.
+ *
* @return name of the mob or null
*/
public String getCustomName();
@@ -306,7 +338,8 @@ public interface LivingEntity extends Entity, Damageable {
*
* This value has no effect on players, they will always display their
* name.
- * @param flag show custom name
+ *
+ * @param flag custom name or not
*/
public void setCustomNameVisible(boolean flag);
@@ -315,6 +348,7 @@ public interface LivingEntity extends Entity, Damageable {
*
* This value has no effect on players, they will always display their
* name.
+ *
* @return if the custom name is displayed
*/
public boolean isCustomNameVisible();
diff --git a/paper-api/src/main/java/org/bukkit/entity/Minecart.java b/paper-api/src/main/java/org/bukkit/entity/Minecart.java
index 35807bf875..20e18a2240 100644
--- a/paper-api/src/main/java/org/bukkit/entity/Minecart.java
+++ b/paper-api/src/main/java/org/bukkit/entity/Minecart.java
@@ -67,7 +67,7 @@ public interface Minecart extends Vehicle {
/**
* Gets the derailed velocity modifier. Used for minecarts that are on the ground, but not on rails.
- *
* A derailed minecart's velocity is multiplied by this factor each tick.
*
* @return derailed visible speed
diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java
index 072607f393..17999378ea 100644
--- a/paper-api/src/main/java/org/bukkit/entity/Player.java
+++ b/paper-api/src/main/java/org/bukkit/entity/Player.java
@@ -24,7 +24,7 @@ import org.bukkit.plugin.messaging.PluginMessageRecipient;
public interface Player extends HumanEntity, Conversable, CommandSender, OfflinePlayer, PluginMessageRecipient {
/**
* Gets the "friendly" name to display of this player. This may include color.
- *
* Note that this name will not be displayed in game, only in chat and places
* defined by plugins
*
@@ -34,7 +34,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Sets the "friendly" name to display of this player. This may include color.
- *
* Note that this name will not be displayed in game, only in chat and places
* defined by plugins
*
@@ -51,11 +51,11 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Sets the name that is shown on the in-game player list.
- *
* The name cannot be longer than 16 characters, but {@link ChatColor} is supported.
- *
* If the value is null, the name will be identical to {@link #getName()}.
- *
* This name is case sensitive and unique, two names with different casing will
* appear as two different people. If a player joins afterwards with
* a name that conflicts with a player's custom list name, the
@@ -155,7 +155,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder
- *
* Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file.
*/
public void loadData();
@@ -202,7 +202,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Play a sound for a player at the location.
- *
* This function will fail silently if Location or Sound are null.
*
* @param location The location to play the sound
@@ -244,7 +244,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
* Send a chunk change. This fakes a chunk change packet for a user at
* a certain location. The updated cuboid must be entirely within a single
* chunk. This will not actually change the world in any way.
- *
* At least one of the dimensions of the cuboid must be even. The size of the
* data buffer must be 2.5*sx*sy*sz and formatted in accordance with the Packet51
* format.
@@ -270,7 +270,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Render a map and send it to the player in its entirety. This may be used
- * when streaming the map in the normal manner is not desirbale.
+ * when streaming the map in the normal manner is not desirable.
*
* @param map The map to be sent
*/
@@ -326,7 +326,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Sets the current time on the player's client. When relative is true the player's time
* will be kept synchronized to its world time with the specified offset.
- *
* When using non relative time the player's time will stay fixed at the specified time parameter. It's up to
* the caller to continue updating the player's time. To restore player time to normal use resetPlayerTime().
*
@@ -403,7 +403,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Gets the players current experience points towards the next level.
- *
* This is a percentage value. 0 is "no progress" and 1 is "next level".
*
* @return Current experience points
@@ -412,7 +412,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Sets the players current experience points towards the next level
- *
* This is a percentage value. 0 is "no progress" and 1 is "next level".
*
* @param exp New experience points
@@ -449,7 +449,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Gets the players current exhaustion level.
- *
* Exhaustion controls how fast the food level drops. While you have a certain
* amount of exhaustion, your saturation will drop to zero, and then your food
* will drop to zero.
@@ -467,7 +467,7 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Gets the players current saturation level.
- *
* Saturation is a buffer for food level. Your food level will not drop if you
* are saturated > 0.
*
@@ -606,14 +606,14 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
/**
* Request that the player's client download and switch texture packs.
- *
* The player's client will download the new texture pack asynchronously in the background, and
* will automatically switch to it once the download is complete. If the client has downloaded
* and cached the same texture pack in the past, it will perform a quick timestamp check over
* the network to determine if the texture pack has changed and needs to be downloaded again.
* When this request is sent for the very first time from a given server, the client will first
* display a confirmation GUI to the player before proceeding with the download.
- *
* Notes:
*
* If a small fireball does not bounce it will set the target on fire.
*
* @return true if it should bounce.
diff --git a/paper-api/src/main/java/org/bukkit/entity/Tameable.java b/paper-api/src/main/java/org/bukkit/entity/Tameable.java
index 539bda1b73..dea37639e6 100644
--- a/paper-api/src/main/java/org/bukkit/entity/Tameable.java
+++ b/paper-api/src/main/java/org/bukkit/entity/Tameable.java
@@ -4,7 +4,7 @@ public interface Tameable {
/**
* Check if this is tamed
- *
* If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
*
* @return true if this has been tamed
@@ -13,7 +13,7 @@ public interface Tameable {
/**
* Sets if this has been tamed. Not necessary if the method setOwner has been used, as it tames automatically.
- *
* If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
*
* @param tame true if tame
diff --git a/paper-api/src/main/java/org/bukkit/event/EventHandler.java b/paper-api/src/main/java/org/bukkit/event/EventHandler.java
index 166b61d36a..1844e7a82a 100644
--- a/paper-api/src/main/java/org/bukkit/event/EventHandler.java
+++ b/paper-api/src/main/java/org/bukkit/event/EventHandler.java
@@ -14,7 +14,7 @@ public @interface EventHandler {
/**
* Define the priority of the event.
- *
* First priority to the last priority executed:
*
* If ignoreCancelled is true and the event is cancelled, the method is
* not called. Otherwise, the method is always called.
*/
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java
index 263cf36e66..0cf1d39ac0 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block is broken by a player.
- *
* If you wish to have the block drop experience, you must set the experience value above 0.
* By default, experience will be set in the event if:
*
* Note:
* Plugins wanting to simulate a traditional block drop should set the block to air and utilize their own methods for determining
* what the default drop for the block being broken is and what to do about it, if anything.
- *
* If a Block Break event is cancelled, the block will not break and experience will not drop.
*/
public class BlockBreakEvent extends BlockExpEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
index 0783bb4d5a..49bdccb6c0 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
@@ -6,7 +6,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block is destroyed as a result of being burnt by fire.
- *
* If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire.
*/
public class BlockBurnEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
index cbaa2e82b3..d84b7f9480 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
@@ -6,7 +6,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when we try to place a block, to see if we can build it here or not.
- *
* Note:
*
* If a Block Damage event is cancelled, the block will not be damaged.
*/
public class BlockDamageEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java
index d29a045ee4..5d01beb0b4 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java
@@ -8,7 +8,7 @@ import org.bukkit.util.Vector;
/**
* Called when an item is dispensed from a block.
- *
* If a Block Dispense event is cancelled, the block will not dispense the item.
*/
public class BlockDispenseEvent extends BlockEvent implements Cancellable {
@@ -44,7 +44,7 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable {
/**
* Gets the velocity.
- *
* Note: Modifying the returned Vector will not change the velocity, you must use {@link #setVelocity(org.bukkit.util.Vector)} instead.
*
* @return A Vector for the dispensed item's velocity
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java
index b4b094838e..a39e1dfa75 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java
@@ -7,13 +7,13 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block fades, melts or disappears based on world conditions
- *
* Examples:
*
* If a Block Fade event is cancelled, the block will not fade, melt or disappear.
*/
public class BlockFadeEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java
index 84835d2807..69a32efedb 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java
@@ -8,13 +8,13 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block is formed or spreads based on world conditions.
* Use {@link BlockSpreadEvent} to catch blocks that actually spread and don't just "randomly" form.
- *
* Examples:
*
* If a Block Form event is cancelled, the block will not be formed.
*
* @see BlockSpreadEvent
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java
index 70fd67246f..5ded452934 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java
@@ -8,7 +8,7 @@ import org.bukkit.event.HandlerList;
/**
* Represents events with a source block and a destination block, currently only applies to liquid (lava and water)
* and teleporting dragon eggs.
- *
* If a Block From To event is cancelled, the block will not move (the liquid will not flow).
*/
public class BlockFromToEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockGrowEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockGrowEvent.java
index b1216df427..c4053778a2 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockGrowEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockGrowEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block grows naturally in the world.
- *
* Examples:
*
* If a Block Grow event is cancelled, the block will not grow.
*/
public class BlockGrowEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java
index 454b4500e2..e2b8c070b7 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java
@@ -8,7 +8,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block is ignited. If you want to catch when a Player places fire, you need to use {@link BlockPlaceEvent}.
- *
* If a Block Ignite event is cancelled, the block will not be ignited.
*/
public class BlockIgniteEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java
index 46c85022a7..a6ed55dd0c 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java
@@ -9,7 +9,7 @@ import org.bukkit.inventory.ItemStack;
/**
* Called when a block is placed by a player.
- *
* If a Block Place event is cancelled, the block will not be placed.
*/
public class BlockPlaceEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java
index f244e410c7..5b54dafdbe 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java
@@ -7,13 +7,13 @@ import org.bukkit.event.HandlerList;
/**
* Called when a block spreads based on world conditions.
* Use {@link BlockFormEvent} to catch blocks that "randomly" form instead of actually spread.
- *
* Examples:
*
* If a Block Spread event is cancelled, the block will not spread.
*
* @see BlockFormEvent
diff --git a/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java
index 749e88712a..98833e6915 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java
@@ -6,7 +6,7 @@ import org.bukkit.entity.Entity;
/**
* Called when a block is formed by entities.
- *
* Examples:
*
* If a Leaves Decay event is cancelled, the leaves will not decay.
*/
public class LeavesDecayEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java
index cc1dde2194..d1efb1a540 100644
--- a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a sign is changed by a player.
- *
* If a Sign Change event is cancelled, the sign will not be changed.
*/
public class SignChangeEvent extends BlockEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
index c674629409..24c4ebf7d4 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
@@ -9,7 +9,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a creature is spawned into a world.
- *
* If a Creature Spawn event is cancelled, the creature will not spawn.
*/
public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java
index eef769a97d..ea3f0df01d 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a Creeper is struck by lightning.
- *
* If a Creeper Power event is cancelled, the Creeper will not be powered.
*/
public class CreeperPowerEvent extends EntityEvent implements Cancellable {
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java
index 263837a635..a192dfe8b5 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.entity.LivingEntity;
/**
* Called when an {@link Entity} breaks a door
- *
* Canceling the event will cause the event to be delayed
*/
public class EntityBreakDoorEvent extends EntityChangeBlockEvent {
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java
index ef872050f6..7eed8ad428 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java
@@ -13,7 +13,7 @@ public class EntityCombustByBlockEvent extends EntityCombustEvent {
/**
* The combuster can be lava or a block that is on fire.
- *
* WARNING: block may be null.
*
* @return the Block that set the combustee alight.
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java
index bece458929..84ca5c2095 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java
@@ -11,7 +11,7 @@ public class EntityCombustByEntityEvent extends EntityCombustEvent {
}
/**
- * The combuster can be a WeatherStorm a Blaze, or an Entity holding a FIRE_ASPECT enchanted item.
+ * Get the entity that caused the combustion event.
*
* @return the Entity that set the combustee alight.
*/
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
index 20b51ebd97..4f9418dc6f 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
@@ -6,7 +6,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when an entity combusts.
- *
* If an Entity Combust event is cancelled, the entity will not combust.
*/
public class EntityCombustEvent extends EntityEvent implements Cancellable {
@@ -37,7 +37,7 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable {
/**
* The number of seconds the combustee should be alight for.
- *
* This value will only ever increase the combustion time, not decrease existing combustion times.
*
* @param duration the time in seconds to be alight for.
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
index 2ca19c301a..6d773f8bb5 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
@@ -70,109 +70,109 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
/**
* Damage caused when an entity contacts a block such as a Cactus.
- *
* Damage: 1 (Cactus)
*/
CONTACT,
/**
* Damage caused when an entity attacks another entity.
- *
* Damage: variable
*/
ENTITY_ATTACK,
/**
* Damage caused when attacked by a projectile.
- *
* Damage: variable
*/
PROJECTILE,
/**
* Damage caused by being put in a block
- *
* Damage: 1
*/
SUFFOCATION,
/**
* Damage caused when an entity falls a distance greater than 3 blocks
- *
* Damage: fall height - 3.0
*/
FALL,
/**
* Damage caused by direct exposure to fire
- *
* Damage: 1
*/
FIRE,
/**
* Damage caused due to burns caused by fire
- *
* Damage: 1
*/
FIRE_TICK,
/**
* Damage caused due to a snowman melting
- *
* Damage: 1
*/
MELTING,
/**
* Damage caused by direct exposure to lava
- *
* Damage: 4
*/
LAVA,
/**
* Damage caused by running out of air while in water
- *
* Damage: 2
*/
DROWNING,
/**
* Damage caused by being in the area when a block explodes.
- *
* Damage: variable
*/
BLOCK_EXPLOSION,
/**
* Damage caused by being in the area when an entity, such as a Creeper, explodes.
- *
* Damage: variable
*/
ENTITY_EXPLOSION,
/**
* Damage caused by falling into the void
- *
* Damage: 4 for players
*/
VOID,
/**
* Damage caused by being struck by lightning
- *
* Damage: 5
*/
LIGHTNING,
/**
* Damage caused by committing suicide using the command "/kill"
- *
* Damage: 1000
*/
SUICIDE,
/**
* Damage caused by starving due to having an empty hunger bar
- *
* Damage: 1
*/
STARVATION,
/**
* Damage caused due to an ongoing poison effect
- *
* Damage: 1
*/
POISON,
/**
* Damage caused by being hit by a damage potion or spell
- *
* Damage: variable
*/
MAGIC,
@@ -182,21 +182,21 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
WITHER,
/**
* Damage caused by being hit by a falling block which deals damage
- *
* Note: Not every block deals damage
- *
* Damage: variable
*/
FALLING_BLOCK,
/**
* Damage caused in retaliation to another attack by the Thorns enchantment.
- *
* Damage: 1-4 (Thorns)
*/
THORNS,
/**
* Custom damage.
- *
* Damage: variable
*/
CUSTOM
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java
index ded7c6f004..d39596f61e 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java
@@ -30,7 +30,7 @@ public class EntityDeathEvent extends EntityEvent {
/**
* Gets how much EXP should be dropped from this death.
- *
* This does not indicate how much EXP should be taken from the entity in question,
* merely how much should be created after its death.
*
@@ -42,7 +42,7 @@ public class EntityDeathEvent extends EntityEvent {
/**
* Sets how much EXP should be dropped from this death.
- *
* This does not indicate how much EXP should be taken from the entity in question,
* merely how much should be created after its death.
*
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEvent.java
index 8767243a6c..0b4e6a9ba4 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.event.HandlerList;
/**
* Called when a non-player entity is about to teleport because it is in contact with a portal
- *
* For players see {@link org.bukkit.event.player.PlayerPortalEvent PlayerPortalEvent}
*/
public class EntityPortalEvent extends EntityTeleportEvent {
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalExitEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalExitEvent.java
index 8e69e3bea8..657a4a0b63 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalExitEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalExitEvent.java
@@ -7,7 +7,7 @@ import org.bukkit.util.Vector;
/**
* Called before an entity exits a portal.
- *
* This event allows you to modify the velocity of the entity after they
* have successfully exeted the portal.
*/
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
index 6f891acfbc..e57e05f598 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
@@ -51,7 +51,7 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable {
* Set the entity that you want the mob to target instead.
* It is possible to be null, null will cause the entity to be
* target-less.
- *
* This is different from cancelling the event. Cancelling the event
* will cause the entity to keep an original target, while setting to be
* null will cause the entity to be reset
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetLivingEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetLivingEntityEvent.java
index f5010b1e3e..6d445aa2c1 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetLivingEntityEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetLivingEntityEvent.java
@@ -19,7 +19,7 @@ public class EntityTargetLivingEntityEvent extends EntityTargetEvent{
* Set the Entity that you want the mob to target.
* It is possible to be null, null will cause the entity to be
* target-less.
- *
* Must be a LivingEntity, or null
*
* @param target The entity to target
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
index 9b6ba8e99d..826326f682 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
@@ -24,7 +24,7 @@ public class FoodLevelChangeEvent extends EntityEvent implements Cancellable {
/**
* Gets the resultant food level that the entity involved in this event should be set to.
- *
* Where 20 is a full food bar and 0 is an empty one.
*
* @return The resultant food level
diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
index 1e3198fdb9..b773d6e536 100644
--- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
@@ -56,7 +56,7 @@ public class PlayerDeathEvent extends EntityDeathEvent {
/**
* Gets how much EXP the Player should have at respawn.
- *
* This does not indicate how much EXP should be dropped, please see
* {@link #getDroppedExp()} for that.
*
@@ -68,7 +68,7 @@ public class PlayerDeathEvent extends EntityDeathEvent {
/**
* Sets how much EXP the Player should have at respawn.
- *
* This does not indicate how much EXP should be dropped, please see
* {@link #setDroppedExp(int)} for that.
*
@@ -116,7 +116,7 @@ public class PlayerDeathEvent extends EntityDeathEvent {
/**
* Gets if the Player should keep all EXP at respawn.
- *
* This flag overrides other EXP settings
*
* @return True if Player should keep all pre-death exp
@@ -127,7 +127,7 @@ public class PlayerDeathEvent extends EntityDeathEvent {
/**
* Sets if the Player should keep all EXP at respawn.
- *
* This overrides all other EXP settings
*
* @param keepLevel True to keep all current value levels
diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java
index 010075c4e0..31ecbfa8bd 100644
--- a/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java
@@ -102,7 +102,7 @@ public class PlayerEggThrowEvent extends PlayerEvent {
/**
* Get the number of mob hatches from the egg. By default the number
* will be he number the server would've done
- *
* 7/8 chance of being 0
* 31/256 ~= 1/8 chance to be 1
* 1/256 chance to be 4
@@ -115,7 +115,7 @@ public class PlayerEggThrowEvent extends PlayerEvent {
/**
* Change the number of mobs coming out of the hatched egg
- *
* The boolean hatching will override this number.
* Ie. If hatching = false, this number will not matter
*
diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
index c8d0acda0a..d4d1b197e9 100644
--- a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
@@ -63,7 +63,7 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
/**
* Gets the amount of experience received when fishing.
- *
* Note: This value has no default effect unless the event state is {@link State#CAUGHT_FISH}.
*
* @return the amount of experience to drop
@@ -74,7 +74,7 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
/**
* Sets the amount of experience received when fishing.
- *
* Note: This value has no default effect unless the event state is {@link State#CAUGHT_FISH}.
*
* @param amount the amount of experience to drop
diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java
index 1c1fc0c358..a5dfc0bba1 100644
--- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java
@@ -54,7 +54,7 @@ public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
/**
* Sets the cancellation state of this event. A canceled event will not
* be executed in the server, but will still pass to other plugins
- *
* Canceling this event will prevent use of food (player won't lose the
* food item), prevent bows/snowballs/eggs from firing, etc. (player won't
* lose the ammo)
diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
index e65124fbef..fa3b340ed5 100644
--- a/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
@@ -23,7 +23,7 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable {
/**
* Gets the cancellation state of this event. A cancelled event will not
* be executed in the server, but will still pass to other plugins
- *
* If a move or teleport event is cancelled, the player will be moved or
* teleported back to the Location as defined by getFrom(). This will not
* fire an event
@@ -37,7 +37,7 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable {
/**
* Sets the cancellation state of this event. A cancelled event will not
* be executed in the server, but will still pass to other plugins
- *
* If a move or teleport event is cancelled, the player will be moved or
* teleported back to the Location as defined by getFrom(). This will not
* fire an event
diff --git a/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java
index 0c23cbf024..71106f3708 100644
--- a/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java
@@ -6,7 +6,7 @@ import org.bukkit.generator.BlockPopulator;
/**
* Thrown when a new chunk has finished being populated.
- *
* If your intent is to populate the chunk using this event, please see {@link BlockPopulator}
*/
public class ChunkPopulateEvent extends ChunkEvent {
diff --git a/paper-api/src/main/java/org/bukkit/generator/BlockPopulator.java b/paper-api/src/main/java/org/bukkit/generator/BlockPopulator.java
index 968aabd361..041dc4fc22 100644
--- a/paper-api/src/main/java/org/bukkit/generator/BlockPopulator.java
+++ b/paper-api/src/main/java/org/bukkit/generator/BlockPopulator.java
@@ -11,7 +11,7 @@ import org.bukkit.World;
public abstract class BlockPopulator {
/**
* Populates an area of blocks at or around the given chunk.
- *
* The chunks on each side of the specified chunk must already exist; that is,
* there must be one north, east, south and west of the specified chunk.
* The "corner" chunks may not exist, in which scenario the populator should
diff --git a/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java b/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java
index 1287ea0c8f..c9c152bbf5 100644
--- a/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java
+++ b/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java
@@ -39,7 +39,7 @@ public abstract class ChunkGenerator {
@Deprecated
/**
* Shapes the chunk for the given coordinates.
- *
* This method should return a byte[32768] in the following format:
*
*
* Note that this method should never attempt to get the Chunk at
* the passed coordinates, as doing so may cause an infinite loop
- *
* Note this deprecated method will only be called when both generateExtBlockSections()
* and generateBlockSections() are unimplemented and return null.
@@ -70,10 +70,10 @@ public abstract class ChunkGenerator {
/**
* Shapes the chunk for the given coordinates, with extended block IDs supported (0-4095).
- *
* As of 1.2, chunks are represented by a vertical array of chunk sections, each of which is 16 x 16 x 16 blocks. If a section
* is empty (all zero), the section does not need to be supplied, reducing memory usage.
- *
* This method must return a short[][] array in the following format:
*
* Setting a block at X, Y, Z within the chunk can be done with the following mapping function:
*
* Setting a block at X, Y, Z within the chunk can be done with the following mapping function:
*
* Note that this method should never attempt to get the Chunk at
* the passed coordinates, as doing so may cause an infinite loop
- *
* Note generators that do not return block IDs above 255 should not implement
* this method, or should have it return null (which will result in the
* generateBlockSections() method being called).
@@ -143,10 +143,10 @@ public abstract class ChunkGenerator {
/**
* Shapes the chunk for the given coordinates.
- *
* As of 1.2, chunks are represented by a vertical array of chunk sections, each of which is 16 x 16 x 16 blocks. If a section
* is empty (all zero), the section does not need to be supplied, reducing memory usage.
- *
* This method must return a byte[][] array in the following format:
*
* Setting a block at X, Y, Z within the chunk can be done with the following mapping function:
*
* A null value is returned if a world should not use a fixed spawn point,
* and will instead attempt to find one randomly.
*
diff --git a/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java b/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java
index d3e736cc7e..01c352875e 100644
--- a/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java
+++ b/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java
@@ -97,7 +97,7 @@ public interface EntityEquipment {
/**
* Gets the chance of the currently held item being dropped upon this creature's death
- *
*
*
*
*
*
*
*
*
*
* Caveats:
*
* The returned HashMap contains what it couldn't store, where the key is the
* index of the parameter, and the value is the ItemStack at that index
* of the varargs parameter. If all items are stored, it will return an
* empty HashMap.
- *
* If you pass in ItemStacks which exceed the maximum stack size for the
* Material, first they will be added to partial stacks where
* Material.getMaxStackSize() is not exceeded, up to
@@ -89,10 +89,10 @@ public interface Inventory extends Iterable
* It will try to remove 'as much as possible' from the types and amounts you
* give as arguments.
- *
* The returned HashMap contains what it couldn't remove, where the key is the
* index of the parameter, and the value is the ItemStack at that index of the
* varargs parameter. If all the given ItemStacks are removed, it will return
@@ -187,7 +187,7 @@ public interface Inventory extends Iterable
* The HashMap contains entries where, the key is the slot index, and the
* value is the ItemStack in that slot. If no matching ItemStack with the
* given materialId is found, an empty map is returned.
@@ -200,7 +200,7 @@ public interface Inventory extends Iterable
* The HashMap contains entries where, the key is the slot index, and the
* value is the ItemStack in that slot. If no matching ItemStack with the
* given Material is found, an empty map is returned.
@@ -214,7 +214,7 @@ public interface Inventory extends Iterable
* The HashMap contains entries where, the key is the
* slot index, and the value is the ItemStack in that slot. If no matching
* ImemStrack with the given Material is found, an empty map is returned.
diff --git a/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java b/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java
index 4e0d49470d..5e542b8574 100644
--- a/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java
+++ b/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java
@@ -88,7 +88,7 @@ public abstract class InventoryView {
/**
* Sets one item in this inventory view by its raw slot ID.
- *
* Note: If slot ID -999 is chosen, it may be expected that the item is
* dropped on the ground. This is not required behaviour, however.
* @param slot The ID as returned by InventoryClickEvent.getRawSlot()
diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java
index 58b7e99229..244aa559c9 100644
--- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java
+++ b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java
@@ -148,7 +148,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Sets the type of this item
- *
* Note that in doing so you will reset the MaterialData for this stack
*
* @param type New type to set the items in this stack to
@@ -170,7 +170,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Sets the type id of this item
- *
* Note that in doing so you will reset the MaterialData for this stack
*
* @param type New type id to set the items in this stack to
@@ -381,7 +381,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Adds the specified enchantments to this item stack.
- *
* This method is the same as calling {@link #addEnchantment(org.bukkit.enchantments.Enchantment, int)}
* for each element of the map.
*
@@ -400,7 +400,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Adds the specified {@link Enchantment} to this item stack.
- *
* If this item stack already contained the given enchantment (at any level), it will be replaced.
*
* @param ench Enchantment to add
@@ -421,7 +421,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Adds the specified enchantments to this item stack in an unsafe manner.
- *
* This method is the same as calling {@link #addUnsafeEnchantment(org.bukkit.enchantments.Enchantment, int)}
* for each element of the map.
*
@@ -436,9 +436,9 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/**
* Adds the specified {@link Enchantment} to this item stack.
- *
* If this item stack already contained the given enchantment (at any level), it will be replaced.
- *
* This method is unsafe and will ignore level restrictions or item type. Use at your own
* discretion.
*
diff --git a/paper-api/src/main/java/org/bukkit/permissions/Permissible.java b/paper-api/src/main/java/org/bukkit/permissions/Permissible.java
index 2e0be736c9..e094f069d4 100644
--- a/paper-api/src/main/java/org/bukkit/permissions/Permissible.java
+++ b/paper-api/src/main/java/org/bukkit/permissions/Permissible.java
@@ -25,7 +25,7 @@ public interface Permissible extends ServerOperator {
/**
* Gets the value of the specified permission, if set.
- *
* If a permission override is not set on this object, the default value of the permission will be returned.
*
* @param name Name of the permission
@@ -35,7 +35,7 @@ public interface Permissible extends ServerOperator {
/**
* Gets the value of the specified permission, if set.
- *
* If a permission override is not set on this object, the default value of the permission will be returned
*
* @param perm Permission to get
@@ -91,7 +91,7 @@ public interface Permissible extends ServerOperator {
/**
* Recalculates the permissions for this object, if the attachments have changed values.
- *
* This should very rarely need to be called from a plugin.
*/
public void recalculatePermissions();
diff --git a/paper-api/src/main/java/org/bukkit/permissions/Permission.java b/paper-api/src/main/java/org/bukkit/permissions/Permission.java
index 17b6a46392..a5bfdc3fb1 100644
--- a/paper-api/src/main/java/org/bukkit/permissions/Permission.java
+++ b/paper-api/src/main/java/org/bukkit/permissions/Permission.java
@@ -96,7 +96,7 @@ public class Permission {
/**
* Sets the default value of this permission.
- *
* This will not be saved to disk, and is a temporary operation until the server reloads permissions.
* Changing this default will cause all {@link Permissible}s that contain this permission to recalculate their permissions
*
@@ -122,7 +122,7 @@ public class Permission {
/**
* Sets the description of this permission.
- *
* This will not be saved to disk, and is a temporary operation until the server reloads permissions.
*
* @param value The new description to set
@@ -137,7 +137,7 @@ public class Permission {
/**
* Gets a set containing every {@link Permissible} that has this permission.
- *
* This set cannot be modified.
*
* @return Set containing permissibles with this permission
@@ -148,7 +148,7 @@ public class Permission {
/**
* Recalculates all {@link Permissible}s that contain this permission.
- *
* This should be called after modifying the children, and is automatically called after modifying the default value
*/
public void recalculatePermissibles() {
@@ -163,7 +163,7 @@ public class Permission {
/**
* Adds this permission to the specified parent permission.
- *
* If the parent permission does not exist, it will be created and registered.
*
* @param name Name of the parent permission
@@ -199,7 +199,7 @@ public class Permission {
/**
* Loads a list of Permissions from a map of data, usually used from retrieval from a yaml file.
- *
* The data may contain a list of name:data, where the data contains the following keys:
* default: Boolean true or false. If not specified, false.
* children: Map
* The data may contain the following keys:
* default: Boolean true or false. If not specified, false.
* children: Map
* The data may contain the following keys:
* default: Boolean true or false. If not specified, false.
* children: Map
* This map may be modified but will not affect the attachment, as it is a copy.
*
* @return Copy of all permissions and values expressed by this attachment
@@ -94,7 +94,7 @@ public class PermissionAttachment {
/**
* Removes the specified permission from this attachment.
- *
* If the permission does not exist in this attachment, nothing will happen.
*
* @param name Name of the permission to remove
@@ -106,7 +106,7 @@ public class PermissionAttachment {
/**
* Removes the specified permission from this attachment.
- *
* If the permission does not exist in this attachment, nothing will happen.
*
* @param perm Permission to remove
diff --git a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java
index c266114c5e..40cda8919a 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java
@@ -13,7 +13,7 @@ import com.avaje.ebean.EbeanServer;
/**
* Represents a Plugin
- *
* The use of {@link PluginBase} is recommended for actual Implementation
*/
public interface Plugin extends TabExecutor {
@@ -34,7 +34,7 @@ public interface Plugin extends TabExecutor {
/**
* Gets a {@link FileConfiguration} for this plugin, read through "config.yml"
- *
* If there is a default config.yml embedded in this plugin, it will be provided
* as a default for this Configuration.
*
diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginBase.java b/paper-api/src/main/java/org/bukkit/plugin/PluginBase.java
index 8b825adb60..8d5f37d30d 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/PluginBase.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/PluginBase.java
@@ -2,7 +2,7 @@ package org.bukkit.plugin;
/**
* Represents a base {@link Plugin}
- *
* Extend this class if your plugin is not a {@link org.bukkit.plugin.java.JavaPlugin}
*/
public abstract class PluginBase implements Plugin {
diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java
index 5247b0ae70..950c9fccc2 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java
@@ -52,7 +52,7 @@ public interface PluginLoader {
/**
* Enables the specified plugin
- *
* Attempting to enable a plugin that is already enabled will have no effect
*
* @param plugin Plugin to enable
@@ -61,7 +61,7 @@ public interface PluginLoader {
/**
* Disables the specified plugin
- *
* Attempting to disable a plugin that is not enabled will have no effect
*
* @param plugin Plugin to disable
diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java
index 89697de8b6..cde9c36fc5 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java
@@ -24,7 +24,7 @@ public interface PluginManager {
/**
* Checks if the given plugin is loaded and returns it when applicable
- *
* Please note that the name of the plugin is case-sensitive
*
* @param name Name of the plugin to check
@@ -41,7 +41,7 @@ public interface PluginManager {
/**
* Checks if the given plugin is enabled or not
- *
* Please note that the name of the plugin is case-sensitive.
*
* @param name Name of the plugin to check
@@ -59,7 +59,7 @@ public interface PluginManager {
/**
* Loads the plugin in the specified file
- *
* File must be valid according to the current enabled Plugin interfaces
*
* @param file File containing the plugin to load
@@ -131,7 +131,7 @@ public interface PluginManager {
/**
* Enables the specified plugin
- *
* Attempting to enable a plugin that is already enabled will have no effect
*
* @param plugin Plugin to enable
@@ -140,7 +140,7 @@ public interface PluginManager {
/**
* Disables the specified plugin
- *
* Attempting to disable a plugin that is not enabled will have no effect
*
* @param plugin Plugin to disable
@@ -157,7 +157,7 @@ public interface PluginManager {
/**
* Adds a {@link Permission} to this plugin manager.
- *
* If a permission is already defined with the given name of the new permission,
* an exception will be thrown.
*
@@ -168,9 +168,9 @@ public interface PluginManager {
/**
* Removes a {@link Permission} registration from this plugin manager.
- *
* If the specified permission does not exist in this plugin manager, nothing will happen.
- *
* Removing a permission registration will not remove the permission from any {@link Permissible}s that have it.
*
* @param perm Permission to remove
@@ -179,9 +179,9 @@ public interface PluginManager {
/**
* Removes a {@link Permission} registration from this plugin manager.
- *
* If the specified permission does not exist in this plugin manager, nothing will happen.
- *
* Removing a permission registration will not remove the permission from any {@link Permissible}s that have it.
*
* @param name Permission to remove
@@ -198,7 +198,7 @@ public interface PluginManager {
/**
* Recalculates the defaults for the given {@link Permission}.
- *
* This will have no effect if the specified permission is not registered here.
*
* @param perm Permission to recalculate
@@ -207,7 +207,7 @@ public interface PluginManager {
/**
* Subscribes the given Permissible for information about the requested Permission, by name.
- *
* If the specified Permission changes in any form, the Permissible will be asked to recalculate.
*
* @param permission Permission to subscribe to
@@ -233,7 +233,7 @@ public interface PluginManager {
/**
* Subscribes to the given Default permissions by operator status
- *
* If the specified defaults change in any form, the Permissible will be asked to recalculate.
*
* @param op Default list to subscribe to
@@ -259,7 +259,7 @@ public interface PluginManager {
/**
* Gets a set of all registered permissions.
- *
* This set is a copy and will not be modified live.
*
* @return Set containing all current registered permissions
diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java
index 8224d299b3..93fb4f5a27 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java
@@ -279,7 +279,7 @@ public final class SimplePluginManager implements PluginManager {
/**
* Loads the plugin in the specified file
- *
* File must be valid according to the current enabled Plugin interfaces
*
* @param file File containing the plugin to load
@@ -327,7 +327,7 @@ public final class SimplePluginManager implements PluginManager {
/**
* Checks if the given plugin is loaded and returns it when applicable
- *
* Please note that the name of the plugin is case-sensitive
*
* @param name Name of the plugin to check
@@ -343,7 +343,7 @@ public final class SimplePluginManager implements PluginManager {
/**
* Checks if the given plugin is enabled or not
- *
* Please note that the name of the plugin is case-sensitive.
*
* @param name Name of the plugin to check
diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java
index 8902e67d64..bb3e8b3f2a 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java
@@ -223,7 +223,7 @@ public abstract class JavaPlugin extends PluginBase {
/**
* Initializes this plugin with the given variables.
- *
* This method should never be called manually.
*
* @param loader PluginLoader that is responsible for this plugin
diff --git a/paper-api/src/main/java/org/bukkit/plugin/messaging/Messenger.java b/paper-api/src/main/java/org/bukkit/plugin/messaging/Messenger.java
index 6f5b1bbf4a..c5b152500e 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/messaging/Messenger.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/messaging/Messenger.java
@@ -161,7 +161,7 @@ public interface Messenger {
/**
* Checks if the specified plugin message listener registration is valid.
- *
* A registration is considered valid if it has not be unregistered and that the plugin
* is still enabled.
*
diff --git a/paper-api/src/main/java/org/bukkit/plugin/messaging/PluginMessageRecipient.java b/paper-api/src/main/java/org/bukkit/plugin/messaging/PluginMessageRecipient.java
index ccf14144af..6383166b86 100644
--- a/paper-api/src/main/java/org/bukkit/plugin/messaging/PluginMessageRecipient.java
+++ b/paper-api/src/main/java/org/bukkit/plugin/messaging/PluginMessageRecipient.java
@@ -9,7 +9,7 @@ import org.bukkit.plugin.Plugin;
public interface PluginMessageRecipient {
/**
* Sends this recipient a Plugin Message on the specified outgoing channel.
- *
* The message may not be larger than {@link Messenger#MAX_MESSAGE_SIZE} bytes, and the plugin must be registered to send
* messages on the specified channel.
*
diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java
index b6e8a0de4d..1012abd1c1 100644
--- a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java
+++ b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java
@@ -212,7 +212,7 @@ public abstract class PotionEffectType {
/**
* Registers an effect type with the given object.
- *
* Generally not to be used from within a plugin.
*
* @param type PotionType to register
diff --git a/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java b/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
index 5cc9196beb..ff58f32658 100644
--- a/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
+++ b/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java
@@ -91,7 +91,7 @@ public interface BukkitScheduler {
/**
* Calls a method on the main thread and returns a Future object
* This task will be executed by the main server thread.
- *
* Note: The Future.get() methods must NOT be called from the main thread.
* Note2: There is at least an average of 10ms latency until the isDone() method returns true.
*
@@ -123,33 +123,33 @@ public interface BukkitScheduler {
/**
* Check if the task currently running.
- *
* A repeating task might not be running currently, but will be running in the future.
* A task that has finished, and does not repeat, will not be running ever again.
- *
* Explicitly, a task is running if there exists a thread for it, and that thread is alive.
*
* @param taskId The task to check.
- *
* @return If the task is currently running.
*/
public boolean isCurrentlyRunning(int taskId);
/**
* Check if the task queued to be run later.
- *
* If a repeating task is currently running, it might not be queued now but could be in the future.
* A task that is not queued, and not running, will not be queued again.
*
* @param taskId The task to check.
- *
* @return If the task is queued to be run.
*/
public boolean isQueued(int taskId);
/**
* Returns a list of all active workers.
- *
* This list contains asynch tasks that are being executed by separate threads.
*
* @return Active workers
diff --git a/paper-api/src/main/java/org/bukkit/util/Vector.java b/paper-api/src/main/java/org/bukkit/util/Vector.java
index af4d5770fa..30547c52bc 100644
--- a/paper-api/src/main/java/org/bukkit/util/Vector.java
+++ b/paper-api/src/main/java/org/bukkit/util/Vector.java
@@ -279,7 +279,7 @@ public class Vector implements Cloneable, ConfigurationSerializable {
/**
* Calculates the cross product of this vector with another. The cross
* product is defined as:
- *
* x = y1 * z2 - y2 * z1
* Only two Vectors can ever return true. This method uses a fuzzy match
* to account for floating point errors. The epsilon can be retrieved
* with epsilon.
diff --git a/paper-api/src/main/java/org/bukkit/util/noise/OctaveGenerator.java b/paper-api/src/main/java/org/bukkit/util/noise/OctaveGenerator.java
index 21ff90fd2f..4bb61c6139 100644
--- a/paper-api/src/main/java/org/bukkit/util/noise/OctaveGenerator.java
+++ b/paper-api/src/main/java/org/bukkit/util/noise/OctaveGenerator.java
@@ -15,7 +15,7 @@ public abstract class OctaveGenerator {
/**
* Sets the scale used for all coordinates passed to this generator.
- *
* This is the equivalent to setting each coordinate to the specified value.
*
* @param scale New value to scale each coordinate by
diff --git a/paper-api/src/main/java/org/bukkit/util/noise/SimplexNoiseGenerator.java b/paper-api/src/main/java/org/bukkit/util/noise/SimplexNoiseGenerator.java
index ceca62bb3e..32c0c1652f 100644
--- a/paper-api/src/main/java/org/bukkit/util/noise/SimplexNoiseGenerator.java
+++ b/paper-api/src/main/java/org/bukkit/util/noise/SimplexNoiseGenerator.java
@@ -5,7 +5,7 @@ import org.bukkit.World;
/**
* Generates simplex-based noise.
- *
* This is a modified version of the freely published version in the paper by
* Stefan Gustavson at http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
*/
- * This uses the same algorithm that hostile mobs use to find the closest player.
+ * Checks whether the living entity has block line of sight to another.
+ *
- * By default animals are not removed while other mobs are.
+ * Returns if the living entity despawns when away from players or not.
+ *
*
*
@@ -16,11 +16,11 @@ import org.bukkit.event.HandlerList;
* The player does not have silk touch
* The block drops experience in vanilla MineCraft
*
- *
+ *
*
*
- *
+ *
*
- *
+ *
*
- *
+ *
*
- *
+ *
*
@@ -51,10 +51,10 @@ public abstract class ChunkGenerator {
* }
* }
*
- *
+ *
* short[][] result = new short[world-height / 16][];
@@ -83,7 +83,7 @@ public abstract class ChunkGenerator {
* result[sectionID] = new short[4096];
*
* while sections that are not populated can be left null.
- *
+ *
* void setBlock(short[][] result, int x, int y, int z, short blkid) {
@@ -103,7 +103,7 @@ public abstract class ChunkGenerator {
* }
*
* while sections that are not populated can be left null.
- *
+ *
* void setBlock(short[][] result, int x, int y, int z, short blkid) {
@@ -122,10 +122,10 @@ public abstract class ChunkGenerator {
* return result[y >> 4][((y & 0xF) << 8) | (z << 4) | x];
* }
*
- *
+ *
* byte[][] result = new byte[world-height / 16][];
@@ -156,7 +156,7 @@ public abstract class ChunkGenerator {
* result[sectionID] = new byte[4096];
*
* while sections that are not populated can be left null.
- *
+ *
* void setBlock(byte[][] result, int x, int y, int z, byte blkid) {
@@ -224,7 +224,7 @@ public abstract class ChunkGenerator {
/**
* Gets a fixed spawn location to use for a given world.
- *
+ *
A drop chance of 0F will never drop
* A drop chance of 1F will always drop
*
@@ -107,7 +107,7 @@ public interface EntityEquipment {
/**
* Sets the chance of the item this creature is currently holding being dropped upon this creature's death
- *
+ *
*
* y = z1 * x2 - z2 * x1
* z = x1 * y2 - x2 * y1
@@ -507,7 +507,7 @@ public class Vector implements Cloneable, ConfigurationSerializable {
/**
* Checks to see if two objects are equal.
- *