public class RegionAdder extends java.lang.Object implements java.util.concurrent.Callable<ProtectedRegion>
| Constructor and Description |
|---|
RegionAdder(RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args,
int namesIndex)
Add the owners from the command's arguments.
|
ProtectedRegion |
call() |
DomainInputResolver.UserLocatorPolicy |
getLocatorPolicy() |
java.lang.String[] |
getOwnersInput() |
void |
setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy) |
void |
setOwnersInput(java.lang.String[] ownersInput) |
public RegionAdder(RegionManager manager, ProtectedRegion region)
manager - the manageregion - the regionpublic void addOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args,
int namesIndex)
args - the argumentsnamesIndex - the index in the list of arguments to read the first name frompublic ProtectedRegion call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<ProtectedRegion>java.lang.Exception@Nullable public java.lang.String[] getOwnersInput()
public void setOwnersInput(@Nullable
java.lang.String[] ownersInput)
public DomainInputResolver.UserLocatorPolicy getLocatorPolicy()
public void setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)