public interface ISelection
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.AxisAlignedBB |
aabb() |
ISelection |
contract(net.minecraft.util.EnumFacing direction,
int blocks)
Returns a new
ISelection contracted in the specified direction by the specified number of blocks. |
ISelection |
expand(net.minecraft.util.EnumFacing direction,
int blocks)
Returns a new
ISelection expanded in the specified direction by the specified number of blocks. |
BetterBlockPos |
max() |
BetterBlockPos |
min() |
BetterBlockPos |
pos1() |
BetterBlockPos |
pos2() |
ISelection |
shift(net.minecraft.util.EnumFacing direction,
int blocks)
Returns a new
ISelection shifted in the specified direction by the specified number of blocks. |
net.minecraft.util.math.Vec3i |
size() |
BetterBlockPos pos1()
BetterBlockPos pos2()
BetterBlockPos min()
BetterBlockPos
with the lowest x, y, and z position in the selection.BetterBlockPos max()
min()
.net.minecraft.util.math.Vec3i size()
net.minecraft.util.math.AxisAlignedBB aabb()
AxisAlignedBB
encompassing all blocks in this selection.ISelection expand(net.minecraft.util.EnumFacing direction, int blocks)
ISelection
expanded in the specified direction by the specified number of blocks.direction
- The direction to expand the selection.blocks
- How many blocks to expand it.ISelection contract(net.minecraft.util.EnumFacing direction, int blocks)
ISelection
contracted in the specified direction by the specified number of blocks.
Note that, for example, if the direction specified is UP, the bottom of the selection will be shifted up. If it is DOWN, the top of the selection will be shifted down.
direction
- The direction to contract the selection.blocks
- How many blocks to contract it.ISelection shift(net.minecraft.util.EnumFacing direction, int blocks)
ISelection
shifted in the specified direction by the specified number of blocks. This moves
the whole selection.direction
- The direction to shift the selection.blocks
- How many blocks to shift it.