| Modifier and Type | Method and Description |
|---|---|
Vector2D |
YAMLNode.getVector2d(String path)
Gets a 2D vector at a location.
|
| Modifier and Type | Method and Description |
|---|---|
List<Vector2D> |
YAMLNode.getVector2dList(String path,
List<Vector2D> def)
Gets a list of 2D vectors.
|
| Modifier and Type | Method and Description |
|---|---|
List<Vector2D> |
YAMLNode.getVector2dList(String path,
List<Vector2D> def)
Gets a list of 2D vectors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BlockVector2D
Extension of
Vector2D that that compares with other instances
using integer components. |
class |
BlockWorldVector2D
Deprecated.
Replace all uses of
WorldVectors with Locations |
class |
WorldVector2D
Deprecated.
Use
Location wherever possible |
| Modifier and Type | Field and Description |
|---|---|
static Vector2D |
Vector2D.ONE |
static Vector2D |
Vector2D.UNIT_X |
static Vector2D |
Vector2D.UNIT_Z |
static Vector2D |
Vector2D.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2D.add(double x,
double z)
Add another vector to this vector and return the result as a new vector.
|
Vector2D |
Vector2D.add(int x,
int z)
Add another vector to this vector and return the result as a new vector.
|
Vector2D |
Vector2D.add(Vector2D... others)
Add a list of vectors to this vector and return the
result as a new vector.
|
Vector2D |
Vector2D.add(Vector2D other)
Add another vector to this vector and return the result as a new vector.
|
Vector2D |
Vector2D.ceil()
Rounds all components up.
|
Vector2D |
Vector2D.divide(double n)
Perform scalar division and return a new vector.
|
Vector2D |
Vector2D.divide(double x,
double z)
Divide this vector by another vector on each component.
|
Vector2D |
Vector2D.divide(float n)
Perform scalar division and return a new vector.
|
Vector2D |
Vector2D.divide(int n)
Perform scalar division and return a new vector.
|
Vector2D |
Vector2D.divide(int x,
int z)
Divide this vector by another vector on each component.
|
Vector2D |
Vector2D.divide(Vector2D other)
Divide this vector by another vector on each component.
|
Vector2D |
Vector2D.floor()
Floors the values of all components.
|
static Vector2D |
Vector2D.getMaximum(Vector2D v1,
Vector2D v2)
Gets the maximum components of two vectors.
|
static Vector2D |
Vector2D.getMinimum(Vector2D v1,
Vector2D v2)
Gets the minimum components of two vectors.
|
Vector2D |
Vector2D.multiply(double n)
Perform scalar multiplication and return a new vector.
|
Vector2D |
Vector2D.multiply(double x,
double z)
Multiply this vector by another vector on each component.
|
Vector2D |
Vector2D.multiply(float n)
Perform scalar multiplication and return a new vector.
|
Vector2D |
Vector2D.multiply(int n)
Perform scalar multiplication and return a new vector.
|
Vector2D |
Vector2D.multiply(int x,
int z)
Multiply this vector by another vector on each component.
|
Vector2D |
Vector2D.multiply(Vector2D... others)
Multiply this vector by zero or more vectors on each component.
|
Vector2D |
Vector2D.multiply(Vector2D other)
Multiply this vector by another vector on each component.
|
Vector2D |
Vector2D.normalize()
Get the normalized vector, which is the vector divided by its
length, as a new vector.
|
Vector2D |
Vector2D.positive()
Returns a vector with the absolute values of the components of
this vector.
|
Vector2D |
Vector2D.round()
Rounds all components to the closest integer.
|
Vector2D |
Vector2D.setX(double x)
Set the X coordinate.
|
Vector2D |
Vector2D.setX(int x)
Set the X coordinate.
|
Vector2D |
Vector2D.setZ(double z)
Set the Z coordinate.
|
Vector2D |
Vector2D.setZ(int z)
Set the Z coordinate.
|
Vector2D |
Vector2D.subtract(double x,
double z)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector2D |
Vector2D.subtract(int x,
int z)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector2D |
Vector2D.subtract(Vector2D... others)
Subtract a list of vectors from this vector and return the result
as a new vector.
|
Vector2D |
Vector2D.subtract(Vector2D other)
Subtract another vector from this vector and return the result
as a new vector.
|
Vector2D |
Vector.toVector2D()
Creates a 2D vector by dropping the Y component from this vector.
|
Vector2D |
Vector2D.transform2D(double angle,
double aboutX,
double aboutZ,
double translateX,
double translateZ)
Perform a 2D transformation on this vector and return a new one.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2D.add(Vector2D... others)
Add a list of vectors to this vector and return the
result as a new vector.
|
Vector2D |
Vector2D.add(Vector2D other)
Add another vector to this vector and return the result as a new vector.
|
boolean |
Vector2D.containedWithin(Vector2D min,
Vector2D max)
Checks to see if a vector is contained with another.
|
boolean |
Vector2D.containedWithinBlock(Vector2D min,
Vector2D max)
Checks to see if a vector is contained with another.
|
double |
Vector2D.distance(Vector2D other)
Get the distance between this vector and another vector.
|
double |
Vector2D.distanceSq(Vector2D other)
Get the distance between this vector and another vector, squared.
|
Vector2D |
Vector2D.divide(Vector2D other)
Divide this vector by another vector on each component.
|
double |
Vector2D.dot(Vector2D other)
Gets the dot product of this and another vector.
|
BaseBiome |
EditSession.getBiome(Vector2D position) |
static Vector2D |
Vector2D.getMaximum(Vector2D v1,
Vector2D v2)
Gets the maximum components of two vectors.
|
static Vector2D |
Vector2D.getMinimum(Vector2D v1,
Vector2D v2)
Gets the minimum components of two vectors.
|
boolean |
Vector2D.isCollinearWith(Vector2D other)
Returns whether this vector is collinear with another vector.
|
Vector2D |
Vector2D.multiply(Vector2D... others)
Multiply this vector by zero or more vectors on each component.
|
Vector2D |
Vector2D.multiply(Vector2D other)
Multiply this vector by another vector on each component.
|
boolean |
EditSession.setBiome(Vector2D position,
BaseBiome biome) |
Vector2D |
Vector2D.subtract(Vector2D... others)
Subtract a list of vectors from this vector and return the result
as a new vector.
|
Vector2D |
Vector2D.subtract(Vector2D other)
Subtract another vector from this vector and return the result
as a new vector.
|
| Constructor and Description |
|---|
BlockVector2D(Vector2D position)
Construct an instance from another instance.
|
BlockWorldVector2D(LocalWorld world,
Vector2D position)
Deprecated.
Construct a new instance.
|
Vector2D(Vector2D other)
Copy another vector.
|
WorldVector2D(LocalWorld world,
Vector2D pt)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBiome |
BukkitWorld.getBiome(Vector2D position) |
boolean |
BukkitWorld.setBiome(Vector2D position,
BaseBiome biome) |
| Modifier and Type | Method and Description |
|---|---|
BaseBiome |
NullExtent.getBiome(Vector2D position) |
BaseBiome |
AbstractDelegateExtent.getBiome(Vector2D position) |
BaseBiome |
InputExtent.getBiome(Vector2D position)
Get the biome at the given location.
|
boolean |
NullExtent.setBiome(Vector2D position,
BaseBiome biome) |
boolean |
OutputExtent.setBiome(Vector2D position,
BaseBiome biome)
Set the biome.
|
boolean |
AbstractDelegateExtent.setBiome(Vector2D position,
BaseBiome biome) |
| Modifier and Type | Method and Description |
|---|---|
BaseBiome |
BlockArrayClipboard.getBiome(Vector2D position) |
boolean |
BlockArrayClipboard.setBiome(Vector2D position,
BaseBiome biome) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FlatRegionMaskingFilter.apply(Vector2D position) |
boolean |
FlatRegionFunction.apply(Vector2D position)
Apply the function to the given position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BiomeReplace.apply(Vector2D position) |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
OffsetMask2D.getOffset()
Get the offset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OffsetMask2D.setOffset(Vector2D offset)
Set the offset.
|
boolean |
OffsetMask2D.test(Vector2D vector) |
boolean |
MaskUnion2D.test(Vector2D vector) |
boolean |
ExpressionMask2D.test(Vector2D vector) |
boolean |
BiomeMask2D.test(Vector2D vector) |
boolean |
NoiseFilter2D.test(Vector2D pos) |
boolean |
MaskIntersection2D.test(Vector2D vector) |
boolean |
Mask2D.test(Vector2D vector)
Returns true if the criteria is met.
|
| Constructor and Description |
|---|
OffsetMask2D(Mask2D mask,
Vector2D offset)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
FlatRegionOffset.getOffset()
Get the offset that is added to the position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FlatRegionOffset.apply(Vector2D position) |
void |
FlatRegionOffset.setOffset(Vector2D offset)
Set the offset that is added to the position.
|
| Constructor and Description |
|---|
FlatRegionOffset(Vector2D offset,
FlatRegionFunction function)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBiome |
LocalWorldAdapter.getBiome(Vector2D position) |
boolean |
LocalWorldAdapter.setBiome(Vector2D position,
BaseBiome biome) |
| Modifier and Type | Field and Description |
|---|---|
protected Vector2D |
SelectionCylinderEvent.radius |
| Constructor and Description |
|---|
SelectionCylinderEvent(Vector pos,
Vector2D radius) |
SelectionPoint2DEvent(int id,
Vector2D pos,
int area) |
| Modifier and Type | Method and Description |
|---|---|
static List<BlockVector2D> |
Polygons.polygonizeCylinder(Vector2D center,
Vector2D radius,
int maxPoints)
Calculates the polygon shape of a cylinder which can then be used for e.g.
|
| Modifier and Type | Method and Description |
|---|---|
float |
RandomNoise.noise(Vector2D position) |
float |
NoiseGenerator.noise(Vector2D position)
Get the noise value for the given position.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
CylinderRegion.getRadius()
Returns the radius of the cylinder
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vector2D> |
CuboidRegion.asFlatRegion() |
Iterable<Vector2D> |
FlatRegion.asFlatRegion()
Get this region as an iterable flat region.
|
Iterable<Vector2D> |
Polygonal2DRegion.asFlatRegion() |
Iterable<Vector2D> |
CylinderRegion.asFlatRegion() |
Set<Vector2D> |
NullRegion.getChunks() |
Set<Vector2D> |
CuboidRegion.getChunks() |
Set<Vector2D> |
EllipsoidRegion.getChunks() |
Set<Vector2D> |
AbstractRegion.getChunks()
Get a list of chunks.
|
Set<Vector2D> |
Region.getChunks()
Get a list of chunks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Polygonal2DRegion.addPoint(Vector2D position)
Add a point to the list.
|
void |
CylinderRegion.extendRadius(Vector2D minRadius)
Extends the radius to be at least the given radius
|
void |
CylinderRegion.setCenter(Vector2D center)
Sets the main center point of the region
|
void |
CylinderRegion.setRadius(Vector2D radius)
Sets the radius of the cylinder
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
FlatRegionIterator.next() |
| Constructor and Description |
|---|
FlatRegion3DIterator(FlatRegion region,
Iterator<Vector2D> flatIterator) |
| Constructor and Description |
|---|
CylinderRegionSelector(World world,
Vector2D center,
Vector2D radius,
int minY,
int maxY)
Create a new selector.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<Vector2D> |
ArbitraryBiomeShape.getExtent() |
| Modifier and Type | Method and Description |
|---|---|
Set<Vector2D> |
RequestSelection.getChunks() |
| Modifier and Type | Method and Description |
|---|---|
BaseBiome |
NullWorld.getBiome(Vector2D position) |
boolean |
NullWorld.setBiome(Vector2D position,
BaseBiome biome) |
| Modifier and Type | Method and Description |
|---|---|
List<Vector2D> |
SnapshotRestore.getErrorChunks()
Get a list of the chunks that could not have been loaded for other
reasons.
|
List<Vector2D> |
SnapshotRestore.getMissingChunks()
Get a list of the missing chunks.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
MissingChunkException.getChunkPosition()
Get chunk position in question.
|
| Modifier and Type | Method and Description |
|---|---|
Chunk |
ChunkStore.getChunk(Vector2D position,
World world)
Get a chunk at a location.
|
InputStream |
McRegionReader.getChunkInputStream(Vector2D position)
Gets the uncompressed data input stream for a chunk.
|
CompoundTag |
McRegionChunkStore.getChunkTag(Vector2D position,
World world) |
CompoundTag |
LegacyChunkStore.getChunkTag(Vector2D position,
World world) |
abstract CompoundTag |
ChunkStore.getChunkTag(Vector2D position,
World world)
Get the tag for a chunk.
|
static String |
McRegionChunkStore.getFilename(Vector2D position)
Get the filename of a region file.
|
static String |
LegacyChunkStore.getFilename(Vector2D position)
Get the filename of a chunk, using the system's default path
separator.
|
static String |
LegacyChunkStore.getFilename(Vector2D position,
String separator)
Get the filename of a chunk.
|
protected McRegionReader |
McRegionChunkStore.getReader(Vector2D pos,
String worldname) |
| Constructor and Description |
|---|
MissingChunkException(Vector2D position) |
Copyright © 2010-2014. All Rights Reserved.