Package net.minecraft.state.property
Class DirectionProperty
Represents a property that has direction values.
See Properties for example
usages.
- Mappings:
Namespace Name named net/minecraft/state/property/DirectionPropertyintermediary net/minecraft/class_2753official dtw
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDirectionProperty(String name, Collection<Direction> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectionPropertyCreates a direction property with all directions as values.static DirectionPropertyof(String name, Collection<Direction> values) Creates a direction property with the given values.static DirectionPropertyCreates a direction property with the values allowed by the given filter out of all 6 directions.static DirectionPropertyCreates a direction property with the given values.Methods 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
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
-
Constructor Details
-
DirectionProperty
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/state/property/DirectionProperty;<init>(Ljava/lang/String;Ljava/util/Collection;)Vintermediary <init>Lnet/minecraft/class_2753;<init>(Ljava/lang/String;Ljava/util/Collection;)Vofficial <init>Ldtw;<init>(Ljava/lang/String;Ljava/util/Collection;)V
-
-
Method Details
-
of
Creates a direction property with all directions as values.- Parameters:
name- the name of the property; see the note on the name- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/DirectionProperty;intermediary method_35305Lnet/minecraft/class_2753;method_35305(Ljava/lang/String;)Lnet/minecraft/class_2753;official aLdtw;a(Ljava/lang/String;)Ldtw;
-
of
Creates a direction property with the values allowed by the given filter out of all 6 directions.- Parameters:
name- the name of the property; see the note on the namefilter- the filter which specifies if a value is allowed; required to allow 2 or more values- See Also:
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/state/property/DirectionProperty;intermediary method_11844Lnet/minecraft/class_2753;method_11844(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/class_2753;official aLdtw;a(Ljava/lang/String;Ljava/util/function/Predicate;)Ldtw;
-
of
Creates a direction property with the given values.- Parameters:
name- the name of the property; see the note on the namevalues- the values the property contains; required to have 2 or more values- See Also:
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;[Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/DirectionProperty;intermediary method_11845Lnet/minecraft/class_2753;method_11845(Ljava/lang/String;[Lnet/minecraft/class_2350;)Lnet/minecraft/class_2753;official aLdtw;a(Ljava/lang/String;[Lji;)Ldtw;
-
of
Creates a direction property with the given values.- Parameters:
name- the name of the property; see the note on the namevalues- the values the property contains; required to have 2 or more values- See Also:
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/state/property/DirectionProperty;intermediary method_11843Lnet/minecraft/class_2753;method_11843(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/class_2753;official aLdtw;a(Ljava/lang/String;Ljava/util/Collection;)Ldtw;
-