Permalink
Browse files

Little bit of formatting

  • Loading branch information...
me4502 committed Aug 27, 2018
1 parent fb5cb9a commit c931095736e6df8e65a969ee1167c90a480c13e4
Showing with 76 additions and 86 deletions.
  1. +1 −1 worldedit-core/src/main/java/com/sk89q/minecraft/util/commands/Injector.java
  2. +1 −1 worldedit-core/src/main/java/com/sk89q/minecraft/util/commands/Logging.java
  3. +1 −1 worldedit-core/src/main/java/com/sk89q/util/yaml/YAMLNode.java
  4. +4 −4 worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java
  5. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/blocks/metadata/MobType.java
  6. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java
  7. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockTool.java
  8. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/DoubleActionBlockTool.java
  9. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/DoubleActionTraceTool.java
  10. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/LongRangeBuildTool.java
  11. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/Tool.java
  12. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/TraceTool.java
  13. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/brush/Brush.java
  14. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/MCEditSchematicReader.java
  15. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java
  16. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/extent/inventory/BlockBag.java
  17. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/extent/inventory/BlockBagExtent.java
  18. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/extent/world/SurvivalModeExtent.java
  19. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/function/EntityFunction.java
  20. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/function/FlatRegionFunction.java
  21. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/function/RegionFunction.java
  22. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/ExistingBlockMask.java
  23. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/internal/annotation/Direction.java
  24. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/CUIEvent.java
  25. +5 −5 worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/CUIRegion.java
  26. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/internal/expression/Identifiable.java
  27. +3 −3 worldedit-core/src/main/java/com/sk89q/worldedit/internal/expression/runtime/LValue.java
  28. +3 −3 worldedit-core/src/main/java/com/sk89q/worldedit/internal/expression/runtime/RValue.java
  29. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/internal/util/DocumentationPrinter.java
  30. +3 −3 worldedit-core/src/main/java/com/sk89q/worldedit/math/interpolation/Interpolation.java
  31. +3 −3 worldedit-core/src/main/java/com/sk89q/worldedit/regions/FlatRegion.java
  32. +16 −16 worldedit-core/src/main/java/com/sk89q/worldedit/regions/RegionSelector.java
  33. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/RegionSelectorType.java
  34. +3 −3 worldedit-core/src/main/java/com/sk89q/worldedit/scripting/CraftScriptEngine.java
  35. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java
  36. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/util/TargetBlock.java
  37. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/util/YAMLConfiguration.java
  38. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/util/command/Parameter.java
  39. +4 −4 worldedit-core/src/main/java/com/sk89q/worldedit/util/formatting/Style.java
  40. +0 −1 worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BaseBlock.java
  41. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/world/snapshot/Snapshot.java
  42. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/world/snapshot/SnapshotDateParser.java
  43. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/world/storage/TrueZipLegacyChunkStore.java
  44. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/world/storage/TrueZipMcRegionChunkStore.java
  45. +1 −1 worldedit-core/src/main/java/com/sk89q/worldedit/world/storage/ZippedLegacyChunkStore.java
  46. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/world/storage/ZippedMcRegionChunkStore.java
