public interface RegionSelector
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the selection.
|
void |
explainPrimarySelection(LocalPlayer player,
LocalSession session,
Vector pos)
Tell the player information about his/her primary selection.
|
void |
explainRegionAdjust(LocalPlayer player,
LocalSession session)
The the player information about the region's changes.
|
void |
explainSecondarySelection(LocalPlayer player,
LocalSession session,
Vector pos)
Tell the player information about his/her secondary selection.
|
int |
getArea()
Get the number of blocks inside the region.
|
Region |
getIncompleteRegion()
Get the region even if it's not fully defined.
|
List<String> |
getInformationLines()
Get lines of information about the selection.
|
BlockVector |
getPrimaryPosition()
Get the primary position.
|
Region |
getRegion()
Get the selection.
|
String |
getTypeName()
Get a lowercase name of this region selector type.
|
boolean |
isDefined()
Returns whether the region has been fully defined.
|
void |
learnChanges()
Update the selector with changes to the region.
|
boolean |
selectPrimary(Vector pos)
Called when the first point is selected.
|
boolean |
selectSecondary(Vector pos)
Called when the second point is selected.
|
boolean selectPrimary(Vector pos)
pos - boolean selectSecondary(Vector pos)
pos - void explainPrimarySelection(LocalPlayer player, LocalSession session, Vector pos)
player - session - pos - void explainSecondarySelection(LocalPlayer player, LocalSession session, Vector pos)
player - session - pos - void explainRegionAdjust(LocalPlayer player, LocalSession session)
player - session - BlockVector getPrimaryPosition() throws IncompleteRegionException
IncompleteRegionExceptionRegion getRegion() throws IncompleteRegionException
IncompleteRegionExceptionRegion getIncompleteRegion()
boolean isDefined()
int getArea()
void learnChanges()
void clear()
String getTypeName()
Copyright © 2010-2014. All Rights Reserved.