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
ConstructorDescriptionTrim
(@NonNull PlotAreaManager plotAreaManager, @NonNull WorldUtil worldUtil, @NonNull GlobalBlockQueue blockQueue, @NonNull RegionManager regionManager) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getTrimRegions
(String world, RunnableVal2<Set<BlockVector2>, Set<BlockVector2>> result) Runs the result task with the parameters (viable, nonViable).boolean
onCommand
(PlotPlayer<?> player, String[] args) Methods inherited from class com.plotsquared.core.command.SubCommand
execute
Methods 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<BlockVector2>, Set<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:
onCommand
in classSubCommand
-