mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Update from sk89q/master
This commit is contained in:
@ -34,6 +34,6 @@ import java.lang.annotation.Target;
|
||||
@Target(ElementType.PARAMETER)
|
||||
public @interface Direction {
|
||||
|
||||
public static final String AIM = "me";
|
||||
String AIM = "me";
|
||||
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ package com.sk89q.worldedit.internal.cui;
|
||||
|
||||
public interface CUIEvent {
|
||||
|
||||
public String getTypeId();
|
||||
String getTypeId();
|
||||
|
||||
public String[] getParameters();
|
||||
String[] getParameters();
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public interface CUIRegion {
|
||||
* value supplied by getProtocolVersion().
|
||||
*
|
||||
*/
|
||||
public void describeCUI(LocalSession session, Actor player);
|
||||
void describeCUI(LocalSession session, Actor player);
|
||||
|
||||
/**
|
||||
* Sends CUI events describing the region for
|
||||
@ -38,7 +38,7 @@ public interface CUIRegion {
|
||||
* supplied by getProtocolVersion().
|
||||
*
|
||||
*/
|
||||
public void describeLegacyCUI(LocalSession session, Actor player);
|
||||
void describeLegacyCUI(LocalSession session, Actor player);
|
||||
|
||||
/**
|
||||
* Returns the CUI version that is required to send
|
||||
@ -47,14 +47,14 @@ public interface CUIRegion {
|
||||
*
|
||||
* @return the protocol version
|
||||
*/
|
||||
public int getProtocolVersion();
|
||||
int getProtocolVersion();
|
||||
|
||||
/**
|
||||
* Returns the type ID to send to CUI in the selection event.
|
||||
*
|
||||
* @return the type ID
|
||||
*/
|
||||
public String getTypeID();
|
||||
String getTypeID();
|
||||
|
||||
/**
|
||||
* Returns the type ID to send to CUI in the selection
|
||||
@ -62,5 +62,5 @@ public interface CUIRegion {
|
||||
*
|
||||
* @return the legacy type ID
|
||||
*/
|
||||
public String getLegacyTypeID();
|
||||
String getLegacyTypeID();
|
||||
}
|
||||
|
@ -54,8 +54,8 @@ public interface Identifiable {
|
||||
* C - Switch
|
||||
* </pre>
|
||||
*/
|
||||
public abstract char id();
|
||||
char id();
|
||||
|
||||
public int getPosition();
|
||||
int getPosition();
|
||||
|
||||
}
|
||||
|
@ -27,12 +27,12 @@ import com.sk89q.worldedit.internal.expression.parser.ParserException;
|
||||
*/
|
||||
public interface LValue extends RValue {
|
||||
|
||||
public double assign(double value) throws EvaluationException;
|
||||
double assign(double value) throws EvaluationException;
|
||||
|
||||
@Override
|
||||
public LValue optimize() throws EvaluationException;
|
||||
LValue optimize() throws EvaluationException;
|
||||
|
||||
@Override
|
||||
public LValue bindVariables(Expression expression, boolean preferLValue) throws ParserException;
|
||||
LValue bindVariables(Expression expression, boolean preferLValue) throws ParserException;
|
||||
|
||||
}
|
||||
|
@ -28,10 +28,10 @@ import com.sk89q.worldedit.internal.expression.parser.ParserException;
|
||||
*/
|
||||
public interface RValue extends Identifiable {
|
||||
|
||||
public double getValue() throws EvaluationException;
|
||||
double getValue() throws EvaluationException;
|
||||
|
||||
public RValue optimize() throws EvaluationException;
|
||||
RValue optimize() throws EvaluationException;
|
||||
|
||||
public RValue bindVariables(Expression expression, boolean preferLValue) throws ParserException;
|
||||
RValue bindVariables(Expression expression, boolean preferLValue) throws ParserException;
|
||||
|
||||
}
|
||||
|
@ -147,13 +147,13 @@ public final class DocumentationPrinter {
|
||||
|
||||
stream.print(" || ");
|
||||
|
||||
if (cmd.flags() != null && !cmd.flags().equals("")) {
|
||||
if (cmd.flags() != null && !cmd.flags().isEmpty()) {
|
||||
stream.print(cmd.flags());
|
||||
}
|
||||
|
||||
stream.print(" || ");
|
||||
|
||||
if (cmd.desc() != null && !cmd.desc().equals("")) {
|
||||
if (cmd.desc() != null && !cmd.desc().isEmpty()) {
|
||||
stream.print(cmd.desc());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user