From e127bb89e56b670bc6629dca30807420256ed36d Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 15 Apr 2019 02:03:05 -0700 Subject: [PATCH] Align annotation formatting with brush command methods --- .../worldedit/command/BiomeCommands.java | 16 +++++------ .../worldedit/command/SchematicCommands.java | 27 ++++++++++++------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java index 5830474a2..81d208885 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java @@ -75,7 +75,8 @@ public class BiomeCommands { ) @CommandPermissions("worldedit.biome.list") public void biomeList(Player player, - @Arg(desc = "Page number.", def = "0") int page) throws WorldEditException { + @Arg(desc = "Page number.", def = "0") + int page) throws WorldEditException { int offset; int count = 0; @@ -115,12 +116,10 @@ public class BiomeCommands { ) @CommandPermissions("worldedit.biome.info") public void biomeInfo(Player player, LocalSession session, - @Switch( - name = 't', desc="Use the block you are looking at." - ) boolean useLineOfSight, - @Switch( - name = 'p', desc="Use the block you are currently in." - ) boolean usePosition) throws WorldEditException { + @Switch(name = 't', desc="Use the block you are looking at.") + boolean useLineOfSight, + @Switch(name = 'p', desc="Use the block you are currently in.") + boolean usePosition) throws WorldEditException { BiomeRegistry biomeRegistry = WorldEdit.getInstance().getPlatformManager() .queryCapability(Capability.GAME_HOOKS).getRegistries().getBiomeRegistry(); Set biomes = new HashSet<>(); @@ -179,7 +178,8 @@ public class BiomeCommands { @CommandPermissions("worldedit.biome.set") public void setBiome(Player player, LocalSession session, EditSession editSession, BiomeType target, - @Switch(name = 'p', desc = "Use your current position") boolean atPosition) throws WorldEditException { + @Switch(name = 'p', desc = "Use your current position") + boolean atPosition) throws WorldEditException { World world = player.getWorld(); Region region; Mask mask = editSession.getMask(); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index 2bdd77bf0..ffa28d8ec 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -91,8 +91,10 @@ public class SchematicCommands { ) @CommandPermissions({"worldedit.clipboard.load", "worldedit.schematic.load"}) public void load(Player player, LocalSession session, - @Arg(desc = "File name.") String filename, - @Arg(desc = "Format name.", def = "sponge") String formatName) throws FilenameException { + @Arg(desc = "File name.") + String filename, + @Arg(desc = "Format name.", def = "sponge") + String formatName) throws FilenameException { LocalConfiguration config = worldEdit.getConfiguration(); File dir = worldEdit.getWorkingDirectoryFile(config.saveDir); @@ -134,9 +136,12 @@ public class SchematicCommands { ) @CommandPermissions({"worldedit.clipboard.save", "worldedit.schematic.save"}) public void save(Player player, LocalSession session, - @Arg(desc = "File name.") String filename, - @Arg(desc = "Format name.", def = "sponge") String formatName, - @Switch(name = 'f', desc = "Overwrite an existing file.") boolean allowOverwrite + @Arg(desc = "File name.") + String filename, + @Arg(desc = "Format name.", def = "sponge") + String formatName, + @Switch(name = 'f', desc = "Overwrite an existing file.") + boolean allowOverwrite ) throws WorldEditException { LocalConfiguration config = worldEdit.getConfiguration(); @@ -205,7 +210,8 @@ public class SchematicCommands { ) @CommandPermissions("worldedit.schematic.delete") public void delete(Actor actor, - @Arg(desc = "File name.") String filename) throws WorldEditException { + @Arg(desc = "File name.") + String filename) throws WorldEditException { LocalConfiguration config = worldEdit.getConfiguration(); File dir = worldEdit.getWorkingDirectoryFile(config.saveDir); @@ -263,9 +269,12 @@ public class SchematicCommands { ) @CommandPermissions("worldedit.schematic.list") public void list(Actor actor, - @ArgFlag(name = 'p', desc = "Page to view.", def = "1") int page, - @Switch(name = 'd', desc = "Sort by date, oldest first") boolean oldFirst, - @Switch(name = 'n', desc = "Sort by date, newest first") boolean newFirst) { + @ArgFlag(name = 'p', desc = "Page to view.", def = "1") + int page, + @Switch(name = 'd', desc = "Sort by date, oldest first") + boolean oldFirst, + @Switch(name = 'n', desc = "Sort by date, newest first") + boolean newFirst) { if (oldFirst && newFirst) { throw new StopExecutionException("Cannot sort by oldest and newest."); }