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,
Vector center,
int radius)
Create a new selector.
|
Modifier and Type | Method and Description |
---|---|
void |
explainPrimarySelection(LocalPlayer player,
LocalSession session,
Vector position)
Deprecated.
|
void |
explainRegionAdjust(LocalPlayer player,
LocalSession session)
Deprecated.
|
void |
explainSecondarySelection(Actor player,
LocalSession session,
Vector pos)
Tell the player information about his/her secondary selection.
|
void |
explainSecondarySelection(LocalPlayer player,
LocalSession session,
Vector position)
Deprecated.
|
java.lang.String |
getTypeName()
Get a lowercase name of this region selector type.
|
boolean |
selectSecondary(Vector position,
SelectorLimits limits)
Called when the second point is selected.
|
clear, describeCUI, describeLegacyCUI, explainPrimarySelection, explainRegionAdjust, getArea, getIncompleteRegion, getInformationLines, getLegacyTypeID, getPrimaryPosition, getProtocolVersion, getRegion, getTypeID, getWorld, isDefined, learnChanges, selectPrimary, setWorld
public SphereRegionSelector()
null world
.public SphereRegionSelector(@Nullable World world)
world
- the world, which may be null
public SphereRegionSelector(RegionSelector oldSelector)
oldSelector
- the old selectorpublic boolean selectSecondary(Vector position, SelectorLimits limits)
RegionSelector
selectSecondary
in interface RegionSelector
selectSecondary
in class EllipsoidRegionSelector
position
- the positionpublic void explainSecondarySelection(Actor player, LocalSession session, Vector 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
@Deprecated public final void explainPrimarySelection(LocalPlayer player, LocalSession session, Vector position)
@Deprecated public final void explainSecondarySelection(LocalPlayer player, LocalSession session, Vector position)
@Deprecated public final void explainRegionAdjust(LocalPlayer player, LocalSession session)