Class CommandFlag
java.lang.Object
redempt.redlib.commandmanager.processing.CommandFlag
- All Implemented Interfaces:
CommandParameter
-
Constructor Summary
ConstructorsConstructorDescriptionCommandFlag(ArgType<?> type, String name, Constraint<?> constraint, int pos, Function<org.bukkit.command.CommandSender, Object> defaultValue, boolean contextDefault) -
Method Summary
Modifier and TypeMethodDescriptionConstraint<?>getDefaultValue(org.bukkit.command.CommandSender sender) getName()String[]getNames()intArgType<?>getType()booleanbooleannameMatches(String name) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface redempt.redlib.commandmanager.processing.CommandParameter
getNameAndConstraint
-
Constructor Details
-
CommandFlag
public CommandFlag(ArgType<?> type, String name, Constraint<?> constraint, int pos, Function<org.bukkit.command.CommandSender, Object> defaultValue, boolean contextDefault)
-
-
Method Details
-
getDefaultValue
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceCommandParameter
-
getConstraint
- Specified by:
getConstraintin interfaceCommandParameter
-
getTypeName
- Specified by:
getTypeNamein interfaceCommandParameter
-
getType
- Specified by:
getTypein interfaceCommandParameter
-
isContextDefault
public boolean isContextDefault() -
nameMatches
-
getName
- Specified by:
getNamein interfaceCommandParameter
-
getNames
-
toString
-