public enum ScaleLayer extends Enum<ScaleLayer> implements ParentedLayer
| Modifier and Type | Method and Description |
|---|---|
protected int |
sample(LayerSampleContext<?> context,
int int2,
int int3,
int int4,
int int5) |
int |
sample(LayerSampleContext<?> context,
LayerSampler parent,
int x,
int z) |
int |
transformX(int x) |
int |
transformZ(int y) |
static ScaleLayer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleLayer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreatepublic static final ScaleLayer NORMAL
public static final ScaleLayer FUZZY
public static ScaleLayer[] values()
for (ScaleLayer c : ScaleLayer.values()) System.out.println(c);
public static ScaleLayer valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int transformX(int x)
transformX in interface CoordinateTransformerpublic int transformZ(int y)
transformZ in interface CoordinateTransformerpublic int sample(LayerSampleContext<?> context, LayerSampler parent, int x, int z)
sample in interface ParentedLayerprotected int sample(LayerSampleContext<?> context, int int2, int int3, int int4, int int5)