mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-14 19:34:43 +02:00
More cleaning
This commit is contained in:
@ -18,7 +18,7 @@ import java.util.Collection;
|
||||
*/
|
||||
public final class ArrayWrapper<E> {
|
||||
|
||||
private E[] _array;
|
||||
private E[] array;
|
||||
|
||||
/**
|
||||
* Creates an array wrapper with some elements.
|
||||
@ -64,7 +64,7 @@ public final class ArrayWrapper<E> {
|
||||
* @return The array wrapped by this instance.
|
||||
*/
|
||||
public E[] getArray() {
|
||||
return this._array;
|
||||
return this.array;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -73,7 +73,7 @@ public final class ArrayWrapper<E> {
|
||||
*/
|
||||
public void setArray(E[] array) {
|
||||
Validate.notNull(array, "The array must not be null.");
|
||||
this._array = array;
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -86,7 +86,7 @@ public final class ArrayWrapper<E> {
|
||||
if (!(other instanceof ArrayWrapper)) {
|
||||
return false;
|
||||
}
|
||||
return Arrays.equals(this._array, ((ArrayWrapper) other)._array);
|
||||
return Arrays.equals(this.array, ((ArrayWrapper) other).array);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -96,6 +96,6 @@ public final class ArrayWrapper<E> {
|
||||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Arrays.hashCode(this._array);
|
||||
return Arrays.hashCode(this.array);
|
||||
}
|
||||
}
|
||||
|
@ -41,12 +41,12 @@ import java.util.logging.Level;
|
||||
* provided by the vanilla Minecraft <a href="http://minecraft.gamepedia.com/Tellraw#Raw_JSON_Text">JSON message formatter</a>.
|
||||
* This class allows plugins to emulate the functionality of the vanilla Minecraft
|
||||
* <a href="http://minecraft.gamepedia.com/Commands#tellraw">tellraw command</a>.
|
||||
* <p>
|
||||
* This class follows the builder pattern, allowing for method chaining.
|
||||
* It is set up such that invocations of property-setting methods will affect the current editing component,
|
||||
* and a call to {@link #then(String)} or {@link #text(TextualComponent)} will append a new editing component to the end of the message,
|
||||
* optionally initializing it with text. Further property-setting method calls will affect that editing component.
|
||||
* </p>
|
||||
* <p> This class follows the builder pattern, allowing for method chaining.
|
||||
* It is set up such that invocations of property-setting methods will affect
|
||||
* the current editing component, and a call to {@link #then(String)} or
|
||||
* {@link #text(TextualComponent)} will append a new editing component to the
|
||||
* end of the message, optionally initializing it with text. Further
|
||||
* property-setting method calls will affect that editing component.</p>
|
||||
*/
|
||||
public class FancyMessage implements JsonRepresentedObject, Cloneable, Iterable<MessagePart>, ConfigurationSerializable {
|
||||
|
||||
|
@ -39,7 +39,7 @@ public final class Reflection {
|
||||
* This is needed to bypass the JAR package name changing on each update.
|
||||
* @return The version string of the OBC and NMS packages, <em>including the trailing dot</em>.
|
||||
*/
|
||||
public synchronized static String getVersion() {
|
||||
public static synchronized String getVersion() {
|
||||
return PS.get().IMP.getNMSPackage();
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ public final class Reflection {
|
||||
* @param className The name of the class, excluding the package, within NMS.
|
||||
* @return The class instance representing the specified NMS class, or {@code null} if it could not be loaded.
|
||||
*/
|
||||
public synchronized static Class<?> getNMSClass(String className) {
|
||||
public static synchronized Class<?> getNMSClass(String className) {
|
||||
if (_loadedNMSClasses.containsKey(className)) {
|
||||
return _loadedNMSClasses.get(className);
|
||||
}
|
||||
@ -76,7 +76,7 @@ public final class Reflection {
|
||||
* .CraftItemStack}.
|
||||
* @return The class instance representing the specified OBC class, or {@code null} if it could not be loaded.
|
||||
*/
|
||||
public synchronized static Class<?> getOBCClass(String className) {
|
||||
public static synchronized Class<?> getOBCClass(String className) {
|
||||
if (_loadedOBCClasses.containsKey(className)) {
|
||||
return _loadedOBCClasses.get(className);
|
||||
}
|
||||
|
Reference in New Issue
Block a user