Class TransformFactory
java.lang.Object
com.sk89q.worldedit.internal.registry.AbstractFactory<ResettableExtent>
com.fastasyncworldedit.core.extension.factory.TransformFactory
-
Field Summary
Fields inherited from class com.sk89q.worldedit.internal.registry.AbstractFactory
worldEdit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseFromInput
(String input, ParserContext context) Parse a string and context to eachInputParser
added to this factory.parseWithoutRich
(String input, ParserContext context) Parses a transform without considering parsing through theRichTransformParser
, therefore not accepting "richer" parsing where & and , are used.Methods inherited from class com.sk89q.worldedit.internal.registry.AbstractFactory
containsAlias, getParsers, getSuggestions, register
-
Constructor Details
-
TransformFactory
Create a new factory.- Parameters:
worldEdit
- the WorldEdit instance
-
-
Method Details
-
parseFromInput
public ResettableExtent parseFromInput(String input, ParserContext context) throws InputParseException Description copied from class:AbstractFactory
Parse a string and context to eachInputParser
added to this factory. If no result found, throwsInputParseException
- Overrides:
parseFromInput
in classAbstractFactory<ResettableExtent>
- Parameters:
input
- input stringcontext
- input context- Returns:
- parsed result
- Throws:
InputParseException
- if no result found
-
parseWithoutRich
public ResettableExtent parseWithoutRich(String input, ParserContext context) throws InputParseException Parses a transform without considering parsing through theRichTransformParser
, therefore not accepting "richer" parsing where & and , are used. Exists to prevent stack overflows.- Parameters:
input
- input stringcontext
- input context- Returns:
- parsed result
- Throws:
InputParseException
- if no result found
-