本文整理汇总了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 + ".");
}
示例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.");
}
示例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);
}
示例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());
}
示例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());
}
示例6: explainRegionAdjust
import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
checkNotNull(player);
checkNotNull(session);
session.describeCUI(player);
}
示例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);
}
示例8: explainRegionAdjust
import com.sk89q.worldedit.LocalSession; //导入方法依赖的package包/类
@Override
public void explainRegionAdjust(Actor player, LocalSession session) {
session.describeCUI(player);
}
示例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);
}
示例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);
}
示例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);
}