public class BlockFactory extends AbstractFactory<BaseBlock>
BaseBlocks. Provides methods to instantiate
new blocks from input.
Instances of this class can be taken from
WorldEdit.getBlockFactory().
parsers, worldEdit| Constructor and Description |
|---|
BlockFactory(WorldEdit worldEdit)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Set<BaseBlock> |
parseFromListInput(String input,
ParserContext context)
Return a set of blocks from a comma-delimited list of blocks.
|
parseFromInputpublic BlockFactory(WorldEdit worldEdit)
worldEdit - the WorldEdit instance.public Set<BaseBlock> parseFromListInput(String input, ParserContext context) throws InputParseException
input - the inputcontext - the contextInputParseException - thrown in error with the inputCopyright © 2010-2014. All Rights Reserved.