| Modifier and Type | Method and Description |
|---|---|
static Vector |
NBTUtils.toVector(ListTag listTag)
Read a vector from a list tag containing ideally three values: the
X, Y, and Z components.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
YAMLNode.getVector(String path)
Gets a vector at a location.
|
Vector |
YAMLNode.getVector(String path,
Vector def)
Gets a string at a location.
|
| Modifier and Type | Method and Description |
|---|---|
List<Vector> |
YAMLNode.getVectorList(String path,
List<Vector> def)
Gets a list of vectors.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
YAMLNode.getVector(String path,
Vector def)
Gets a string at a location.
|
| Modifier and Type | Method and Description |
|---|---|
List<Vector> |
YAMLNode.getVectorList(String path,
List<Vector> def)
Gets a list of vectors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BlockVector
Extension of
Vector that that compares with other instances
using integer components. |
class |
BlockWorldVector
Deprecated.
Replace all uses of
WorldVectors with Locations |
class |
WorldVector
Deprecated.
Use
Location wherever possible |
class |
WorldVectorFace
Deprecated.
Use
Location wherever possible |
| Modifier and Type | Field and Description |
|---|---|
static Vector |
Vector.ONE |
static Vector |
Vector.UNIT_X |
static Vector |
Vector.UNIT_Y |
static Vector |
Vector.UNIT_Z |
static Vector |
Vector.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Vector |
Vector.add(double x,
double y,
double z)
Add another vector to this vector and return the result as a new vector.
|
Vector |
Vector.add(int x,
int y,
int z)
Add another vector to this vector and return the result as a new vector.
|
Vector |
Vector.add(Vector... others)
Add a list of vectors to this vector and return the
result as a new vector.
|
Vector |
Vector.add(Vector other)
Add another vector to this vector and return the result as a new vector.
|
Vector |
Vector.ceil()
Rounds all components up.
|
Vector |
Vector.clampY(int min,
int max)
Clamp the Y component.
|
Vector |
Vector.cross(Vector other)
Gets the cross product of this and another vector.
|
Vector |
Vector.divide(double n)
Perform scalar division and return a new vector.
|
Vector |
Vector.divide(double x,
double y,
double z)
Divide this vector by another vector on each component.
|
Vector |
Vector.divide(float n)
Perform scalar division and return a new vector.
|
Vector |
Vector.divide(int n)
Perform scalar division and return a new vector.
|
Vector |
Vector.divide(int x,
int y,
int z)
Divide this vector by another vector on each component.
|
Vector |
Vector.divide(Vector other)
Divide this vector by another vector on each component.
|
Vector |
Vector.floor()
Floors the values of all components.
|
Vector |
WorldEdit.getDiagonalDirection(Player player,
String dirStr)
Get diagonal direction vector for a player's direction.
|
Vector |
Location.getDirection()
Deprecated.
|
Vector |
WorldEdit.getDirection(Player player,
String dirStr)
Get the direction vector for a player's direction.
|
static Vector |
Vector.getMaximum(Vector v1,
Vector v2)
Gets the maximum components of two vectors.
|
Vector |
EditSession.getMaximumPoint() |
static Vector |
Vector.getMidpoint(Vector v1,
Vector v2)
Gets the midpoint of two vectors.
|
static Vector |
Vector.getMinimum(Vector v1,
Vector v2)
Gets the minimum components of two vectors.
|
Vector |
EditSession.getMinimumPoint() |
Vector |
CuboidClipboard.getOffset()
Deprecated.
Get the offset of the player to the clipboard's minimum point
(minimum X, Y, Z coordinates).
|
Vector |
CuboidClipboard.getOrigin()
Deprecated.
Get the origin point, which corresponds to where the copy was
originally copied from.
|
Vector |
LocalSession.getPlacementPosition(Player player)
Get the position use for commands that take a center point
(i.e.
|
Vector |
Location.getPosition()
Deprecated.
|
Vector |
CuboidClipboard.getSize()
Deprecated.
Get the dimensions of the clipboard.
|
Vector |
PlayerDirection.leftVector()
Deprecated.
|
Vector |
Vector.multiply(double n)
Perform scalar multiplication and return a new vector.
|
Vector |
Vector.multiply(double x,
double y,
double z)
Multiply this vector by another vector on each component.
|
Vector |
Vector.multiply(float n)
Perform scalar multiplication and return a new vector.
|
Vector |
Vector.multiply(int n)
Perform scalar multiplication and return a new vector.
|
Vector |
Vector.multiply(int x,
int y,
int z)
Multiply this vector by another vector on each component.
|
Vector |
Vector.multiply(Vector... others)
Multiply this vector by zero or more vectors on each component.
|
Vector |
Vector.multiply(Vector other)
Multiply this vector by another vector on each component.
|
Vector |
Vector.normalize()
Get the normalized vector, which is the vector divided by its
length, as a new vector.
|
Vector |
Vector.positive()
Returns a vector with the absolute values of the components of
this vector.
|
Vector |
Vector.round()
Rounds all components to the closest integer.
|
Vector |
Vector.setX(double x)
Set the X coordinate.
|
Vector |
Vector.setX(int x)
Set the X coordinate.
|
Vector |
Vector.setY(double y)
Set the Y coordinate.
|
Vector |
Vector.setY(int y)
Set the Y coordinate.
|
Vector |
Vector.setZ(double z)
Set the Z coordinate.
|
Vector |
Vector.setZ(int z)
Set the Z coordinate.
|
Vector |
Vector.subtract(double x,
double y,
double z)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector |
Vector.subtract(int x,
int y,
int z)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector |
Vector.subtract(Vector... others)
Subtract a list of vectors from this vector and return the result
as a new vector.
|
Vector |
Vector.subtract(Vector other)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector |
Vector2D.toVector()
Creates a 3D vector by adding a zero Y component to this vector.
|
Vector |
Vector2D.toVector(double y)
Creates a 3D vector by adding the specified Y component to this vector.
|
Vector |
Vector.transform2D(double angle,
double aboutX,
double aboutZ,
double translateX,
double translateZ)
Perform a 2D transformation on this vector and return a new one.
|
Vector |
PlayerDirection.vector() |
| Modifier and Type | Method and Description |
|---|---|
Vector |
Vector.add(Vector... others)
Add a list of vectors to this vector and return the
result as a new vector.
|
Location |
Location.add(Vector other)
Deprecated.
|
Vector |
Vector.add(Vector other)
Add another vector to this vector and return the result as a new vector.
|
int |
Vector.compareTo(Vector other) |
boolean |
Vector.containedWithin(Vector min,
Vector max)
Checks to see if a vector is contained with another.
|
boolean |
Vector.containedWithinBlock(Vector min,
Vector max)
Checks to see if a vector is contained with another, comparing
using discrete comparisons, inclusively.
|
Vector |
Vector.cross(Vector other)
Gets the cross product of this and another vector.
|
int |
EditSession.deformRegion(Region region,
Vector zero,
Vector unit,
String expressionString) |
double |
Vector.distance(Vector other)
Get the distance between this vector and another vector.
|
double |
Vector.distanceSq(Vector other)
Get the distance between this vector and another vector, squared.
|
Vector |
Vector.divide(Vector other)
Divide this vector by another vector on each component.
|
double |
Vector.dot(Vector other)
Gets the dot product of this and another vector.
|
int |
EditSession.drainArea(Vector origin,
double radius)
Drain nearby pools of water or lava.
|
int |
EditSession.drawLine(Pattern pattern,
Vector pos1,
Vector pos2,
double radius,
boolean filled)
Draws a line (out of blocks) between two vectors.
|
int |
EditSession.fillXZ(Vector origin,
BaseBlock block,
double radius,
int depth,
boolean recursive)
Fills an area recursively in the X/Z directions.
|
int |
EditSession.fillXZ(Vector origin,
Pattern pattern,
double radius,
int depth,
boolean recursive)
Fills an area recursively in the X/Z directions.
|
int |
EditSession.fixLiquid(Vector origin,
double radius,
int moving,
int stationary)
Fix liquids so that they turn into stationary blocks and extend outward.
|
static Location |
Location.fromEye(LocalWorld world,
Vector start,
Vector eye)
Deprecated.
|
static Location |
Location.fromLookAt(LocalWorld world,
Vector start,
Vector lookAt)
Deprecated.
|
boolean |
LocalWorld.generateBigTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
LocalWorld.generateBirchTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
LocalWorld.generateRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
LocalWorld.generateTallRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
LocalWorld.generateTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
LocalWorld.generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector pt)
Deprecated.
|
BaseBlock |
EditSession.getBlock(Vector position) |
BaseBlock |
CuboidClipboard.getBlock(Vector position)
Deprecated.
Get the block at the given position.
|
int |
EditSession.getBlockData(Vector position)
Deprecated.
|
int |
EditSession.getBlockType(Vector position)
Deprecated.
|
BaseBlock |
LocalWorld.getLazyBlock(Vector position)
Deprecated.
|
BaseBlock |
EditSession.getLazyBlock(Vector position) |
static Vector |
Vector.getMaximum(Vector v1,
Vector v2)
Gets the maximum components of two vectors.
|
static Vector |
Vector.getMidpoint(Vector v1,
Vector v2)
Gets the midpoint of two vectors.
|
static Vector |
Vector.getMinimum(Vector v1,
Vector v2)
Gets the minimum components of two vectors.
|
BaseBlock |
CuboidClipboard.getPoint(Vector position)
Deprecated.
use
CuboidClipboard.getBlock(Vector) instead |
static WorldVectorFace |
WorldVectorFace.getWorldVectorFace(LocalWorld world,
Vector vector,
Vector face)
Deprecated.
Get a WorldVectorFace by comparing two vectors.
|
int |
EditSession.green(Vector position,
double radius)
Deprecated.
|
int |
EditSession.green(Vector position,
double radius,
boolean onlyNormalDirt)
Make dirt green.
|
boolean |
Vector.isCollinearWith(Vector other)
Returns whether this vector is collinear with another vector.
|
int |
EditSession.makeBiomeShape(Region region,
Vector zero,
Vector unit,
BaseBiome biomeType,
String expressionString,
boolean hollow) |
int |
EditSession.makeCylinder(Vector pos,
Pattern block,
double radiusX,
double radiusZ,
int height,
boolean filled)
Makes a cylinder.
|
int |
EditSession.makeCylinder(Vector pos,
Pattern block,
double radius,
int height,
boolean filled)
Makes a cylinder.
|
int |
EditSession.makeForest(Vector basePosition,
int size,
double density,
TreeGenerator treeGenerator)
Makes a forest.
|
int |
EditSession.makePumpkinPatches(Vector position,
int apothem)
Makes pumpkin patches randomly in an area around the given position.
|
int |
EditSession.makePyramid(Vector position,
Pattern block,
int size,
boolean filled)
Makes a pyramid.
|
int |
EditSession.makeShape(Region region,
Vector zero,
Vector unit,
Pattern pattern,
String expressionString,
boolean hollow) |
int |
EditSession.makeSphere(Vector pos,
Pattern block,
double radius,
boolean filled)
Makes a sphere.
|
int |
EditSession.makeSphere(Vector pos,
Pattern block,
double radiusX,
double radiusY,
double radiusZ,
boolean filled)
Makes a sphere or ellipsoid.
|
int |
EditSession.moveCuboidRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replacement)
Move the blocks in a region a certain direction.
|
int |
EditSession.moveRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replacement)
Move the blocks in a region a certain direction.
|
Vector |
Vector.multiply(Vector... others)
Multiply this vector by zero or more vectors on each component.
|
Vector |
Vector.multiply(Vector other)
Multiply this vector by another vector on each component.
|
void |
CuboidClipboard.paste(EditSession editSession,
Vector newOrigin,
boolean noAir)
Deprecated.
Paste the clipboard at the given location using the given
EditSession. |
void |
CuboidClipboard.paste(EditSession editSession,
Vector newOrigin,
boolean noAir,
boolean entities)
Deprecated.
Paste the clipboard at the given location using the given
EditSession. |
LocalEntity[] |
CuboidClipboard.pasteEntities(Vector newOrigin)
Deprecated.
Paste the stored entities to the given position.
|
void |
CuboidClipboard.place(EditSession editSession,
Vector newOrigin,
boolean noAir)
Deprecated.
Paste the clipboard at the given location using the given
EditSession. |
BaseBlock |
EditSession.rawGetBlock(Vector position)
Deprecated.
|
boolean |
EditSession.rawSetBlock(Vector position,
BaseBlock block)
Set a block, bypassing both history and block re-ordering.
|
void |
EditSession.rememberChange(Vector position,
BaseBlock existing,
BaseBlock block)
Deprecated.
Get the change set with
EditSession.getChangeSet() and add the change with that |
int |
EditSession.removeAbove(Vector position,
int apothem,
int height)
Remove a cuboid above the given position with a given apothem and a given height.
|
int |
EditSession.removeBelow(Vector position,
int apothem,
int height)
Remove a cuboid below the given position with a given apothem and a given height.
|
int |
EditSession.removeNear(Vector position,
int blockType,
int apothem)
Remove blocks of a certain type nearby a given position.
|
boolean |
EditSession.setBlock(Vector position,
BaseBlock block) |
void |
CuboidClipboard.setBlock(Vector position,
BaseBlock block)
Deprecated.
Set the block at a position in the clipboard.
|
boolean |
EditSession.setBlock(Vector position,
BaseBlock block,
EditSession.Stage stage)
Set a block, bypassing both history and block re-ordering.
|
boolean |
EditSession.setBlock(Vector position,
Pattern pattern)
Sets the block at a position, subject to both history and block re-ordering.
|
boolean |
EditSession.setBlockIfAir(Vector position,
BaseBlock block)
Deprecated.
Use your own method
|
boolean |
EditSession.setChanceBlockIfAir(Vector position,
BaseBlock block,
double probability)
Set a block (only if a previous block was not there) if
Math.random()
returns a number less than the given probability. |
void |
CuboidClipboard.setOffset(Vector offset)
Deprecated.
Set the offset of the player to the clipboard's minimum point
(minimum X, Y, Z coordinates).
|
void |
CuboidClipboard.setOrigin(Vector origin)
Deprecated.
Set the origin point, which corresponds to where the copy was
originally copied from.
|
Location |
Location.setPosition(Vector position)
Deprecated.
|
int |
EditSession.simulateSnow(Vector position,
double radius)
Make snow in a radius.
|
boolean |
EditSession.smartSetBlock(Vector position,
BaseBlock block)
Set a block, bypassing history but still utilizing block re-ordering.
|
int |
EditSession.stackCuboidRegion(Region region,
Vector dir,
int count,
boolean copyAir)
Stack a cuboid region.
|
Vector |
Vector.subtract(Vector... others)
Subtract a list of vectors from this vector and return the result
as a new vector.
|
Vector |
Vector.subtract(Vector other)
Subtract another vector from this vector and return the result
as a new vector.
|
int |
EditSession.thaw(Vector position,
double radius)
Thaw blocks in a radius.
|
| Modifier and Type | Method and Description |
|---|---|
int |
EditSession.drawSpline(Pattern pattern,
List<Vector> nodevectors,
double tension,
double bias,
double continuity,
double quality,
double radius,
boolean filled)
Draws a spline (out of blocks) between specified vectors.
|
| Constructor and Description |
|---|
BlockVector(Vector position)
Construct an instance as a copy of another instance.
|
BlockWorldVector(LocalWorld world,
Vector position)
Deprecated.
Construct an instance from another instance.
|
BlockWorldVector(WorldVector world,
Vector v)
Deprecated.
Construct a new instance.
|
CuboidClipboard(Vector size)
Deprecated.
Constructs the clipboard.
|
CuboidClipboard(Vector size,
Vector origin)
Deprecated.
Constructs the clipboard.
|
CuboidClipboard(Vector size,
Vector origin,
Vector offset)
Deprecated.
Constructs the clipboard.
|
Location(LocalWorld world,
Vector position)
Deprecated.
|
Location(LocalWorld world,
Vector position,
float yaw,
float pitch)
Deprecated.
|
Vector(Vector other)
Copy another vector.
|
WorldVector(LocalWorld world,
Vector other)
Deprecated.
Construct the Vector object.
|
WorldVectorFace(LocalWorld world,
Vector pt,
VectorFace face)
Deprecated.
|
| Constructor and Description |
|---|
LazyBlock(int type,
Extent extent,
Vector position)
Create a new lazy block.
|
LazyBlock(int type,
int data,
Extent extent,
Vector position)
Create a new lazy block.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector |
BukkitUtil.toVector(org.bukkit.Location loc) |
static Vector |
BukkitUtil.toVector(org.bukkit.util.Vector vector) |
| Modifier and Type | Method and Description |
|---|---|
void |
BukkitWorld.checkLoadedChunk(Vector pt) |
boolean |
BukkitWorld.clearContainerBlockContents(Vector pt) |
void |
BukkitWorld.dropItem(Vector pt,
BaseItemStack item) |
boolean |
BukkitWorld.generateBigTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
BukkitWorld.generateBirchTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
BukkitWorld.generateRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
BukkitWorld.generateTallRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
BukkitWorld.generateTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
BukkitWorld.generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector pt) |
BaseBlock |
BukkitWorld.getBlock(Vector position) |
int |
BukkitWorld.getBlockLightLevel(Vector pt) |
BaseBlock |
BukkitWorld.getLazyBlock(Vector position) |
boolean |
BukkitWorld.playEffect(Vector position,
int type,
int data) |
boolean |
BukkitWorld.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
boolean |
BukkitWorld.setBlock(Vector pt,
Block block,
boolean notifyAdjacent)
Deprecated.
|
void |
BukkitPlayer.setPosition(Vector pos,
float pitch,
float yaw) |
void |
BukkitWorld.simulateBlockMine(Vector pt) |
static org.bukkit.Location |
BukkitUtil.toLocation(org.bukkit.World world,
Vector pt) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
Selection.getNativeMaximumPoint()
Get the upper point of a region.
|
Vector |
RegionSelection.getNativeMaximumPoint() |
Vector |
Selection.getNativeMinimumPoint()
Get the lower point of a region.
|
Vector |
RegionSelection.getNativeMinimumPoint() |
| Constructor and Description |
|---|
CuboidSelection(org.bukkit.World world,
Vector pt1,
Vector pt2) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClipboardCommands.flip(Player player,
LocalSession session,
EditSession editSession,
Vector direction) |
void |
RegionCommands.move(Player player,
EditSession editSession,
LocalSession session,
Region region,
int count,
Vector direction,
BaseBlock replace,
boolean moveSelection) |
void |
RegionCommands.stack(Player player,
EditSession editSession,
LocalSession session,
Region region,
int count,
Vector direction,
boolean moveSelection,
boolean ignoreAirBlocks) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClipboardBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
CylinderBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
SphereBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
Brush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size)
Build the object.
|
void |
HollowCylinderBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
SmoothBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
ButcherBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
HollowSphereBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
void |
GravityBrush.build(EditSession editSession,
Vector position,
Pattern pattern,
double size) |
| Modifier and Type | Method and Description |
|---|---|
void |
Player.setPosition(Vector pos)
Move the player.
|
void |
Player.setPosition(Vector pos,
float pitch,
float yaw)
Move the player.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPlayerActor.setPosition(Vector pos) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
NullExtent.getMaximumPoint() |
Vector |
Extent.getMaximumPoint()
Get the maximum point in the extent.
|
Vector |
AbstractDelegateExtent.getMaximumPoint() |
Vector |
NullExtent.getMinimumPoint() |
Vector |
Extent.getMinimumPoint()
Get the minimum point in the extent.
|
Vector |
AbstractDelegateExtent.getMinimumPoint() |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
NullExtent.getBlock(Vector position) |
BaseBlock |
AbstractDelegateExtent.getBlock(Vector position) |
BaseBlock |
InputExtent.getBlock(Vector position)
Get a snapshot of the block at the given location.
|
BaseBlock |
NullExtent.getLazyBlock(Vector position) |
BaseBlock |
AbstractDelegateExtent.getLazyBlock(Vector position) |
BaseBlock |
InputExtent.getLazyBlock(Vector position)
Get a lazy, immutable snapshot of the block at the given location that only
immediately contains information about the block's type (and metadata).
|
boolean |
NullExtent.setBlock(Vector position,
BaseBlock block) |
boolean |
OutputExtent.setBlock(Vector position,
BaseBlock block)
Change the block at the given location to the given block.
|
boolean |
AbstractDelegateExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
MaskingExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
ChangeSetExtent.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
ForgetfulExtentBuffer.apply(Vector pos) |
boolean |
ForgetfulExtentBuffer.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
LastAccessExtentCache.getLazyBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
BlockArrayClipboard.getDimensions() |
Vector |
Clipboard.getDimensions()
Get the dimensions of the copy, which is at minimum (1, 1, 1).
|
Vector |
BlockArrayClipboard.getMaximumPoint() |
Vector |
BlockArrayClipboard.getMinimumPoint() |
Vector |
BlockArrayClipboard.getOrigin() |
Vector |
Clipboard.getOrigin()
Get the origin point from which the copy was made from.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockArrayClipboard.getBlock(Vector position) |
BaseBlock |
BlockArrayClipboard.getLazyBlock(Vector position) |
boolean |
BlockArrayClipboard.setBlock(Vector position,
BaseBlock block) |
void |
BlockArrayClipboard.setOrigin(Vector origin) |
void |
Clipboard.setOrigin(Vector origin)
Set the origin point from which the copy was made from.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockBagExtent.setBlock(Vector position,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractLoggingExtent.onBlockChange(Vector position,
BaseBlock newBlock)
Called when a block is being changed.
|
boolean |
AbstractLoggingExtent.setBlock(Vector position,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MultiStageReorder.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockTransformExtent.getBlock(Vector position) |
BaseBlock |
BlockTransformExtent.getLazyBlock(Vector position) |
boolean |
BlockTransformExtent.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DataValidatorExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
BlockChangeLimiter.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SurvivalModeExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
FastModeExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
BlockQuirkExtent.setBlock(Vector position,
BaseBlock block) |
boolean |
ChunkLoadingExtent.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RegionMaskingFilter.apply(Vector position) |
boolean |
RegionFunction.apply(Vector position)
Apply the function to the given position.
|
boolean |
CombinedRegionFunction.apply(Vector position) |
boolean |
GroundFunction.apply(Vector position,
int depth) |
boolean |
LayerFunction.apply(Vector position,
int depth)
Apply the function to the given position.
|
boolean |
GroundFunction.isGround(Vector position) |
boolean |
LayerFunction.isGround(Vector position)
Returns whether the given block should be "passed through" when
conducting the ground search.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockReplace.apply(Vector position) |
boolean |
Counter.apply(Vector position) |
boolean |
ExtentBlockCopy.apply(Vector position) |
boolean |
Naturalizer.apply(Vector position,
int depth) |
boolean |
Naturalizer.isGround(Vector position) |
| Constructor and Description |
|---|
ExtentBlockCopy(Extent source,
Vector from,
Extent destination,
Vector to,
Transform transform)
Make a new copy.
|
| Constructor and Description |
|---|
ExtentEntityCopy(Vector from,
Extent destination,
Vector to,
Transform transform)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GardenPatchGenerator.apply(Vector position) |
boolean |
ForestGenerator.apply(Vector position) |
boolean |
FloraGenerator.apply(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
OffsetMask.getOffset()
Get the offset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OffsetMask.setOffset(Vector offset)
Set the offset.
|
boolean |
MaskUnion.test(Vector vector) |
boolean |
NoiseFilter.test(Vector vector) |
boolean |
BoundedHeightMask.test(Vector vector) |
boolean |
SolidBlockMask.test(Vector vector) |
boolean |
BlockMask.test(Vector vector) |
boolean |
ExpressionMask.test(Vector vector) |
boolean |
ExistingBlockMask.test(Vector vector) |
boolean |
OffsetMask.test(Vector vector) |
boolean |
RegionMask.test(Vector vector) |
boolean |
MaskIntersection.test(Vector vector) |
boolean |
FuzzyBlockMask.test(Vector vector) |
boolean |
Mask.test(Vector vector)
Returns true if the criteria is met.
|
| Constructor and Description |
|---|
OffsetMask(Mask mask,
Vector offset)
Create a new instance.
|
| Constructor and Description |
|---|
ForwardExtentCopy(Extent source,
Region region,
Extent destination,
Vector to)
Create a new copy using the region's lowest minimum point as the
"from" position.
|
ForwardExtentCopy(Extent source,
Region region,
Vector from,
Extent destination,
Vector to)
Create a new copy.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
RepeatingExtentPattern.getOffset()
Get the offset.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
RandomPattern.apply(Vector position) |
BaseBlock |
Pattern.apply(Vector position)
Return a
BaseBlock for the given position. |
BaseBlock |
RepeatingExtentPattern.apply(Vector position) |
BaseBlock |
BlockPattern.apply(Vector position) |
BaseBlock |
ClipboardPattern.apply(Vector position) |
void |
RepeatingExtentPattern.setOffset(Vector offset)
Set the offset.
|
| Constructor and Description |
|---|
RepeatingExtentPattern(Extent extent,
Vector offset)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
RegionOffset.getOffset()
Get the offset that is added to the position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RegionOffset.apply(Vector position) |
void |
RegionOffset.setOffset(Vector offset)
Set the offset that is added to the position.
|
| Constructor and Description |
|---|
RegionOffset(Vector offset,
RegionFunction function)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Vector> |
BreadthFirstSearch.getDirections()
Get the list of directions will be visited.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DownwardVisitor.isVisitable(Vector from,
Vector to) |
protected abstract boolean |
BreadthFirstSearch.isVisitable(Vector from,
Vector to)
Return whether the given 'to' block should be visited, starting from the
'from' block.
|
protected boolean |
RecursiveVisitor.isVisitable(Vector from,
Vector to) |
void |
BreadthFirstSearch.visit(Vector position)
Add the given location to the list of locations to visit, provided
that it has not been visited.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
LocalWorldAdapter.getMaximumPoint() |
Vector |
LocalWorldAdapter.getMinimumPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
LocalWorldAdapter.checkLoadedChunk(Vector position) |
boolean |
LocalWorldAdapter.clearContainerBlockContents(Vector position) |
void |
LocalWorldAdapter.dropItem(Vector position,
BaseItemStack item) |
void |
LocalWorldAdapter.dropItem(Vector position,
BaseItemStack item,
int count) |
boolean |
LocalWorldAdapter.generateBigTree(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
LocalWorldAdapter.generateBirchTree(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
LocalWorldAdapter.generateRedwoodTree(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
LocalWorldAdapter.generateTallRedwoodTree(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
LocalWorldAdapter.generateTree(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
LocalWorldAdapter.generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector position) |
BaseBlock |
LocalWorldAdapter.getBlock(Vector position) |
int |
LocalWorldAdapter.getBlockData(Vector pt)
Deprecated.
|
int |
LocalWorldAdapter.getBlockLightLevel(Vector position) |
int |
LocalWorldAdapter.getBlockType(Vector pt)
Deprecated.
|
BaseBlock |
LocalWorldAdapter.getLazyBlock(Vector position) |
boolean |
LocalWorldAdapter.playEffect(Vector position,
int type,
int data) |
boolean |
LocalWorldAdapter.queueBlockBreakEffect(Platform server,
Vector position,
int blockId,
double priority) |
boolean |
LocalWorldAdapter.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
void |
LocalWorldAdapter.simulateBlockMine(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
WorldEditBinding.getDirection(ArgumentStack context,
Direction direction)
Get a direction from the player.
|
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
SelectionEllipsoidPointEvent.pos |
protected Vector |
SelectionPointEvent.pos |
protected Vector |
SelectionCylinderEvent.pos |
| Constructor and Description |
|---|
SelectionCylinderEvent(Vector pos,
Vector2D radius) |
SelectionEllipsoidPointEvent(int id,
Vector pos) |
SelectionPoint2DEvent(int id,
Vector pos,
int area) |
SelectionPointEvent(int id,
Vector pos,
int area) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DynamicRegionMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
SolidBlockMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
BlockMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
CombinedMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
InvertedMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
UnderOverlayMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
InvertedBlockTypeMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
ExistingBlockMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
RegionMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
FuzzyBlockMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
RandomMask.matches(EditSession editSession,
Vector position)
Deprecated.
|
boolean |
Mask.matches(EditSession editSession,
Vector position)
Deprecated.
Given a block position, this method returns true if the block at
that position matches the filter.
|
void |
DynamicRegionMask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
|
void |
CombinedMask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
|
void |
InvertedMask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
|
void |
UnderOverlayMask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
|
void |
AbstractMask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
|
void |
Mask.prepare(LocalSession session,
LocalPlayer player,
Vector target)
Deprecated.
Called one time before each edit session.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
ReparametrisingInterpolation.get1stDerivative(double position) |
Vector |
LinearInterpolation.get1stDerivative(double position) |
Vector |
Interpolation.get1stDerivative(double position)
Gets the result of f'(position).
|
Vector |
KochanekBartelsInterpolation.get1stDerivative(double position) |
Vector |
Node.getPosition() |
Vector |
ReparametrisingInterpolation.getPosition(double position) |
Vector |
LinearInterpolation.getPosition(double position) |
Vector |
Interpolation.getPosition(double position)
Gets the result of f(position)
|
Vector |
KochanekBartelsInterpolation.getPosition(double position) |
| Modifier and Type | Method and Description |
|---|---|
void |
Node.setPosition(Vector position) |
| Constructor and Description |
|---|
Node(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
float |
RandomNoise.noise(Vector position) |
float |
NoiseGenerator.noise(Vector position)
Get the noise value for the given position.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
CombinedTransform.apply(Vector vector) |
Vector |
Identity.apply(Vector vector) |
Vector |
Transform.apply(Vector input)
Returns the result of applying the function to the input.
|
Vector |
AffineTransform.apply(Vector vector) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
CombinedTransform.apply(Vector vector) |
Vector |
Identity.apply(Vector vector) |
Vector |
Transform.apply(Vector input)
Returns the result of applying the function to the input.
|
Vector |
AffineTransform.apply(Vector vector) |
AffineTransform |
AffineTransform.scale(Vector vec) |
AffineTransform |
AffineTransform.translate(Vector vec) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
SingleBlockPattern.next(Vector position)
Deprecated.
|
BaseBlock |
Pattern.next(Vector position)
Deprecated.
Get a block for a position.
|
BaseBlock |
ClipboardPattern.next(Vector position) |
BaseBlock |
RandomFillPattern.next(Vector position)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
NullRegion.getCenter() |
Vector |
TransformRegion.getCenter() |
Vector |
EllipsoidRegion.getCenter()
Get the center.
|
Vector |
AbstractRegion.getCenter() |
Vector |
ConvexPolyhedralRegion.getCenter() |
Vector |
Region.getCenter()
Get the center point of a region.
|
Vector |
CylinderRegion.getCenter() |
Vector |
NullRegion.getMaximumPoint() |
Vector |
TransformRegion.getMaximumPoint() |
Vector |
CuboidRegion.getMaximumPoint() |
Vector |
EllipsoidRegion.getMaximumPoint() |
Vector |
ConvexPolyhedralRegion.getMaximumPoint() |
Vector |
Region.getMaximumPoint()
Get the upper point of a region.
|
Vector |
RegionIntersection.getMaximumPoint() |
Vector |
Polygonal2DRegion.getMaximumPoint() |
Vector |
CylinderRegion.getMaximumPoint() |
Vector |
NullRegion.getMinimumPoint() |
Vector |
TransformRegion.getMinimumPoint() |
Vector |
CuboidRegion.getMinimumPoint() |
Vector |
EllipsoidRegion.getMinimumPoint() |
Vector |
ConvexPolyhedralRegion.getMinimumPoint() |
Vector |
Region.getMinimumPoint()
Get the lower point of a region.
|
Vector |
RegionIntersection.getMinimumPoint() |
Vector |
Polygonal2DRegion.getMinimumPoint() |
Vector |
CylinderRegion.getMinimumPoint() |
Vector |
CuboidRegion.getPos1()
Get the first cuboid-defining corner.
|
Vector |
CuboidRegion.getPos2()
Get the second cuboid-defining corner.
|
Vector |
EllipsoidRegion.getRadius()
Get the radii.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Vector> |
NullRegion.getChunkCubes() |
Set<Vector> |
CuboidRegion.getChunkCubes() |
Set<Vector> |
AbstractRegion.getChunkCubes() |
Set<Vector> |
Region.getChunkCubes()
Return a list of 16*16*16 chunks in a region
|
Collection<Vector> |
ConvexPolyhedralRegion.getVertices() |
| Modifier and Type | Method and Description |
|---|---|
void |
Polygonal2DRegion.addPoint(Vector position)
Add a point to the list.
|
boolean |
ConvexPolyhedralRegion.addVertex(Vector vertex)
Add a vertex to the region.
|
static boolean |
Polygonal2DRegion.contains(List<BlockVector2D> points,
int minY,
int maxY,
Vector pt)
Checks to see if a point is inside a region.
|
boolean |
NullRegion.contains(Vector position) |
boolean |
TransformRegion.contains(Vector position) |
boolean |
CuboidRegion.contains(Vector position) |
boolean |
EllipsoidRegion.contains(Vector position) |
boolean |
ConvexPolyhedralRegion.contains(Vector position) |
boolean |
Region.contains(Vector position)
Returns true based on whether the region contains the point.
|
boolean |
RegionIntersection.contains(Vector position) |
boolean |
Polygonal2DRegion.contains(Vector position) |
boolean |
CylinderRegion.contains(Vector position)
Checks to see if a point is inside this region.
|
void |
NullRegion.contract(Vector... changes) |
void |
TransformRegion.contract(Vector... changes) |
void |
CuboidRegion.contract(Vector... changes) |
void |
EllipsoidRegion.contract(Vector... changes) |
void |
ConvexPolyhedralRegion.contract(Vector... changes) |
void |
Region.contract(Vector... changes)
Contract the region.
|
void |
RegionIntersection.contract(Vector... changes) |
void |
Polygonal2DRegion.contract(Vector... changes) |
void |
CylinderRegion.contract(Vector... changes)
Contract the region.
|
static CylinderRegion |
CylinderRegion.createRadius(Extent extent,
Vector center,
double radius)
Return a new instance with the given center and radius in the X and Z
axes with a Y that extends from the bottom of the extent to the top
of the extent.
|
void |
NullRegion.expand(Vector... changes) |
void |
TransformRegion.expand(Vector... changes) |
void |
CuboidRegion.expand(Vector... changes) |
void |
EllipsoidRegion.expand(Vector... changes) |
void |
ConvexPolyhedralRegion.expand(Vector... changes) |
void |
Region.expand(Vector... changes)
Expand the region.
|
void |
RegionIntersection.expand(Vector... changes) |
void |
Polygonal2DRegion.expand(Vector... changes) |
void |
CylinderRegion.expand(Vector... changes)
Expand the region.
|
void |
RegionSelector.explainPrimarySelection(Actor actor,
LocalSession session,
Vector position)
Tell the player information about his/her primary selection.
|
void |
RegionSelector.explainSecondarySelection(Actor actor,
LocalSession session,
Vector position)
Tell the player information about his/her secondary selection.
|
void |
EllipsoidRegion.extendRadius(Vector minRadius) |
static CuboidRegion |
CuboidRegion.fromCenter(Vector origin,
int apothem)
Make a cuboid from the center.
|
boolean |
RegionSelector.selectPrimary(Vector position,
SelectorLimits limits)
Called when the first point is selected.
|
boolean |
RegionSelector.selectSecondary(Vector position,
SelectorLimits limits)
Called when the second point is selected.
|
void |
EllipsoidRegion.setCenter(Vector center)
Set the center.
|
void |
CylinderRegion.setCenter(Vector center)
Deprecated.
replaced by
CylinderRegion.setCenter(Vector2D) |
void |
CuboidRegion.setPos1(Vector pos1)
Set the first cuboid-defining corner.
|
void |
CuboidRegion.setPos2(Vector pos2)
Set the second cuboid-defining corner.
|
void |
EllipsoidRegion.setRadius(Vector radius)
Set the radii.
|
void |
NullRegion.shift(Vector change) |
void |
TransformRegion.shift(Vector change) |
void |
CuboidRegion.shift(Vector change) |
void |
EllipsoidRegion.shift(Vector change) |
void |
AbstractRegion.shift(Vector change) |
void |
ConvexPolyhedralRegion.shift(Vector change) |
void |
Region.shift(Vector change)
Shift the region.
|
void |
Polygonal2DRegion.shift(Vector change) |
void |
CylinderRegion.shift(Vector change) |
| Constructor and Description |
|---|
CuboidRegion(LocalWorld world,
Vector pos1,
Vector pos2)
Deprecated.
cast
world to World |
CuboidRegion(Vector pos1,
Vector pos2)
Construct a new instance of this cuboid using two corners of the cuboid.
|
CuboidRegion(World world,
Vector pos1,
Vector pos2)
Construct a new instance of this cuboid using two corners of the cuboid.
|
CylinderRegion(LocalWorld world,
Vector center,
Vector2D radius,
int minY,
int maxY)
Deprecated.
|
CylinderRegion(Vector center,
Vector2D radius,
int minY,
int maxY)
Construct the region.
|
CylinderRegion(World world,
Vector center,
Vector2D radius,
int minY,
int maxY)
Construct the region.
|
EllipsoidRegion(LocalWorld world,
Vector center,
Vector radius)
Deprecated.
|
EllipsoidRegion(Vector pos1,
Vector pos2)
Construct a new instance of this ellipsoid region.
|
EllipsoidRegion(World world,
Vector center,
Vector radius)
Construct a new instance of this ellipsoid region.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
Triangle.getVertex(int index)
Returns the triangle's vertex with the given index, counter-clockwise.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Triangle.above(Vector pt)
Returns whether the given point is above the plane the triangle is in.
|
boolean |
Triangle.below(Vector pt)
Returns whether the given point is above the plane the triangle is in.
|
Triangle |
Edge.createTriangle(Vector vertex)
Create a triangle from { this.start, this.end, vertex }
|
Triangle |
Edge.createTriangle2(Vector vertex)
Create a triangle from { this.start, vertex, this.end }.
|
| Constructor and Description |
|---|
Edge(Vector start,
Vector end) |
Triangle(Vector v0,
Vector v1,
Vector v2)
Constructs a triangle with the given vertices (counter-clockwise)
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExtendingCuboidRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
ConvexPolyhedralRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
CylinderRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
Polygonal2DRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
CuboidRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
EllipsoidRegionSelector.explainPrimarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
SphereRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
ExtendingCuboidRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
ConvexPolyhedralRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
CylinderRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
Polygonal2DRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
CuboidRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
void |
EllipsoidRegionSelector.explainSecondarySelection(Actor player,
LocalSession session,
Vector pos) |
boolean |
ExtendingCuboidRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
ConvexPolyhedralRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
CylinderRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
Polygonal2DRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
CuboidRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
EllipsoidRegionSelector.selectPrimary(Vector position,
SelectorLimits limits) |
boolean |
SphereRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
ExtendingCuboidRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
ConvexPolyhedralRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
CylinderRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
Polygonal2DRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
CuboidRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
boolean |
EllipsoidRegionSelector.selectSecondary(Vector position,
SelectorLimits limits) |
| Constructor and Description |
|---|
CuboidRegionSelector(World world,
Vector position1,
Vector position2)
Create a new region selector with the given two positions.
|
EllipsoidRegionSelector(World world,
Vector center,
Vector radius)
Create a new selector.
|
ExtendingCuboidRegionSelector(World world,
Vector position1,
Vector position2)
Create a new selector.
|
SphereRegionSelector(World world,
Vector center,
int radius)
Create a new selector.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
WorldEditExpressionEnvironment.toWorldRel(double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
void |
WorldEditExpressionEnvironment.setCurrentBlock(Vector current) |
| Constructor and Description |
|---|
WorldEditExpressionEnvironment(EditSession editSession,
Vector unit,
Vector zero) |
| Modifier and Type | Method and Description |
|---|---|
PasteBuilder |
PasteBuilder.to(Vector to)
Set the target location.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
RequestSelection.getCenter() |
Vector |
RequestSelection.getMaximumPoint() |
Vector |
RequestSelection.getMinimumPoint() |
| Modifier and Type | Method and Description |
|---|---|
Set<Vector> |
RequestSelection.getChunkCubes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RequestSelection.contains(Vector position) |
void |
RequestSelection.contract(Vector... changes) |
void |
RequestSelection.expand(Vector... changes) |
void |
RequestSelection.shift(Vector change) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
Location.getDirection()
Get the direction vector.
|
Vector |
Location.toVector()
Get a
Vector form of this location's position. |
Vector |
Direction.toVector()
Get the vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Direction |
Direction.findClosest(Vector vector,
int flags)
Find the closest direction to the given direction vector.
|
boolean |
TreeGenerator.generate(EditSession editSession,
Vector position)
Generate a tree.
|
boolean |
TreeGenerator.TreeType.generate(EditSession editSession,
Vector pos) |
Location |
Location.setDirection(Vector direction)
Create a clone of this object with the given direction.
|
| Constructor and Description |
|---|
Location(Extent extent,
double x,
double y,
double z,
Vector direction)
Create a new instance in the given extent with the given coordinates
and the given direction vector.
|
Location(Extent extent,
Vector position)
Create a new instance in the given extent with the given position
vector and a direction vector of 0, 0, 0.
|
Location(Extent extent,
Vector position,
float yaw,
float pitch)
Create a new instance in the given extent with the given position vector
and the given direction vector.
|
Location(Extent extent,
Vector position,
Vector direction)
Create a new instance in the given extent with the given position vector
and the given direction vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
VectorAdapter.deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
AbstractWorld.getMaximumPoint() |
Vector |
AbstractWorld.getMinimumPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractWorld.checkLoadedChunk(Vector pt) |
void |
World.checkLoadedChunk(Vector position)
Load the chunk at the given position if it isn't loaded.
|
boolean |
NullWorld.clearContainerBlockContents(Vector position) |
boolean |
World.clearContainerBlockContents(Vector position)
Clear a chest's contents.
|
void |
NullWorld.dropItem(Vector position,
BaseItemStack item) |
void |
World.dropItem(Vector position,
BaseItemStack item)
Drop one stack of the item at the given position.
|
void |
AbstractWorld.dropItem(Vector pt,
BaseItemStack item,
int times) |
void |
World.dropItem(Vector position,
BaseItemStack item,
int count)
Drop an item at the given position.
|
boolean |
AbstractWorld.generateBigTree(EditSession editSession,
Vector pt) |
boolean |
World.generateBigTree(EditSession editSession,
Vector position)
Deprecated.
Use
#generateTree(TreeType, EditSession, Vector) |
boolean |
AbstractWorld.generateBirchTree(EditSession editSession,
Vector pt) |
boolean |
World.generateBirchTree(EditSession editSession,
Vector position)
Deprecated.
Use
#generateTree(TreeType, EditSession, Vector) |
boolean |
AbstractWorld.generateRedwoodTree(EditSession editSession,
Vector pt) |
boolean |
World.generateRedwoodTree(EditSession editSession,
Vector position)
Deprecated.
Use
#generateTree(TreeType, EditSession, Vector) |
boolean |
AbstractWorld.generateTallRedwoodTree(EditSession editSession,
Vector pt) |
boolean |
World.generateTallRedwoodTree(EditSession editSession,
Vector position)
Deprecated.
Use
#generateTree(TreeType, EditSession, Vector) |
boolean |
AbstractWorld.generateTree(EditSession editSession,
Vector pt) |
boolean |
World.generateTree(EditSession editSession,
Vector position)
Deprecated.
Use
#generateTree(TreeType, EditSession, Vector) |
boolean |
NullWorld.generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector position) |
boolean |
World.generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector position)
Generate a tree at the given position.
|
BaseBlock |
NullWorld.getBlock(Vector position) |
int |
AbstractWorld.getBlockData(Vector pt) |
int |
World.getBlockData(Vector pt)
Deprecated.
|
int |
NullWorld.getBlockLightLevel(Vector position) |
int |
World.getBlockLightLevel(Vector position)
Get the light level at the given block.
|
int |
AbstractWorld.getBlockType(Vector pt) |
int |
World.getBlockType(Vector pt)
Deprecated.
|
BaseBlock |
NullWorld.getLazyBlock(Vector position) |
boolean |
AbstractWorld.playEffect(Vector position,
int type,
int data) |
boolean |
World.playEffect(Vector position,
int type,
int data)
Play the given effect.
|
boolean |
AbstractWorld.queueBlockBreakEffect(Platform server,
Vector position,
int blockId,
double priority) |
boolean |
World.queueBlockBreakEffect(Platform server,
Vector position,
int blockId,
double priority)
Queue a block break effect.
|
boolean |
AbstractWorld.setBlock(Vector pt,
BaseBlock block) |
boolean |
NullWorld.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
boolean |
World.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight)
Similar to
OutputExtent.setBlock(Vector, BaseBlock) but a
notifyAndLight parameter indicates whether adjacent blocks
should be notified that changes have been made and lighting operations
should be executed. |
void |
AbstractWorld.setBlockData(Vector position,
int data) |
void |
World.setBlockData(Vector position,
int data)
Deprecated.
|
boolean |
AbstractWorld.setBlockType(Vector position,
int type) |
boolean |
World.setBlockType(Vector position,
int type)
Deprecated.
|
boolean |
AbstractWorld.setTypeIdAndData(Vector position,
int type,
int data) |
boolean |
World.setTypeIdAndData(Vector position,
int type,
int data)
Deprecated.
|
void |
AbstractWorld.simulateBlockMine(Vector pt) |
void |
World.simulateBlockMine(Vector position)
Simulate a block being mined at the given position.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
OldChunk.getBlock(Vector position) |
BaseBlock |
Chunk.getBlock(Vector position)
Get a block;
|
BaseBlock |
AnvilChunk.getBlock(Vector position) |
int |
OldChunk.getBlockData(Vector position) |
int |
Chunk.getBlockData(Vector position)
Get the block data of a block.
|
int |
AnvilChunk.getBlockData(Vector position) |
int |
OldChunk.getBlockID(Vector position) |
int |
Chunk.getBlockID(Vector position)
Get the block ID of a block.
|
int |
AnvilChunk.getBlockID(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
StateValue.getDirection()
Return the direction associated with this value.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockVector2D |
ChunkStore.toChunk(Vector position)
Convert a position to a chunk.
|
Copyright © 2010-2014. All Rights Reserved.