当前位置: 首页>>代码示例>>Java>>正文


Java LocalSession.describeCUI方法代码示例

本文整理汇总了Java中com.sk89q.worldedit.LocalSession.describeCUI方法的典型用法代码示例。如果您正苦于以下问题:Java LocalSession.describeCUI方法的具体用法?Java LocalSession.describeCUI怎么用?Java LocalSession.describeCUI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sk89q.worldedit.LocalSession的用法示例。


在下文中一共展示了LocalSession.describeCUI方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: explainPrimarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@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 + ".");
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:11,代码来源:PolyhedralRegionSelector.java

示例2: explainSecondarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@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.");
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:11,代码来源:PolyhedralRegionSelector.java

示例3: explainSecondarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@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);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:14,代码来源:CylinderRegionSelector.java

示例4: explainPrimarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@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());
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:11,代码来源:ConvexPolyhedralRegionSelector.java

示例5: explainSecondarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@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());
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:11,代码来源:ConvexPolyhedralRegionSelector.java

示例6: explainRegionAdjust

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    checkNotNull(player);
    checkNotNull(session);
    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:PolyhedralRegionSelector.java

示例7: explainPrimarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_CENTER.send(player, pos, 0);

    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:CylinderRegionSelector.java

示例8: explainRegionAdjust

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:5,代码来源:CylinderRegionSelector.java

示例9: explainPrimarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainPrimarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_CENTER.send(player, region.getCenter(), region.getArea());

    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:EllipsoidRegionSelector.java

示例10: explainSecondarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_RADIUS.send(player, region.getRadius(), region.getArea());

    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:EllipsoidRegionSelector.java

示例11: explainSecondarySelection

import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainSecondarySelection(Actor player, LocalSession session, Vector pos) {
    BBC.SELECTOR_RADIUS.send(player, region.getRadius().getX(), region.getArea());

    session.describeCUI(player);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:SphereRegionSelector.java


注:本文中的com.sk89q.worldedit.LocalSession.describeCUI方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。