| 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 supports being compared as ints (for accuracy).
|
class |
BlockWorldVector2D |
class |
WorldVector2D |
| 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)
Adds two points.
|
Vector2D |
Vector2D.add(int x,
int z)
Adds two points.
|
Vector2D |
Vector2D.add(Vector2D... others)
Adds points.
|
Vector2D |
Vector2D.add(Vector2D other)
Adds two points.
|
Vector2D |
Vector2D.ceil()
Rounds all components up.
|
Vector2D |
Vector2D.divide(double n)
Scalar division.
|
Vector2D |
Vector2D.divide(double x,
double z)
Component-wise division
|
Vector2D |
Vector2D.divide(float n)
Scalar division.
|
Vector2D |
Vector2D.divide(int n)
Scalar division.
|
Vector2D |
Vector2D.divide(int x,
int z)
Component-wise division
|
Vector2D |
Vector2D.divide(Vector2D other)
Component-wise division
|
Vector2D |
Vector2D.floor()
Rounds all components down.
|
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)
Scalar multiplication.
|
Vector2D |
Vector2D.multiply(double x,
double z)
Component-wise multiplication
|
Vector2D |
Vector2D.multiply(float n)
Scalar multiplication.
|
Vector2D |
Vector2D.multiply(int n)
Scalar multiplication.
|
Vector2D |
Vector2D.multiply(int x,
int z)
Component-wise multiplication
|
Vector2D |
Vector2D.multiply(Vector2D... others)
Component-wise multiplication
|
Vector2D |
Vector2D.multiply(Vector2D other)
Component-wise multiplication
|
Vector2D |
Vector2D.normalize()
Get the normalized 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.
Components < 0.5 are rounded down, otherwise up |
Vector2D |
Vector2D.setX(double x)
Set X.
|
Vector2D |
Vector2D.setX(int x)
Set X.
|
Vector2D |
Vector2D.setZ(double z)
Set Z.
|
Vector2D |
Vector2D.setZ(int z)
Set Z.
|
Vector2D |
Vector2D.subtract(double x,
double z)
Subtract two points.
|
Vector2D |
Vector2D.subtract(int x,
int z)
Subtract two points.
|
Vector2D |
Vector2D.subtract(Vector2D... others)
Subtract points.
|
Vector2D |
Vector2D.subtract(Vector2D other)
Subtracts two points.
|
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)
2D transformation.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2D.add(Vector2D... others)
Adds points.
|
Vector2D |
Vector2D.add(Vector2D other)
Adds two points.
|
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 pt)
Get the distance away from a point.
|
double |
Vector2D.distanceSq(Vector2D pt)
Get the distance away from a point, squared.
|
Vector2D |
Vector2D.divide(Vector2D other)
Component-wise division
|
double |
Vector2D.dot(Vector2D other)
Gets the dot product of this and another vector.
|
abstract BiomeType |
LocalWorld.getBiome(Vector2D pt)
Get biome type
|
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) |
Vector2D |
Vector2D.multiply(Vector2D... others)
Component-wise multiplication
|
Vector2D |
Vector2D.multiply(Vector2D other)
Component-wise multiplication
|
abstract void |
LocalWorld.setBiome(Vector2D pt,
BiomeType biome)
Set the biome type
|
Vector2D |
Vector2D.subtract(Vector2D... others)
Subtract points.
|
Vector2D |
Vector2D.subtract(Vector2D other)
Subtracts two points.
|
| Modifier and Type | Method and Description |
|---|---|
int |
EditSession.makeForest(Iterable<Vector2D> it,
int upperY,
int lowerY,
double density,
TreeGenerator treeGenerator)
Deprecated.
Use
ForestGenerator with a
FlatRegionApplicator |
| Constructor and Description |
|---|
BlockVector2D(Vector2D pt)
Construct the Vector object.
|
BlockWorldVector2D(LocalWorld world,
Vector2D pt) |
Vector2D(Vector2D pt)
Construct the Vector2D object.
|
WorldVector2D(LocalWorld world,
Vector2D pt) |
| Modifier and Type | Method and Description |
|---|---|
BiomeType |
BukkitWorld.getBiome(Vector2D pt)
Get biome type
|
void |
BukkitWorld.setBiome(Vector2D pt,
BiomeType 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 |
|---|---|
Vector2D |
MissingChunkException.getChunkPosition()
Get chunk position in question.
|
| Modifier and Type | Method and Description |
|---|---|
Chunk |
ChunkStore.getChunk(Vector2D pos,
LocalWorld world)
Get a chunk at a location.
|
InputStream |
McRegionReader.getChunkInputStream(Vector2D pos)
Gets the uncompressed data input stream for a chunk.
|
CompoundTag |
McRegionChunkStore.getChunkTag(Vector2D pos,
LocalWorld world) |
CompoundTag |
LegacyChunkStore.getChunkTag(Vector2D pos,
LocalWorld world)
Get the tag for a chunk.
|
abstract CompoundTag |
ChunkStore.getChunkTag(Vector2D pos,
LocalWorld world)
Get the tag for a chunk.
|
static String |
McRegionChunkStore.getFilename(Vector2D pos)
Get the filename of a region file.
|
static String |
LegacyChunkStore.getFilename(Vector2D pos)
Get the filename of a chunk, using the system's default path
separator.
|
static String |
LegacyChunkStore.getFilename(Vector2D pos,
String separator)
Get the filename of a chunk.
|
protected McRegionReader |
McRegionChunkStore.getReader(Vector2D pos,
String worldname) |
| Constructor and Description |
|---|
MissingChunkException(Vector2D pos) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BiomeTypeMask.matches2D(EditSession editSession,
Vector2D pos) |
| Modifier and Type | Method and Description |
|---|---|
float |
RandomNoise.noise(Vector2D position) |
float |
NoiseGenerator.noise(Vector2D position)
Get the noise for the given position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GroundFindingFunction.apply(Vector2D pt) |
boolean |
FlatRegionFunction.apply(Vector2D pt)
Apply the function to the given point.
|
protected boolean |
GroundFindingFunction.shouldContinue(Vector2D pt)
Returns whether a search for the ground should be performed for the given
column.
|
protected boolean |
GroundScatterFunction.shouldContinue(Vector2D pt) |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
CylinderRegion.getRadius()
Returns the radius of the cylinder
|
Vector2D |
FlatRegionIterator.next() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vector2D> |
CuboidRegion.asFlatRegion() |
Iterable<Vector2D> |
Polygonal2DRegion.asFlatRegion() |
Iterable<Vector2D> |
CylinderRegion.asFlatRegion() |
Iterable<Vector2D> |
FlatRegion.asFlatRegion() |
Set<Vector2D> |
CuboidRegion.getChunks()
Get a list of chunks that this region is within.
|
Set<Vector2D> |
EllipsoidRegion.getChunks()
Get a list of chunks that this region is within.
|
Set<Vector2D> |
Region.getChunks()
Get a list of chunks.
|
Set<Vector2D> |
AbstractRegion.getChunks()
Get a list of chunks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Polygonal2DRegion.addPoint(Vector2D pt)
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)
Construct the region.
|
CylinderRegionSelector(LocalWorld world,
Vector2D center,
Vector2D radius,
int minY,
int maxY) |
| Constructor and Description |
|---|
FlatRegion3DIterator(FlatRegion region,
Iterator<Vector2D> flatIterator) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<Vector2D> |
ArbitraryBiomeShape.getExtent() |
| 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.
|
Copyright © 2010-2014. All Rights Reserved.