Package net.minecraft.state.property
Class DirectionProperty
- Mappings:
Namespace Name official ckrintermediary net/minecraft/class_2753named net/minecraft/state/property/DirectionProperty
-
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 DirectionPropertystatic DirectionPropertyof(String name, Collection<Direction> values)Creates a direction property which only supports specific valuesstatic DirectionPropertyCreates a direction property.static DirectionPropertyCreates 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
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, method_35307, stream, toString
-
Constructor Details
-
DirectionProperty
- Mappings:
Namespace Name Mixin selector official <init>Lckr;<init>(Ljava/lang/String;Ljava/util/Collection;)Vintermediary <init>Lnet/minecraft/class_2753;<init>(Ljava/lang/String;Ljava/util/Collection;)Vnamed <init>Lnet/minecraft/state/property/DirectionProperty;<init>(Ljava/lang/String;Ljava/util/Collection;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/String;)Lckr;intermediary method_35305Lnet/minecraft/class_2753;method_35305(Ljava/lang/String;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/DirectionProperty;
-
of
Creates a direction property.- Parameters:
name- the name of this propertyfilter- a filter which specifies if a value is allowed- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/String;Ljava/util/function/Predicate;)Lckr;intermediary method_11844Lnet/minecraft/class_2753;method_11844(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/state/property/DirectionProperty;
-
of
Creates a direction property which only supports specific values- Parameters:
name- the name of this propertyvalues- the values this property can have- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/String;[Lgg;)Lckr;intermediary method_11845Lnet/minecraft/class_2753;method_11845(Ljava/lang/String;[Lnet/minecraft/class_2350;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;[Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/DirectionProperty;
-
of
Creates a direction property which only supports specific values- Parameters:
name- the name of this propertyvalues- the values this property can have- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/String;Ljava/util/Collection;)Lckr;intermediary method_11843Lnet/minecraft/class_2753;method_11843(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/state/property/DirectionProperty;
-