Class FuzzyRegionSelector
java.lang.Object
com.sk89q.worldedit.extent.AbstractDelegateExtent
com.fastasyncworldedit.core.extent.PassthroughExtent
com.fastasyncworldedit.core.regions.selector.FuzzyRegionSelector
- All Implemented Interfaces:
Extent
,InputExtent
,OutputExtent
,RegionSelector
-
Field Summary
Fields inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
extent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the selection.void
explainPrimarySelection
(Actor actor, LocalSession session, BlockVector3 position) Tell the player information about his/her primary selection.void
explainRegionAdjust
(Actor actor, LocalSession session) Tell the player information about the region's changes.void
explainSecondarySelection
(Actor actor, LocalSession session, BlockVector3 position) Tell the player information about his/her secondary selection.int
getArea()
Get the number of blocks inside the region.Get the region even if it's not fully defined.Get lines of information about the selection.getMask()
Get the primary position.Get the selection.Get a lowercase name of this region selector type.Get the vertices.getWorld()
Get the world for the region selector.boolean
Returns whether the region has been fully defined.void
Update the selector with changes to the region.boolean
selectPrimary
(BlockVector3 position, SelectorLimits limits) Called when the first point is selected.boolean
selectSecondary
(BlockVector3 position, SelectorLimits limits) Called when the second point is selected.void
Set the world for the region selector.Methods inherited from class com.fastasyncworldedit.core.extent.PassthroughExtent
addCaves, addOre, addOres, addSchems, apply, apply, cancel, center, commit, contains, countBlocks, countBlocks, disableQueue, enableQueue, generate, getBlock, getBlockDistribution, getBlockDistributionWithData, getFullBlock, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, replaceBlocks, replaceBlocks, replaceBlocks, setBiome, setBlock, setBlocks, setBlocks, setBlocks, setTile, spawnResource
Methods inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
addPostProcessor, addProcessor, commitBefore, createEntity, disableHistory, fullySupports3DBiomes, getBiome, getBiomeType, getBlock, getBrightness, getEmittedLight, getEntities, getEntities, getExtent, getFullBlock, getMaximumPoint, getMaxY, getMinimumPoint, getMinY, getSkyLight, relight, relightBlock, relightSky, removeEntity, setBiome, setBlock, setBlockLight, setChangeSet, setSkyLight, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.Extent
contains, enableHistory
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBrightness, getEmittedLight, getHeightMap, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setHeightMap, setSkyLight
Methods inherited from interface com.sk89q.worldedit.regions.RegionSelector
getSelectionInfoLines, getVolume
-
Constructor Details
-
FuzzyRegionSelector
-
-
Method Details
-
getWorld
Description copied from interface:RegionSelector
Get the world for the region selector.- Specified by:
getWorld
in interfaceRegionSelector
- Returns:
- a world, which may be null
-
setWorld
Description copied from interface:RegionSelector
Set the world for the region selector.- Specified by:
setWorld
in interfaceRegionSelector
- Parameters:
world
- the world, which may be null
-
getMask
-
selectPrimary
Description copied from interface:RegionSelector
Called when the first point is selected.- Specified by:
selectPrimary
in interfaceRegionSelector
- Parameters:
position
- the position- Returns:
- true if something changed
-
selectSecondary
Description copied from interface:RegionSelector
Called when the second point is selected.- Specified by:
selectSecondary
in interfaceRegionSelector
- Parameters:
position
- the position- Returns:
- true if something changed
-
explainPrimarySelection
Description copied from interface:RegionSelector
Tell the player information about his/her primary selection.- Specified by:
explainPrimarySelection
in interfaceRegionSelector
- Parameters:
actor
- the actorsession
- the sessionposition
- position
-
explainSecondarySelection
Description copied from interface:RegionSelector
Tell the player information about his/her secondary selection.- Specified by:
explainSecondarySelection
in interfaceRegionSelector
- Parameters:
actor
- the actorsession
- the sessionposition
- position
-
explainRegionAdjust
Description copied from interface:RegionSelector
Tell the player information about the region's changes. This may resend all the defining region information if needed.- Specified by:
explainRegionAdjust
in interfaceRegionSelector
- Parameters:
actor
- the actorsession
- the session
-
getPrimaryPosition
Description copied from interface:RegionSelector
Get the primary position.- Specified by:
getPrimaryPosition
in interfaceRegionSelector
- Returns:
- the primary position
- Throws:
IncompleteRegionException
- thrown if a region has not been fully defined
-
getRegion
Description copied from interface:RegionSelector
Get the selection.- Specified by:
getRegion
in interfaceRegionSelector
- Returns:
- the created region
- Throws:
IncompleteRegionException
- thrown if a region has not been fully defined
-
getIncompleteRegion
Description copied from interface:RegionSelector
Get the region even if it's not fully defined.- Specified by:
getIncompleteRegion
in interfaceRegionSelector
- Returns:
- an incomplete region object that is incomplete
-
isDefined
public boolean isDefined()Description copied from interface:RegionSelector
Returns whether the region has been fully defined.- Specified by:
isDefined
in interfaceRegionSelector
- Returns:
- true if a selection is available
-
getArea
public int getArea()Description copied from interface:RegionSelector
Get the number of blocks inside the region.- Specified by:
getArea
in interfaceRegionSelector
- Returns:
- number of blocks, or -1 if undefined
-
learnChanges
public void learnChanges()Description copied from interface:RegionSelector
Update the selector with changes to the region.- Specified by:
learnChanges
in interfaceRegionSelector
-
clear
public void clear()Description copied from interface:RegionSelector
Clear the selection.- Specified by:
clear
in interfaceRegionSelector
-
getTypeName
Description copied from interface:RegionSelector
Get a lowercase name of this region selector type.- Specified by:
getTypeName
in interfaceRegionSelector
- Returns:
- a lower case name of the type
-
getInformationLines
Description copied from interface:RegionSelector
Get lines of information about the selection.- Specified by:
getInformationLines
in interfaceRegionSelector
- Returns:
- a list of lines describing the region
-
getVertices
Description copied from interface:RegionSelector
Get the vertices.- Specified by:
getVertices
in interfaceRegionSelector
- Returns:
- the list of vertices
-