Package com.sk89q.worldedit.command
Class SelectionCommands
java.lang.Object
com.sk89q.worldedit.command.SelectionCommands
Selection commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
chunk
(Actor actor, World world, LocalSession session, BlockVector3 coordinates, boolean expandSelection, boolean useChunkCoordinates) void
contract
(Actor actor, World world, LocalSession session, int amount, int reverseAmount, List<BlockVector3> direction) int
count
(Actor actor, World world, LocalSession session, EditSession editSession, Mask mask) void
distr
(Actor actor, World world, LocalSession session, boolean clipboardDistr, boolean separateStates, Integer page) void
hpos1
(Player player, LocalSession session) void
hpos2
(Player player, LocalSession session) void
inset
(Actor actor, World world, LocalSession session, int amount, boolean onlyHorizontal, boolean onlyVertical) void
outset
(Actor actor, World world, LocalSession session, int amount, boolean onlyHorizontal, boolean onlyVertical) void
pos
(Actor actor, World world, LocalSession session, BlockVector3 pos1, List<BlockVector3> pos2, SelectorChoice selectorChoice) void
pos1
(Actor actor, World world, LocalSession session, BlockVector3 coordinates) void
pos2
(Actor actor, World world, LocalSession session, BlockVector3 coordinates) void
select
(Actor actor, World world, LocalSession session, SelectorChoiceOrList selectorChoiceOrList, boolean setDefaultSelector) void
shift
(Actor actor, World world, LocalSession session, int amount, List<BlockVector3> direction) void
size
(Actor actor, World world, LocalSession session, boolean clipboardInfo) void
toggleWand
(Player player) void
trim
(Actor actor, World world, LocalSession session, Mask mask) void
wand
(Player player, LocalSession session, boolean navWand)
-
Constructor Details
-
SelectionCommands
-
-
Method Details
-
pos
public void pos(Actor actor, World world, LocalSession session, @Arg(desc="Coordinates to set the primary position to. Defaults to the player position if not passed.",def="") BlockVector3 pos1, @Arg(desc="Coordinates to add as secondary positions. Defaults to the player position if not passed.",def="",variable=true) List<BlockVector3> pos2, @ArgFlag(name='s',desc="Selector to switch to") SelectorChoice selectorChoice) throws WorldEditException - Throws:
WorldEditException
-
pos1
public void pos1(Actor actor, World world, LocalSession session, @Arg(desc="Coordinates to set position 1 to",def="") BlockVector3 coordinates) -
pos2
public void pos2(Actor actor, World world, LocalSession session, @Arg(desc="Coordinates to set position 2 to",def="") BlockVector3 coordinates) -
hpos1
-
hpos2
-
chunk
public void chunk(Actor actor, World world, LocalSession session, @Arg(desc="The chunk to select",def="") BlockVector3 coordinates, @Switch(name='s',desc="Expand your selection to encompass all chunks that are part of it") boolean expandSelection, @Switch(name='c',desc="Use chunk coordinates instead of block coordinates") boolean useChunkCoordinates) throws WorldEditException - Throws:
WorldEditException
-
wand
public void wand(Player player, LocalSession session, @Switch(name='n',desc="Get a navigation wand") boolean navWand) throws WorldEditException - Throws:
WorldEditException
-
toggleWand
-
contract
public void contract(Actor actor, World world, LocalSession session, @Arg(desc="Amount to contract the selection by") int amount, @Arg(desc="Amount to contract the selection by in the other direction",def="0") int reverseAmount, @Arg(desc="Direction to contract",def="me") List<BlockVector3> direction) throws WorldEditException - Throws:
WorldEditException
-
shift
public void shift(Actor actor, World world, LocalSession session, @Arg(desc="Amount to shift the selection by") int amount, @Arg(desc="Direction to contract",def="me") List<BlockVector3> direction) throws WorldEditException - Throws:
WorldEditException
-
outset
public void outset(Actor actor, World world, LocalSession session, @Arg(desc="Amount to expand the selection by in all directions") int amount, @Switch(name='h',desc="Only expand horizontally") boolean onlyHorizontal, @Switch(name='v',desc="Only expand vertically") boolean onlyVertical) throws WorldEditException - Throws:
WorldEditException
-
inset
public void inset(Actor actor, World world, LocalSession session, @Arg(desc="Amount to contract the selection by in all directions") int amount, @Switch(name='h',desc="Only contract horizontally") boolean onlyHorizontal, @Switch(name='v',desc="Only contract vertically") boolean onlyVertical) throws WorldEditException - Throws:
WorldEditException
-
trim
public void trim(Actor actor, World world, LocalSession session, @Arg(desc="Mask of blocks to keep within the selection",def="#existing") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
size
public void size(Actor actor, World world, LocalSession session, @Switch(name='c',desc="Get clipboard info instead") boolean clipboardInfo) throws WorldEditException - Throws:
WorldEditException
-
count
public int count(Actor actor, World world, LocalSession session, EditSession editSession, @Arg(desc="The mask of blocks to match") Mask mask) throws WorldEditException - Throws:
WorldEditException
-
distr
public void distr(Actor actor, World world, LocalSession session, @Switch(name='c',desc="Get the distribution of the clipboard instead") boolean clipboardDistr, @Switch(name='d',desc="Separate blocks by state") boolean separateStates, @ArgFlag(name='p',desc="Gets page from a previous distribution.") Integer page) throws WorldEditException - Throws:
WorldEditException
-
select
public void select(Actor actor, World world, LocalSession session, @Arg(desc="Selector to switch to",def="") SelectorChoiceOrList selectorChoiceOrList, @Switch(name='d',desc="Set default selector") boolean setDefaultSelector) throws WorldEditException - Throws:
WorldEditException
-