public class WorldEditBinding extends BindingHelper
Player
and LocalSession
.Constructor and Description |
---|
WorldEditBinding(WorldEdit worldEdit)
Create a new instance.
|
bind, getBehavior, getConsumedCount, getSuggestions, getTypes
public WorldEditBinding(WorldEdit worldEdit)
worldEdit
- the WorldEdit instance to bind topublic java.lang.Object getSelection(ArgumentStack context, Selection selection) throws IncompleteRegionException, ParameterException
ArgumentStack
.context
- the contextselection
- the annotationIncompleteRegionException
- if no selection is availableParameterException
- on other errorpublic EditSession getEditSession(ArgumentStack context) throws ParameterException
EditSession
from a ArgumentStack
.context
- the contextParameterException
- on other errorpublic LocalSession getLocalSession(ArgumentStack context) throws ParameterException
LocalSession
from a ArgumentStack
.context
- the contextParameterException
- on errorpublic Actor getActor(ArgumentStack context) throws ParameterException
Actor
from a ArgumentStack
.context
- the contextParameterException
- on errorpublic Player getPlayer(ArgumentStack context) throws ParameterException
Player
from a ArgumentStack
.context
- the contextParameterException
- on errorpublic BaseBlock getBaseBlock(ArgumentStack context) throws ParameterException, WorldEditException
BaseBlock
from a ArgumentStack
.context
- the contextParameterException
- on errorWorldEditException
- on errorpublic Pattern getPattern(ArgumentStack context) throws ParameterException, WorldEditException
Pattern
from a ArgumentStack
.context
- the contextParameterException
- on errorWorldEditException
- on errorpublic Mask getMask(ArgumentStack context) throws ParameterException, WorldEditException
Mask
from a ArgumentStack
.context
- the contextParameterException
- on errorWorldEditException
- on errorpublic Vector getDirection(ArgumentStack context, Direction direction) throws ParameterException, UnknownDirectionException
context
- the contextdirection
- the direction annotationParameterException
- on errorUnknownDirectionException
- on an unknown directionpublic TreeGenerator.TreeType getTreeType(ArgumentStack context) throws ParameterException, WorldEditException
TreeGenerator.TreeType
from a ArgumentStack
.context
- the contextParameterException
- on errorWorldEditException
- on errorpublic BaseBiome getBiomeType(ArgumentStack context) throws ParameterException, WorldEditException
BaseBiome
from a ArgumentStack
.context
- the contextParameterException
- on errorWorldEditException
- on error