Java Code Examples for com.sk89q.worldedit.LocalSession#describeCUI()

The following examples show how to use com.sk89q.worldedit.LocalSession#describeCUI() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    checkNotNull(player);
    checkNotNull(session);
    checkNotNull(pos);

    session.describeCUI(player);

    player.print("Started new selection with vertex " + pos + ".");
}
 
Example 2
Source File: PolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    checkNotNull(player);
    checkNotNull(session);
    checkNotNull(pos);

    session.describeCUI(player);

    player.print("Added vertex " + pos + " to the selection.");
}
 
Example 3
Source File: CylinderRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    Vector center = region.getCenter();

    if (!center.equals(Vector.ZERO)) {
        BBC.SELECTOR_RADIUS.send(player, NUMBER_FORMAT.format(region.getRadius().getX()) + "/" + NUMBER_FORMAT.format(region.getRadius().getZ()), region.getArea());
    } else {
        BBC.SELECTION_WAND.send(player);
        return;
    }

    session.describeCUI(player);
}
 
Example 4
Source File: ConvexPolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    checkNotNull(player);
    checkNotNull(session);
    checkNotNull(pos);

    session.describeCUI(player);

    BBC.SELECTOR_POS.send(player, 1, pos, region.getArea());
}
 
Example 5
Source File: ConvexPolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    checkNotNull(player);
    checkNotNull(session);
    checkNotNull(pos);

    session.describeCUI(player);

    BBC.SELECTOR_POS.send(player, region.getVertices().size(), pos, region.getArea());
}
 
Example 6
Source File: PolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    checkNotNull(player);
    checkNotNull(session);
    session.describeCUI(player);
}
 
Example 7
Source File: CylinderRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_CENTER.send(player, pos, 0);

    session.describeCUI(player);
}
 
Example 8
Source File: CylinderRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    session.describeCUI(player);
}
 
Example 9
Source File: ConvexPolyhedralRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    checkNotNull(player);
    checkNotNull(session);
    session.describeCUI(player);
}
 
Example 10
Source File: EllipsoidRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_CENTER.send(player, region.getCenter(), region.getArea());

    session.describeCUI(player);
}
 
Example 11
Source File: EllipsoidRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_RADIUS.send(player, region.getRadius(), region.getArea());

    session.describeCUI(player);
}
 
Example 12
Source File: EllipsoidRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    session.describeCUI(player);
}
 
Example 13
Source File: SphereRegionSelector.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_RADIUS.send(player, region.getRadius().getX(), region.getArea());

    session.describeCUI(player);
}