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.
|
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, setWorldpublic SphereRegionSelector()
null world.public SphereRegionSelector(@Nullable World world)
world - the world, which may be nullpublic SphereRegionSelector(RegionSelector oldSelector)
oldSelector - the old selectorpublic boolean selectSecondary(Vector position, SelectorLimits limits)
RegionSelectorselectSecondary in interface RegionSelectorselectSecondary in class EllipsoidRegionSelectorposition - the positionpublic void explainSecondarySelection(Actor player, LocalSession session, Vector pos)
RegionSelectorexplainSecondarySelection in interface RegionSelectorexplainSecondarySelection in class EllipsoidRegionSelectorplayer - the actorsession - the sessionpos - positionpublic String getTypeName()
RegionSelectorgetTypeName in interface RegionSelectorgetTypeName 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)
Copyright © 2010-2014. All Rights Reserved.