Generic cleaning

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2012-01-15 14:37:30 +01:00
parent 8377ee22f8
commit 4c80a49933
61 changed files with 245 additions and 272 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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.
*

View File

@@ -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;

View File

@@ -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
*/