@@ -259,7 +259,6 @@ public class BlockIterator implements Iterator<Block> {
|
||||
*
|
||||
* @param loc The location for the start of the ray trace
|
||||
* @param yOffset The trace begins vertically offset from the start vector by this value
|
||||
*
|
||||
*/
|
||||
|
||||
public BlockIterator(Location loc, double yOffset) {
|
||||
@@ -270,7 +269,6 @@ public class BlockIterator implements Iterator<Block> {
|
||||
* Constructs the BlockIterator.
|
||||
*
|
||||
* @param loc The location for the start of the ray trace
|
||||
*
|
||||
*/
|
||||
|
||||
public BlockIterator(Location loc) {
|
||||
@@ -293,7 +291,6 @@ public class BlockIterator implements Iterator<Block> {
|
||||
* Constructs the BlockIterator.
|
||||
*
|
||||
* @param entity Information from the entity is used to set up the trace
|
||||
*
|
||||
*/
|
||||
|
||||
public BlockIterator(LivingEntity entity) {
|
||||
@@ -302,7 +299,6 @@ public class BlockIterator implements Iterator<Block> {
|
||||
|
||||
/**
|
||||
* Returns true if the iteration has more elements
|
||||
*
|
||||
*/
|
||||
|
||||
public boolean hasNext() {
|
||||
|
||||
@@ -279,7 +279,7 @@ public class Vector implements Cloneable, ConfigurationSerializable {
|
||||
/**
|
||||
* Calculates the cross product of this vector with another. The cross
|
||||
* product is defined as:
|
||||
*
|
||||
* <p />
|
||||
* x = y1 * z2 - y2 * z1<br/>
|
||||
* y = z1 * x2 - z2 * x1<br/>
|
||||
* z = x1 * y2 - x2 * y1
|
||||
@@ -507,7 +507,7 @@ public class Vector implements Cloneable, ConfigurationSerializable {
|
||||
|
||||
/**
|
||||
* Checks to see if two objects are equal.
|
||||
*
|
||||
* <p />
|
||||
* Only two Vectors can ever return true. This method uses a fuzzy match
|
||||
* to account for floating point errors. The epsilon can be retrieved
|
||||
* with epsilon.
|
||||
@@ -560,7 +560,6 @@ public class Vector implements Cloneable, ConfigurationSerializable {
|
||||
|
||||
/**
|
||||
* Returns this vector's components as x,y,z.
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.yaml.snakeyaml.representer.Representer;
|
||||
* a file and call its load() method. For specifying node paths in the
|
||||
* various get*() methods, they support SK's path notation, allowing you to
|
||||
* select child nodes by delimiting node names with periods.
|
||||
*
|
||||
* <p>
|
||||
* For example, given the following configuration file:
|
||||
* </p>
|
||||
@@ -48,7 +47,6 @@ import org.yaml.snakeyaml.representer.Representer;
|
||||
* eats:
|
||||
* babies: true
|
||||
* </pre>
|
||||
*
|
||||
* <p>
|
||||
* Calling code could access sturmeh's baby eating state by using <code>getBoolean("sturmeh.eats.babies", false)</code>. For lists, there are methods such as <code>getStringList</code> that will return a type safe list.
|
||||
*
|
||||
|
||||
@@ -15,7 +15,7 @@ public abstract class OctaveGenerator {
|
||||
|
||||
/**
|
||||
* Sets the scale used for all coordinates passed to this generator.
|
||||
*
|
||||
* <p />
|
||||
* This is the equivalent to setting each coordinate to the specified value.
|
||||
*
|
||||
* @param scale New value to scale each coordinate by
|
||||
@@ -176,8 +176,8 @@ public abstract class OctaveGenerator {
|
||||
y *= yScale;
|
||||
z *= zScale;
|
||||
|
||||
for (int i = 0; i < octaves.length; i++) {
|
||||
result += octaves[i].noise(x * freq, y * freq, z * freq) * amp;
|
||||
for (NoiseGenerator octave : octaves) {
|
||||
result += octave.noise(x * freq, y * freq, z * freq) * amp;
|
||||
max += amp;
|
||||
freq *= frequency;
|
||||
amp *= amplitude;
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.bukkit.World;
|
||||
|
||||
/**
|
||||
* Generates simplex-based noise.
|
||||
*
|
||||
* <p />
|
||||
* This is a modified version of the freely published version in the paper by
|
||||
* Stefan Gustavson at http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user