mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 01:23:44 +01:00 
			
		
		
		
	Fix tag p
This commit is contained in:
		| @@ -69,7 +69,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a byte array named with the given key. <p/> <p> If the key does not exist or its value is not a byte array | ||||
|      * Get a byte array named with the given key. <p> If the key does not exist or its value is not a byte array | ||||
|      * tag, then an empty byte array will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -86,7 +86,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a byte named with the given key. <p/> <p> If the key does not exist or its value is not a byte tag, then | ||||
|      * Get a byte named with the given key.  <p> If the key does not exist or its value is not a byte tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -103,7 +103,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a double named with the given key. <p/> <p> If the key does not exist or its value is not a double tag, then | ||||
|      * Get a double named with the given key. <p> If the key does not exist or its value is not a double tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -120,7 +120,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a double named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or | ||||
|      * Get a double named with the given key, even if it's another type of number. <p> If the key does not exist or | ||||
|      * its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -147,7 +147,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a float named with the given key. <p/> <p> If the key does not exist or its value is not a float tag, then | ||||
|      * Get a float named with the given key.  <p> If the key does not exist or its value is not a float tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -164,7 +164,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a {@code int[]} named with the given key. <p/> <p> If the key does not exist or its value is not an int array | ||||
|      * Get a {@code int[]} named with the given key.  <p> If the key does not exist or its value is not an int array | ||||
|      * tag, then an empty array will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -181,7 +181,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get an int named with the given key. <p/> <p> If the key does not exist or its value is not an int tag, then | ||||
|      * Get an int named with the given key.  <p> If the key does not exist or its value is not an int tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -198,7 +198,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get an int named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or | ||||
|      * Get an int named with the given key, even if it's another type of number.  <p> If the key does not exist or | ||||
|      * its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -225,7 +225,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a list of tags named with the given key. <p/> <p> If the key does not exist or its value is not a list tag, | ||||
|      * Get a list of tags named with the given key.  <p> If the key does not exist or its value is not a list tag, | ||||
|      * then an empty list will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -242,7 +242,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a {@code TagList} named with the given key. <p/> <p> If the key does not exist or its value is not a list | ||||
|      * Get a {@code TagList} named with the given key.  <p> If the key does not exist or its value is not a list | ||||
|      * tag, then an empty tag list will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -259,7 +259,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a list of tags named with the given key. <p/> <p> If the key does not exist or its value is not a list tag, | ||||
|      * Get a list of tags named with the given key.  <p> If the key does not exist or its value is not a list tag, | ||||
|      * then an empty list will be returned. If the given key references a list but the list of of a different type, then | ||||
|      * an empty list will also be returned. </p> | ||||
|      * | ||||
| @@ -285,7 +285,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a long named with the given key. <p/> <p> If the key does not exist or its value is not a long tag, then | ||||
|      * Get a long named with the given key.  <p> If the key does not exist or its value is not a long tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -302,7 +302,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a long named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or | ||||
|      * Get a long named with the given key, even if it's another type of number.  <p> If the key does not exist or | ||||
|      * its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -329,7 +329,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a short named with the given key. <p/> <p> If the key does not exist or its value is not a short tag, then | ||||
|      * Get a short named with the given key.  <p> If the key does not exist or its value is not a short tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
| @@ -346,7 +346,7 @@ public final class CompoundTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a string named with the given key. <p/> <p> If the key does not exist or its value is not a string tag, then | ||||
|      * Get a string named with the given key.  <p> If the key does not exist or its value is not a string tag, then | ||||
|      * {@code ""} will be returned. </p> | ||||
|      * | ||||
|      * @param key the key | ||||
|   | ||||
| @@ -84,7 +84,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a byte array named with the given index. <p/> <p> If the index does not exist or its value is not a byte | ||||
|      * Get a byte array named with the given index.  <p> If the index does not exist or its value is not a byte | ||||
|      * array tag, then an empty byte array will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -101,7 +101,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a byte named with the given index. <p/> <p> If the index does not exist or its value is not a byte tag, then | ||||
|      * Get a byte named with the given index.  <p> If the index does not exist or its value is not a byte tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -118,7 +118,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a double named with the given index. <p/> <p> If the index does not exist or its value is not a double tag, | ||||
|      * Get a double named with the given index.  <p> If the index does not exist or its value is not a double tag, | ||||
|      * then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -135,7 +135,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a double named with the given index, even if it's another type of number. <p/> <p> If the index does not | ||||
|      * Get a double named with the given index, even if it's another type of number.  <p> If the index does not | ||||
|      * exist or its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -162,7 +162,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a float named with the given index. <p/> <p> If the index does not exist or its value is not a float tag, | ||||
|      * Get a float named with the given index.  <p> If the index does not exist or its value is not a float tag, | ||||
|      * then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -179,7 +179,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a {@code int[]} named with the given index. <p/> <p> If the index does not exist or its value is not an int | ||||
|      * Get a {@code int[]} named with the given index.  <p> If the index does not exist or its value is not an int | ||||
|      * array tag, then an empty array will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -196,7 +196,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get an int named with the given index. <p/> <p> If the index does not exist or its value is not an int tag, then | ||||
|      * Get an int named with the given index.  <p> If the index does not exist or its value is not an int tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -213,7 +213,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get an int named with the given index, even if it's another type of number. <p/> <p> If the index does not exist | ||||
|      * Get an int named with the given index, even if it's another type of number.  <p> If the index does not exist | ||||
|      * or its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -240,7 +240,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a list of tags named with the given index. <p/> <p> If the index does not exist or its value is not a list | ||||
|      * Get a list of tags named with the given index.  <p> If the index does not exist or its value is not a list | ||||
|      * tag, then an empty list will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -257,7 +257,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a {@code TagList} named with the given index. <p/> <p> If the index does not exist or its value is not a list | ||||
|      * Get a {@code TagList} named with the given index.  <p> If the index does not exist or its value is not a list | ||||
|      * tag, then an empty tag list will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -274,7 +274,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a list of tags named with the given index. <p/> <p> If the index does not exist or its value is not a list | ||||
|      * Get a list of tags named with the given index.  <p> If the index does not exist or its value is not a list | ||||
|      * tag, then an empty list will be returned. If the given index references a list but the list of of a different | ||||
|      * type, then an empty list will also be returned. </p> | ||||
|      * | ||||
| @@ -300,7 +300,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a long named with the given index. <p/> <p> If the index does not exist or its value is not a long tag, then | ||||
|      * Get a long named with the given index.  <p> If the index does not exist or its value is not a long tag, then | ||||
|      * {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -317,7 +317,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a long named with the given index, even if it's another type of number. <p/> <p> If the index does not exist | ||||
|      * Get a long named with the given index, even if it's another type of number.  <p> If the index does not exist | ||||
|      * or its value is not a number, then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -344,7 +344,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a short named with the given index. <p/> <p> If the index does not exist or its value is not a short tag, | ||||
|      * Get a short named with the given index.  <p> If the index does not exist or its value is not a short tag, | ||||
|      * then {@code 0} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
| @@ -361,7 +361,7 @@ public final class ListTag extends Tag { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get a string named with the given index. <p/> <p> If the index does not exist or its value is not a string tag, | ||||
|      * Get a string named with the given index.  <p> If the index does not exist or its value is not a string tag, | ||||
|      * then {@code ""} will be returned. </p> | ||||
|      * | ||||
|      * @param index the index | ||||
|   | ||||
| @@ -11,7 +11,7 @@ import java.util.Map; | ||||
|  | ||||
| /** | ||||
|  * This class reads <strong>NBT</strong>, or <strong>Named Binary Tag</strong> streams, and produces an object graph of | ||||
|  * subclasses of the {@code Tag} object. <p/> <p> The NBT format was created by Markus Persson, and the specification | ||||
|  * subclasses of the {@code Tag} object.  <p> The NBT format was created by Markus Persson, and the specification | ||||
|  * may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>. </p> | ||||
|  */ | ||||
| public final class NBTInputStream implements Closeable { | ||||
|   | ||||
| @@ -28,7 +28,7 @@ import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * <p> This class writes <strong>NBT</strong>, or <strong>Named Binary Tag</strong> <code>Tag</code> objects to an | ||||
|  * underlying <code>OutputStream</code>. </p> <p/> <p> The NBT format was created by Markus Persson, and the | ||||
|  * underlying <code>OutputStream</code>. </p>  <p> The NBT format was created by Markus Persson, and the | ||||
|  * specification may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>. | ||||
|  * </p> | ||||
|  * | ||||
|   | ||||
| @@ -4,13 +4,13 @@ package com.intellectualcrafters.json; | ||||
|  * This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma | ||||
|  * delimited text. Comma delimited text is a very popular format for data interchange. It is understood by most | ||||
|  * database, spreadsheet, and organizer programs. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * Each row of text represents a row in a table or a data record. Each row ends with a NEWLINE character. Each row | ||||
|  * contains one or more values. Values are separated by commas. A value can contain any character except for comma, | ||||
|  * unless is is wrapped in single quotes or double quotes. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The first row usually contains the names of the columns. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * A comma delimited list can be converted into a JSONArray of JSONObjects. The names for the elements in the | ||||
|  * JSONObjects can be taken from the names in the first row. | ||||
|  * | ||||
|   | ||||
| @@ -13,7 +13,7 @@ public class CookieList { | ||||
|      * Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated | ||||
|      * from the values by '='. The pairs are separated by ';'. The names and the values will be unescaped, possibly | ||||
|      * converting '+' and '%' sequences. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"), | ||||
|      * cookieJSONObject.getString("value")); | ||||
|      * | ||||
|   | ||||
| @@ -37,8 +37,8 @@ public class HTTP { | ||||
|     /** | ||||
|      * Convert an HTTP header string into a JSONObject. It can be a request header or a response header. A request | ||||
|      * header will contain | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * { | ||||
|      *    Method: "POST" (for example), | ||||
| @@ -46,10 +46,10 @@ public class HTTP { | ||||
|      *    "HTTP-Version": "HTTP/1.1" (for example) | ||||
|      * } | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * A response header will contain | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * { | ||||
|      *    "HTTP-Version": "HTTP/1.1" (for example), | ||||
| @@ -57,20 +57,20 @@ public class HTTP { | ||||
|      *    "Reason-Phrase": "OK" (for example) | ||||
|      * } | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * In addition, the other parameters in the header will be captured, using the HTTP field names as JSON names, so | ||||
|      * that | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      *    Date: Sun, 26 May 2002 18:06:04 GMT | ||||
|      *    Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s | ||||
|      *    Cache-Control: no-cache | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * become | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * {... | ||||
|      *    Date: "Sun, 26 May 2002 18:06:04 GMT", | ||||
| @@ -78,7 +78,7 @@ public class HTTP { | ||||
|      *    "Cache-Control": "no-cache", | ||||
|      * ...} | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * It does no further checking or conversion. It does not parse dates. It does not do '%' transforms on URLs. | ||||
|      * | ||||
|      * @param string An HTTP header string. | ||||
| @@ -116,8 +116,8 @@ public class HTTP { | ||||
|  | ||||
|     /** | ||||
|      * Convert a JSONObject into an HTTP header. A request header must contain | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * { | ||||
|      *    Method: "POST" (for example), | ||||
| @@ -125,10 +125,10 @@ public class HTTP { | ||||
|      *    "HTTP-Version": "HTTP/1.1" (for example) | ||||
|      * } | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * A response header must contain | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * { | ||||
|      *    "HTTP-Version": "HTTP/1.1" (for example), | ||||
| @@ -136,7 +136,7 @@ public class HTTP { | ||||
|      *    "Reason-Phrase": "OK" (for example) | ||||
|      * } | ||||
|      * </pre> | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Any other members of the JSONObject will be output as HTTP fields. The result will end with two CRLF pairs. | ||||
|      * | ||||
|      * @param jo A JSONObject | ||||
|   | ||||
| @@ -34,16 +34,16 @@ import java.util.Map; | ||||
|  * accessing the values by index, and <code>put</code> methods for adding or replacing values. The values can be any of | ||||
|  * these types: <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, <code>Number</code>, | ||||
|  * <code>String</code>, or the <code>JSONObject.NULL object</code>. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The constructor can convert a JSON text into a Java object. The <code>toString</code> method converts to JSON text. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * A <code>get</code> method returns a value if one can be found, and throws an exception if one cannot be found. An | ||||
|  * <code>opt</code> method returns a default value instead of throwing an exception, and so is useful for obtaining | ||||
|  * optional values. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The generic <code>get()</code> and <code>opt()</code> methods return an object which you can cast or query for type. | ||||
|  * There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The texts produced by the <code>toString</code> methods strictly conform to JSON syntax rules. The constructors are | ||||
|  * more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code> <small>(comma)</small> may appear | ||||
|  * just before the closing bracket.</li> <li>The <code>null</code> value will be inserted when there is <code>,</code> | ||||
| @@ -789,7 +789,7 @@ public class JSONArray { | ||||
|      * Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to | ||||
|      * produce a syntactically correct JSON text then null will be returned instead. This could occur if the array | ||||
|      * contains an invalid number. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @return a printable, displayable, transmittable representation of the array. | ||||
| @@ -824,7 +824,7 @@ public class JSONArray { | ||||
|  | ||||
|     /** | ||||
|      * Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @return The writer. | ||||
| @@ -837,7 +837,7 @@ public class JSONArray { | ||||
|  | ||||
|     /** | ||||
|      * Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @param indentFactor The number of spaces to add to each level of indentation. | ||||
|   | ||||
| @@ -222,7 +222,7 @@ public class JSONML { | ||||
|      * XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes | ||||
|      * will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes" | ||||
|      * property which will be an array of strings and JsonML JSONObjects. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored. | ||||
|      * | ||||
|      * @param x An XMLTokener of the XML source text. | ||||
| @@ -240,7 +240,7 @@ public class JSONML { | ||||
|      * XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes | ||||
|      * will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes" | ||||
|      * property which will be an array of strings and JsonML JSONObjects. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored. | ||||
|      * | ||||
|      * @param string The XML source text. | ||||
|   | ||||
| @@ -27,21 +27,21 @@ import java.util.Set; | ||||
|  * values into a JSON text using the <code>put</code> and <code>toString</code> methods. A <code>get</code> method | ||||
|  * returns a value if one can be found, and throws an exception if one cannot be found. An <code>opt</code> method | ||||
|  * returns a default value instead of throwing an exception, and so is useful for obtaining optional values. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The generic <code>get()</code> and <code>opt()</code> methods return an object, which you can cast or query for type. | ||||
|  * There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you. | ||||
|  * The opt methods differ from the get methods in that they do not throw. Instead, they return a specified value, such | ||||
|  * as null. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The <code>put</code> methods add or replace values in an object. For example, | ||||
|  * <p/> | ||||
|  * <p/> | ||||
|  *  | ||||
|  *  | ||||
|  * <pre> | ||||
|  * myString = new JSONObject().put("JSON", "Hello, World!").toString(); | ||||
|  * </pre> | ||||
|  * <p/> | ||||
|  *  | ||||
|  * produces the string <code>{"JSON": "Hello, World"}</code>. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The texts produced by the <code>toString</code> methods strictly conform to the JSON syntax rules. The constructors | ||||
|  * are more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code> <small>(comma)</small> may | ||||
|  * appear just before the closing brace.</li> <li>Strings may be quoted with <code>'</code> <small>(single | ||||
| @@ -164,10 +164,10 @@ public class JSONObject { | ||||
|      * For each of the methods with no parameters and a name starting with <code>"get"</code> or <code>"is"</code> | ||||
|      * followed by an uppercase letter, the method is invoked, and a key and the value returned from the getter method | ||||
|      * are put into the new JSONObject. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * The key is formed by removing the <code>"get"</code> or <code>"is"</code> prefix. If the second remaining | ||||
|      * character is not upper case, then the first character is converted to lower case. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * For example, if an object has a method named <code>"getName"</code>, and if the result of calling | ||||
|      * <code>object.getName()</code> is <code>"Larry Fine"</code>, then the JSONObject will contain <code>"name": "Larry | ||||
|      * Fine"</code>. | ||||
| @@ -495,8 +495,8 @@ public class JSONObject { | ||||
|      * If the value is an array or Collection, then a JSONArray will be made from it and its toJSONString method will be | ||||
|      * called. If the value is a MAP, then a JSONObject will be made from it and its toJSONString method will be called. | ||||
|      * Otherwise, the value's toString method will be called, and the result will be quoted. | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @param value The value to be serialized. | ||||
| @@ -620,7 +620,7 @@ public class JSONObject { | ||||
|      * Accumulate values under a key. It is similar to the put method except that if there is already an object stored | ||||
|      * under the key then a JSONArray is stored under the key to hold all of the accumulated values. If there is already | ||||
|      * a JSONArray, then the new value is appended to it. In contrast, the put method replaces the previous value. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * If only one value is accumulated that is not a JSONArray, then the result will be the same as using put. But if | ||||
|      * multiple values are accumulated, then the result will be like append. | ||||
|      * | ||||
| @@ -1347,7 +1347,7 @@ public class JSONObject { | ||||
|     /** | ||||
|      * Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a | ||||
|      * syntactically correct JSON text, then null will be returned instead. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @return a printable, displayable, portable, transmittable representation of the object, beginning with | ||||
| @@ -1365,7 +1365,7 @@ public class JSONObject { | ||||
|  | ||||
|     /** | ||||
|      * Make a prettyprinted JSON text of this JSONObject. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @param indentFactor The number of spaces to add to each level of indentation. | ||||
| @@ -1385,7 +1385,7 @@ public class JSONObject { | ||||
|  | ||||
|     /** | ||||
|      * Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @return The writer. | ||||
| @@ -1398,7 +1398,7 @@ public class JSONObject { | ||||
|  | ||||
|     /** | ||||
|      * Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Warning: This method assumes that the data structure is acyclical. | ||||
|      * | ||||
|      * @return The writer. | ||||
|   | ||||
| @@ -6,28 +6,28 @@ import java.io.StringWriter; | ||||
|  * JSONStringer provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON | ||||
|  * syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of | ||||
|  * JSONStringer can produce one JSON text. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * A JSONStringer instance provides a <code>value</code> method for appending values to the text, and a <code>key</code> | ||||
|  * method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that | ||||
|  * make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object | ||||
|  * values. All of these methods return the JSONWriter instance, permitting cascade style. For example, | ||||
|  * <p/> | ||||
|  * <p/> | ||||
|  *  | ||||
|  *  | ||||
|  * <pre> | ||||
|  * myString = new JSONStringer().object().key("JSON").value("Hello, | ||||
|  * World!").endObject().toString(); | ||||
|  * </pre> | ||||
|  * <p/> | ||||
|  *  | ||||
|  * which produces the string | ||||
|  * <p/> | ||||
|  * <p/> | ||||
|  *  | ||||
|  *  | ||||
|  * <pre> | ||||
|  * {"JSON":"Hello, World!"} | ||||
|  * </pre> | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or | ||||
|  * colons. JSONStringer adds them for you. Objects and arrays can be nested up to 20 levels deep. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * This can sometimes be easier than using a JSONObject to build a string. | ||||
|  * | ||||
|  * @author JSON.org | ||||
|   | ||||
| @@ -7,27 +7,27 @@ import java.io.Writer; | ||||
|  * JSONWriter provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON | ||||
|  * syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of | ||||
|  * JSONWriter can produce one JSON text. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * A JSONWriter instance provides a <code>value</code> method for appending values to the text, and a <code>key</code> | ||||
|  * method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that | ||||
|  * make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object | ||||
|  * values. All of these methods return the JSONWriter instance, permitting a cascade style. For example, | ||||
|  * <p/> | ||||
|  * <p/> | ||||
|  *  | ||||
|  *  | ||||
|  * <pre> | ||||
|  * new JSONWriter(myWriter).object().key("JSON").value("Hello, World!").endObject(); | ||||
|  * </pre> | ||||
|  * <p/> | ||||
|  *  | ||||
|  * which writes | ||||
|  * <p/> | ||||
|  * <p/> | ||||
|  *  | ||||
|  *  | ||||
|  * <pre> | ||||
|  * {"JSON":"Hello, World!"} | ||||
|  * </pre> | ||||
|  * <p/> | ||||
|  *  | ||||
|  * The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or | ||||
|  * colons. JSONWriter adds them for you. Objects and arrays can be nested up to 20 levels deep. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * This can sometimes be easier than using a JSONObject to build a string. | ||||
|  * | ||||
|  * @author JSON.org | ||||
|   | ||||
| @@ -5,22 +5,22 @@ package com.intellectualcrafters.json; | ||||
|  * byte. The last byte of a character never has the MSB reset. Every byte that is not the last byte has the MSB set. Kim | ||||
|  * stands for "Keep it minimal". A Unicode character is never longer than 3 bytes. Every byte contributes 7 bits to the | ||||
|  * character. ASCII is unmodified. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * Kim UTF-8 one byte U+007F U+007F two bytes U+3FFF U+07FF three bytes U+10FFF U+FFFF four bytes U+10FFFF | ||||
|  * <p/> | ||||
|  *  | ||||
|  * Characters in the ranges U+0800..U+3FFF and U+10000..U+10FFFF will be one byte smaller when encoded in Kim compared | ||||
|  * to UTF-8. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * Kim is beneficial when using scripts such as Old South Arabian, Aramaic, Avestan, Balinese, Batak, Bopomofo, | ||||
|  * Buginese, Buhid, Carian, Cherokee, Coptic, Cyrillic, Deseret, Egyptian Hieroglyphs, Ethiopic, Georgian, Glagolitic, | ||||
|  * Gothic, Hangul Jamo, Hanunoo, Hiragana, Kanbun, Kaithi, Kannada, Katakana, Kharoshthi, Khmer, Lao, Lepcha, Limbu, | ||||
|  * Lycian, Lydian, Malayalam, Mandaic, Meroitic, Miao, Mongolian, Myanmar, New Tai Lue, Ol Chiki, Old Turkic, Oriya, | ||||
|  * Osmanya, Pahlavi, Parthian, Phags-Pa, Phoenician, Samaritan, Sharada, Sinhala, Sora Sompeng, Tagalog, Tagbanwa, | ||||
|  * Takri, Tai Le, Tai Tham, Tamil, Telugu, Thai, Tibetan, Tifinagh, UCAS. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * A kim object can be constructed from an ordinary UTF-16 string, or from a byte array. A kim object can produce a | ||||
|  * UTF-16 string. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * As with UTF-8, it is possible to detect character boundaries within a byte sequence. UTF-8 is one of the world's | ||||
|  * great inventions. While Kim is more efficient, it is not clear that it is worth the expense of transition. | ||||
|  * | ||||
|   | ||||
| @@ -48,8 +48,8 @@ public class XML { | ||||
|  | ||||
|     /** | ||||
|      * Replace special characters with XML escapes: | ||||
|      * <p/> | ||||
|      * <p/> | ||||
|      *  | ||||
|      *  | ||||
|      * <pre> | ||||
|      * & <small>(ampersand)</small> is replaced by &amp; | ||||
|      * < <small>(less than)</small> is replaced by &lt; | ||||
|   | ||||
| @@ -160,31 +160,31 @@ public abstract class SubCommand { | ||||
|     public enum CommandCategory { | ||||
|         /** | ||||
|          * Claiming Commands | ||||
|          * <p/> | ||||
|          *  | ||||
|          * Such as: /plot claim | ||||
|          */ | ||||
|         CLAIMING("Claiming"), | ||||
|         /** | ||||
|          * Teleportation Commands | ||||
|          * <p/> | ||||
|          *  | ||||
|          * Such as: /plot visit | ||||
|          */ | ||||
|         TELEPORT("Teleportation"), | ||||
|         /** | ||||
|          * Action Commands | ||||
|          * <p/> | ||||
|          *  | ||||
|          * Such as: /plot clear | ||||
|          */ | ||||
|         ACTIONS("Actions"), | ||||
|         /** | ||||
|          * Information Commands | ||||
|          * <p/> | ||||
|          *  | ||||
|          * Such as: /plot info | ||||
|          */ | ||||
|         INFO("Information"), | ||||
|         /** | ||||
|          * Debug Commands | ||||
|          * <p/> | ||||
|          *  | ||||
|          * Such as: /plot debug | ||||
|          */ | ||||
|         DEBUG("Debug"); | ||||
|   | ||||
| @@ -31,7 +31,7 @@ public abstract class ClassicPlotWorld extends SquarePlotWorld { | ||||
|  | ||||
|     /** | ||||
|      * CONFIG NODE | DEFAULT VALUE | DESCRIPTION | CONFIGURATION TYPE | REQUIRED FOR INITIAL SETUP | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Set the last boolean to false if you do not require a specific config node to be set while using the setup | ||||
|      * command - this may be useful if a config value can be changed at a later date, and has no impact on the actual | ||||
|      * world generation | ||||
|   | ||||
| @@ -25,7 +25,7 @@ import org.bukkit.block.Block; | ||||
|  | ||||
| /** | ||||
|  * Wrapper class for blocks, using pure data rather than the object. | ||||
|  * <p/> | ||||
|  *  | ||||
|  * Useful for NMS | ||||
|  * | ||||
|  * @author Empire92 | ||||
|   | ||||
| @@ -36,7 +36,7 @@ public class StringComparison { | ||||
|     private String bestMatch; | ||||
|     /** | ||||
|      * Match Value | ||||
|      * <p/> | ||||
|      *  | ||||
|      * Can be checked for low match (< .25 or something) | ||||
|      */ | ||||
|     private double match = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 boy0001
					boy0001