@@ -35,6 +35,6 @@
* @throws InstantiationException thrown on injection fault
* @throws InvocationTargetException thrown on injection fault
*/
public Object getInstance(Class<?> cls) throws InvocationTargetException, IllegalAccessException, InstantiationException;
Object getInstance(Class<?> cls) throws InvocationTargetException, IllegalAccessException, InstantiationException;
}
@@ -31,7 +31,7 @@
@Retention(RetentionPolicy.RUNTIME)
public @interface Logging {
public enum LogMode {
enum LogMode {
/**
* Player position
*/
@@ -151,7 +151,7 @@ public void setProperty(String path, Object value) {
return;
}
if (o == null || !(o instanceof Map)) {
if (!(o instanceof Map)) {
// This will override existing configuration data!
o = new LinkedHashMap<String, Object>();
node.put(parts[i], o);
@@ -481,10 +481,10 @@ public void flushBlockBag(Actor actor, EditSession editSession) {
int size = missingBlocks.size();
int i = 0;
for (BlockType id : missingBlocks.keySet()) {
str.append(id.getName());
for (Map.Entry<BlockType, Integer> blockTypeIntegerEntry : missingBlocks.entrySet()) {
str.append((blockTypeIntegerEntry.getKey()).getName());
str.append(" [Amt: ").append(missingBlocks.get(id)).append("]");
str.append(" [Amt: ").append(blockTypeIntegerEntry.getValue()).append("]");
++i;
@@ -559,7 +559,7 @@ public void runScript(Player player, File f, String[] args) throws WorldEditExce
Request.reset();
String filename = f.getPath();
int index = filename.lastIndexOf(".");
int index = filename.lastIndexOf('.');
String ext = filename.substring(index + 1);
if (!ext.equalsIgnoreCase("js")) {
@@ -55,7 +55,7 @@
private final String name;
private MobType(String name) {
MobType(String name) {
this.name = name;
}
@@ -32,7 +32,6 @@
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.WorldEditException;
import com.sk89q.worldedit.entity.Player;
import com.sk89q.worldedit.extension.platform.Actor;
import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard;
import com.sk89q.worldedit.extent.clipboard.Clipboard;
import com.sk89q.worldedit.function.block.BlockReplace;
@@ -27,5 +27,5 @@
public interface BlockTool extends Tool {
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked);
boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked);
}
@@ -30,6 +30,6 @@
*/
public interface DoubleActionBlockTool extends BlockTool {
public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked);
boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked);
}
@@ -29,6 +29,6 @@
*/
public interface DoubleActionTraceTool extends TraceTool {
public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session);
boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session);
}
@@ -29,7 +29,6 @@
import com.sk89q.worldedit.function.pattern.Pattern;
import com.sk89q.worldedit.util.Location;
import com.sk89q.worldedit.world.block.BlockStateHolder;
import com.sk89q.worldedit.world.block.BlockTypes;
/**
* A tool that can place (or remove) blocks at a distance.
@@ -34,6 +34,6 @@
* @param actor the actor
* @return true if use is permitted
*/
public boolean canUse(Actor actor);
boolean canUse(Actor actor);
}
@@ -26,5 +26,5 @@
public interface TraceTool extends Tool {
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session);
boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session);
}
@@ -38,6 +38,6 @@
* @param size the size of the brush
* @throws MaxChangedBlocksException
*/
public void build(EditSession editSession, Vector position, Pattern pattern, double size) throws MaxChangedBlocksException;
void build(EditSession editSession, Vector position, Pattern pattern, double size) throws MaxChangedBlocksException;
}
@@ -33,7 +33,6 @@
import com.sk89q.worldedit.BlockVector;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.WorldEditException;
import com.sk89q.worldedit.world.block.BaseBlock;
import com.sk89q.worldedit.entity.BaseEntity;
import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard;
import com.sk89q.worldedit.extent.clipboard.Clipboard;
@@ -35,7 +35,6 @@
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.WorldEditException;
import com.sk89q.worldedit.world.block.BaseBlock;
import com.sk89q.worldedit.extension.input.InputParseException;
import com.sk89q.worldedit.extension.input.ParserContext;
import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard;
@@ -21,7 +21,6 @@
import com.sk89q.worldedit.util.Location;
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.world.block.BlockTypes;
/**
* Represents a source to get blocks from and store removed ones.
@@ -26,7 +26,6 @@
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.world.block.BlockStateHolder;
import com.sk89q.worldedit.world.block.BlockType;
import com.sk89q.worldedit.world.block.BlockTypes;
import java.util.HashMap;
import java.util.Map;
@@ -27,7 +27,6 @@
import com.sk89q.worldedit.extent.Extent;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.block.BlockStateHolder;
import com.sk89q.worldedit.world.block.BlockTypes;
/**
* Makes changes to the world as if a player had done so during survival mode.
@@ -34,6 +34,6 @@
* @return true if something was changed
* @throws WorldEditException thrown on an error
*/
public boolean apply(Entity entity) throws WorldEditException;
boolean apply(Entity entity) throws WorldEditException;
}
@@ -36,6 +36,6 @@
* @return true if something was changed
* @throws WorldEditException thrown on an error
*/
public boolean apply(Vector2D position) throws WorldEditException;
boolean apply(Vector2D position) throws WorldEditException;
}
@@ -34,6 +34,6 @@
* @return true if something was changed
* @throws WorldEditException thrown on an error
*/
public boolean apply(Vector position) throws WorldEditException;
boolean apply(Vector position) throws WorldEditException;
}
@@ -21,7 +21,6 @@
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.extent.Extent;
import com.sk89q.worldedit.world.block.BlockTypes;
import javax.annotation.Nullable;
@@ -34,6 +34,6 @@
@Target(ElementType.PARAMETER)
public @interface Direction {
public static final String AIM = "me";
String AIM = "me";
}
@@ -21,7 +21,7 @@
public interface CUIEvent {
public String getTypeId();
String getTypeId();
public String[] getParameters();
String[] getParameters();
}
@@ -30,15 +30,15 @@
* value supplied by getProtocolVersion().
*
*/
public void describeCUI(LocalSession session, Actor player);
void describeCUI(LocalSession session, Actor player);
/**
* Sends CUI events describing the region for
* versions of CUI smaller than the value
* 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,20 +47,20 @@
*
* @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
* event if the CUI is in legacy mode.
*
* @return the legacy type ID
*/
public String getLegacyTypeID();
String getLegacyTypeID();
}
@@ -54,8 +54,8 @@
* C - Switch
* </pre>
*/
public abstract char id();
char id();
public int getPosition();
int getPosition();
}
@@ -27,12 +27,12 @@
*/
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 @@
*/
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;
}
@@ -160,13 +160,13 @@ private static void writePermissionsWikiTable(PrintStream stream,
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());
}
@@ -36,23 +36,23 @@
*
* @param nodes the nodes
*/
public void setNodes(List<Node> nodes);
void setNodes(List<Node> nodes);
/**
* Gets the result of f(position)
*
* @param position the position to interpolate
* @return the result
*/
public Vector getPosition(double position);
Vector getPosition(double position);
/**
* Gets the result of f'(position).
*
* @param position the position to interpolate
* @return the result
*/
public Vector get1stDerivative(double position);
Vector get1stDerivative(double position);
/**
* Gets the result of &int;<sub>a</sub><sup style="position: relative; left: -1ex">b</sup>|f'(t)| dt.<br />
@@ -28,19 +28,19 @@
*
* @return the Y value
*/
public int getMinimumY();
int getMinimumY();
/**
* Gets the maximum Y value
*
* @return the Y value
*/
public int getMaximumY();
int getMaximumY();
/**
* Get this region as an iterable flat region.
*
* @return a flat region iterable
*/
public Iterable<Vector2D> asFlatRegion();
Iterable<Vector2D> asFlatRegion();
}
Oops, something went wrong.

0 comments on commit c931095

Please sign in to comment.