Fix JavaDoc errors

This commit is contained in:
tastybento 2023-02-08 18:40:03 -08:00
parent b62a1862a2
commit 224be307a0
4 changed files with 10 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public final class EnumTypeAdapter<T extends Enum<T>> extends TypeAdapter<T> {
/**
* Bimap to store name <-> enum references
* Bimap to store name,enum pair references
*/
private final BiMap<String, T> enumMap = HashBiMap.create();

View File

@ -103,7 +103,6 @@ public class CleanSuperFlatListener extends FlagListener {
/**
* This method clears the chunk from queue in the given world
* @param world The world that must be cleared.
* @param cg Chunk generator.
*/
private void cleanChunk(World world)
{

View File

@ -182,9 +182,13 @@ public class ItemParser {
/**
* This method parses array of 6 items into an item stack.
* Format:
* <pre>{@code
* POTION:NAME:<LEVEL>:<EXTENDED>:<SPLASH/LINGER>:QTY
* }</pre>
* Example:
* <pre>{@code
* POTION:STRENGTH:1:EXTENDED:SPLASH:1
* }</pre>
* @param part String array that contains 6 elements.
* @return Potion with given properties.
*/
@ -257,13 +261,17 @@ public class ItemParser {
/**
* This method parses array of 2 to 3 elements that represents player head.
* Format:
* <pre>{@code
* PLAYER_HEAD:<STRING/Trimmed UUID/UUID/Texture>:QTY
* PLAYER_HEAD:<STRING/Trimmed UUID/UUID/Texture>
* PLAYER_HEAD:QTY
* }</pre>
* Example:
* <pre>{@code
* PLAYER_HEAD:1
* PLAYER_HEAD:BONNe1704
* PLAYER_HEAD:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWY1ZjE1OTg4NmNjNTMxZmZlYTBkOGFhNWY5MmVkNGU1ZGE2NWY3MjRjMDU3MGFmODZhOTBiZjAwYzY3YzQyZSJ9fX0:1
* }</pre>
* @param part String array that contains at least 2 elements.
* @return Player head with given properties.
*/

View File

@ -59,7 +59,7 @@ import world.bentobox.bentobox.nms.WorldRegenerator;
*/
public class Util {
/**
* Use standard color code definition: &<hex>.
* Use standard color code definition: {@code &<hex>}.
*/
private static final Pattern HEX_PATTERN = Pattern.compile("&#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})");
private static final String NETHER = "_nether";