Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -9,7 +9,7 @@ import org.bukkit.configuration.serialization.ConfigurationSerialization;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class Wrapper<T extends Map<String, ?> & Serializable> implements Serializable {
|
||||
final class Wrapper<T extends Map<String, ?> & Serializable> implements Serializable {
|
||||
private static final long serialVersionUID = -986209235411767547L;
|
||||
|
||||
final T map;
|
||||
|
||||
@@ -4,7 +4,7 @@ package org.bukkit.util.noise;
|
||||
* Base class for all noise generators
|
||||
*/
|
||||
public abstract class NoiseGenerator {
|
||||
protected final int perm[] = new int[512];
|
||||
protected final int[] perm= new int[512];
|
||||
protected double offsetX;
|
||||
protected double offsetY;
|
||||
protected double offsetZ;
|
||||
|
||||
@@ -11,13 +11,13 @@ import org.jetbrains.annotations.NotNull;
|
||||
* different results
|
||||
*/
|
||||
public class PerlinNoiseGenerator extends NoiseGenerator {
|
||||
protected static final int grad3[][] = {{1, 1, 0}, {-1, 1, 0}, {1, -1, 0}, {-1, -1, 0},
|
||||
protected static final int[][] grad3 = {{1, 1, 0}, {-1, 1, 0}, {1, -1, 0}, {-1, -1, 0},
|
||||
{1, 0, 1}, {-1, 0, 1}, {1, 0, -1}, {-1, 0, -1},
|
||||
{0, 1, 1}, {0, -1, 1}, {0, 1, -1}, {0, -1, -1}};
|
||||
private static final PerlinNoiseGenerator instance = new PerlinNoiseGenerator();
|
||||
|
||||
protected PerlinNoiseGenerator() {
|
||||
int p[] = {151, 160, 137, 91, 90, 15, 131, 13, 201,
|
||||
int[] p = {151, 160, 137, 91, 90, 15, 131, 13, 201,
|
||||
95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37,
|
||||
240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62,
|
||||
94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56,
|
||||
|
||||
@@ -25,7 +25,7 @@ public class SimplexNoiseGenerator extends PerlinNoiseGenerator {
|
||||
protected static final double G42 = G4 * 2.0;
|
||||
protected static final double G43 = G4 * 3.0;
|
||||
protected static final double G44 = G4 * 4.0 - 1.0;
|
||||
protected static final int grad4[][] = {{0, 1, 1, 1}, {0, 1, 1, -1}, {0, 1, -1, 1}, {0, 1, -1, -1},
|
||||
protected static final int[][] grad4 = {{0, 1, 1, 1}, {0, 1, 1, -1}, {0, 1, -1, 1}, {0, 1, -1, -1},
|
||||
{0, -1, 1, 1}, {0, -1, 1, -1}, {0, -1, -1, 1}, {0, -1, -1, -1},
|
||||
{1, 0, 1, 1}, {1, 0, 1, -1}, {1, 0, -1, 1}, {1, 0, -1, -1},
|
||||
{-1, 0, 1, 1}, {-1, 0, 1, -1}, {-1, 0, -1, 1}, {-1, 0, -1, -1},
|
||||
@@ -33,7 +33,7 @@ public class SimplexNoiseGenerator extends PerlinNoiseGenerator {
|
||||
{-1, 1, 0, 1}, {-1, 1, 0, -1}, {-1, -1, 0, 1}, {-1, -1, 0, -1},
|
||||
{1, 1, 1, 0}, {1, 1, -1, 0}, {1, -1, 1, 0}, {1, -1, -1, 0},
|
||||
{-1, 1, 1, 0}, {-1, 1, -1, 0}, {-1, -1, 1, 0}, {-1, -1, -1, 0}};
|
||||
protected static final int simplex[][] = {
|
||||
protected static final int[][] simplex = {
|
||||
{0, 1, 2, 3}, {0, 1, 3, 2}, {0, 0, 0, 0}, {0, 2, 3, 1}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {1, 2, 3, 0},
|
||||
{0, 2, 1, 3}, {0, 0, 0, 0}, {0, 3, 1, 2}, {0, 3, 2, 1}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {1, 3, 2, 0},
|
||||
{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0},
|
||||
|
||||
Reference in New Issue
Block a user