public class SphereRegionSelector extends EllipsoidRegionSelector
SphereRegion
from a user's selections.region, started
Constructor and Description |
---|
SphereRegionSelector()
Create a new selector with a
null world . |
SphereRegionSelector(RegionSelector oldSelector)
Create a new selector from another one.
|
SphereRegionSelector(World world)
Create a new selector.
|
SphereRegionSelector(World world,
BlockVector3 center,
int radius)
Create a new selector.
|
Modifier and Type | Method and Description |
---|---|
void |
explainSecondarySelection(Actor player,
LocalSession session,
BlockVector3 pos)
Tell the player information about his/her secondary selection.
|
java.lang.String |
getTypeName()
Get a lowercase name of this region selector type.
|
boolean |
selectSecondary(BlockVector3 position,
SelectorLimits limits)
Called when the second point is selected.
|
clear, describeCUI, describeLegacyCUI, explainPrimarySelection, explainRegionAdjust, getIncompleteRegion, getLegacyTypeID, getPrimaryPosition, getProtocolVersion, getRegion, getSelectionInfoLines, getTypeID, getVolume, getWorld, isDefined, learnChanges, selectPrimary, setWorld
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArea, getInformationLines
public SphereRegionSelector()
null world
.public SphereRegionSelector(@Nullable World world)
world
- the world, which may be null
public SphereRegionSelector(RegionSelector oldSelector)
oldSelector
- the old selectorpublic SphereRegionSelector(@Nullable World world, BlockVector3 center, int radius)
world
- the worldcenter
- the center positionradius
- the radiuspublic boolean selectSecondary(BlockVector3 position, SelectorLimits limits)
RegionSelector
selectSecondary
in interface RegionSelector
selectSecondary
in class EllipsoidRegionSelector
position
- the positionpublic void explainSecondarySelection(Actor player, LocalSession session, BlockVector3 pos)
RegionSelector
explainSecondarySelection
in interface RegionSelector
explainSecondarySelection
in class EllipsoidRegionSelector
player
- the actorsession
- the sessionpos
- positionpublic java.lang.String getTypeName()
RegionSelector
getTypeName
in interface RegionSelector
getTypeName
in class EllipsoidRegionSelector