Class PrimitiveBindings
java.lang.Object
com.fastasyncworldedit.core.extension.platform.binding.Bindings
com.fastasyncworldedit.core.extension.platform.binding.PrimitiveBindings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlockVector2
(String argument) Gets a type from aBinding
.getBlockVector3
(String argument) Gets a type from aBinding
.getBoolean
(String argument) Gets a type from aBinding
.getExpression
(String argument) getVector2
(String argument) Gets a type from aBinding
.getVector3
(String argument) Gets a type from aBinding
.static Double
parseNumericInput
(String input) Try to parse numeric input as either a number or a mathematical expression.Methods inherited from class com.fastasyncworldedit.core.extension.platform.binding.Bindings
getWorldEdit, register
-
Constructor Details
-
PrimitiveBindings
-
-
Method Details
-
getExpression
- Throws:
ExpressionException
-
getBoolean
Gets a type from aBinding
.- Parameters:
argument
- the context- Returns:
- the requested type
- Throws:
InputParseException
- on error
-
getVector3
Gets a type from aBinding
.- Parameters:
argument
- the context- Returns:
- the requested type
- Throws:
InputParseException
- on error
-
getVector2
Gets a type from aBinding
.- Parameters:
argument
- the context- Returns:
- the requested type
- Throws:
InputParseException
- on error
-
getBlockVector3
Gets a type from aBinding
.- Parameters:
argument
- the context- Returns:
- the requested type
- Throws:
InputParseException
- on error
-
getBlockVector2
Gets a type from aBinding
.- Parameters:
argument
- the context- Returns:
- the requested type
- Throws:
InputParseException
- on error
-
parseNumericInput
Try to parse numeric input as either a number or a mathematical expression.- Parameters:
input
- input- Returns:
- a number
- Throws:
InputParseException
- thrown on parse error
-