Package net.minecraft.state.property
Class DirectionProperty
public class DirectionProperty extends EnumProperty<Direction>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.class_4933<T extends Comparable<T>> -
Constructor Summary
Constructors Modifier Constructor Description protectedDirectionProperty(String name, Collection<Direction> values) -
Method Summary
Modifier and Type Method Description static DirectionPropertyof(String name, Collection<Direction> values)Creates a direction property which only supports specific valuesstatic DirectionPropertyof(String name, Predicate<Direction> filter)Creates a direction property.static DirectionPropertyof(String name, Direction[] values)Creates a direction property which only supports specific valuesMethods inherited from class net.minecraft.state.property.EnumProperty
computeHashCode, equals, getValues, name, of, of, of, of, parseMethods inherited from class net.minecraft.state.property.Property
getName, getType, hashCode, method_30041, method_30042, method_30043, method_30044, toString
-
Constructor Details
-
Method Details
-
of
Creates a direction property.- Parameters:
name- the name of this propertyfilter- a filter which specifies if a value is allowed
-
of
Creates a direction property which only supports specific values- Parameters:
name- the name of this propertyvalues- the values this property can have
-
of
Creates a direction property which only supports specific values- Parameters:
name- the name of this propertyvalues- the values this property can have
-