Package com.sk89q.worldedit.command
Class SelectionCommands
java.lang.Object
com.sk89q.worldedit.command.SelectionCommands
Selection commands.
-
Nested Class Summary
-
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, EditSession editSession, 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
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, SelectorChoice selector, 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
wand
(Player player, LocalSession session, boolean navWand)
-
Constructor Details
-
SelectionCommands
-
-
Method Details
-
pos1
public void pos1(Actor actor, World world, LocalSession session, @Arg(desc="Coordinates to set position 1 to",def="") BlockVector3 coordinates) throws WorldEditException - Throws:
WorldEditException
-
pos2
public void pos2(Actor actor, World world, LocalSession session, @Arg(desc="Coordinates to set position 2 to",def="") BlockVector3 coordinates) throws WorldEditException - Throws:
WorldEditException
-
hpos1
- Throws:
WorldEditException
-
hpos2
- Throws:
WorldEditException
-
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
-
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, EditSession editSession, @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="") SelectorChoice selector, @Switch(name='d',desc="Set default selector") boolean setDefaultSelector) throws WorldEditException - Throws:
WorldEditException
-