Package com.plotsquared.core.command
Class Trim
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.SubCommand
com.plotsquared.core.command.Trim
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.command.Command
Command.CommandException, Command.CommandResult -
Constructor Summary
ConstructorsConstructorDescriptionTrim(@NonNull PlotAreaManager plotAreaManager, @NonNull WorldUtil worldUtil, @NonNull GlobalBlockQueue blockQueue, @NonNull RegionManager regionManager) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetTrimRegions(String world, RunnableVal2<Set<com.sk89q.worldedit.math.BlockVector2>,Set<com.sk89q.worldedit.math.BlockVector2>> result)Runs the result task with the parameters (viable, nonViable).booleanonCommand(PlotPlayer<?> player, String[] args)Methods inherited from class com.plotsquared.core.command.SubCommand
executeMethods inherited from class com.plotsquared.core.command.Command
canExecute, check, checkArgs, checkTrue, equals, getAliases, getCommand, getCommand, getCommandById, getCommands, getCommands, getCommands, getCommandString, getDescription, getFullId, getId, getMatch, getParent, getPermission, getRequiredArguments, getRequiredType, getUsage, hasConfirmation, hashCode, init, matches, paginate, register, sendUsage, setRequiredArguments, tab, tabOf, toString
-
Constructor Details
-
Trim
@Inject public Trim(@NonNull PlotAreaManager plotAreaManager, @NonNull WorldUtil worldUtil, @NonNull GlobalBlockQueue blockQueue, @NonNull RegionManager regionManager)
-
-
Method Details
-
getTrimRegions
public static boolean getTrimRegions(String world, RunnableVal2<Set<com.sk89q.worldedit.math.BlockVector2>,Set<com.sk89q.worldedit.math.BlockVector2>> result)Runs the result task with the parameters (viable, nonViable).- Parameters:
world- The worldresult- (viable = .mcr to trim, nonViable = .mcr keep)- Returns:
- success or not
-
onCommand
- Specified by:
onCommandin classSubCommand
-