Package net.minecraft.util
Enum EnumFacing.Plane
- java.lang.Object
-
- java.lang.Enum<EnumFacing.Plane>
-
- net.minecraft.util.EnumFacing.Plane
-
- All Implemented Interfaces:
Predicate<EnumFacing>
,java.io.Serializable
,java.lang.Comparable<EnumFacing.Plane>
,java.lang.Iterable<EnumFacing>
- Enclosing class:
- EnumFacing
public static enum EnumFacing.Plane extends java.lang.Enum<EnumFacing.Plane> implements Predicate<EnumFacing>, java.lang.Iterable<EnumFacing>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTAL
VERTICAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(EnumFacing enumfacing)
Returns the result of applying this predicate toinput
.EnumFacing[]
facings()
java.util.Iterator<EnumFacing>
iterator()
EnumFacing
random(EaglercraftRandom rand)
+ Choose a random Facing using the given Randomstatic EnumFacing.Plane
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnumFacing.Plane[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HORIZONTAL
public static final EnumFacing.Plane HORIZONTAL
-
VERTICAL
public static final EnumFacing.Plane VERTICAL
-
-
Method Detail
-
values
public static EnumFacing.Plane[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EnumFacing.Plane c : EnumFacing.Plane.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumFacing.Plane valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
facings
public EnumFacing[] facings()
-
random
public EnumFacing random(EaglercraftRandom rand)
+ Choose a random Facing using the given Random
-
apply
public boolean apply(EnumFacing enumfacing)
Description copied from interface:Predicate
Returns the result of applying this predicate toinput
. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatpredicate.apply(a) == predicate.apply(b))
.
- Specified by:
apply
in interfacePredicate<EnumFacing>
-
iterator
public java.util.Iterator<EnumFacing> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<EnumFacing>
-
-