类 DirectionProperty


  • public class DirectionProperty
    extends EnumProperty<Direction>
    Mappings:
    Namespace Name
    official ckl
    intermediary net/minecraft/class_2753
    named net/minecraft/state/property/DirectionProperty
    • 构造器详细资料

      • DirectionProperty

        protected DirectionProperty​(String name,
                                    Collection<Direction> values)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lckl;<init>(Ljava/lang/String;Ljava/util/Collection;)V
        intermediary <init> Lnet/minecraft/class_2753;<init>(Ljava/lang/String;Ljava/util/Collection;)V
        named <init> Lnet/minecraft/state/property/DirectionProperty;<init>(Ljava/lang/String;Ljava/util/Collection;)V
    • 方法详细资料

      • of

        public static DirectionProperty of​(String name)
        Mappings:
        Namespace Name Mixin selector
        official a Lckl;a(Ljava/lang/String;)Lckl;
        intermediary method_35305 Lnet/minecraft/class_2753;method_35305(Ljava/lang/String;)Lnet/minecraft/class_2753;
        named of Lnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/DirectionProperty;
      • of

        public static DirectionProperty of​(String name,
                                           Predicate<Direction> filter)
        Creates a direction property.
        参数:
        name - the name of this property
        filter - a filter which specifies if a value is allowed
        Mappings:
        Namespace Name Mixin selector
        official a Lckl;a(Ljava/lang/String;Ljava/util/function/Predicate;)Lckl;
        intermediary method_11844 Lnet/minecraft/class_2753;method_11844(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/class_2753;
        named of Lnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/state/property/DirectionProperty;
      • of

        public static DirectionProperty of​(String name,
                                           Direction[] values)
        Creates a direction property which only supports specific values
        参数:
        name - the name of this property
        values - the values this property can have
        Mappings:
        Namespace Name Mixin selector
        official a Lckl;a(Ljava/lang/String;[Lgg;)Lckl;
        intermediary method_11845 Lnet/minecraft/class_2753;method_11845(Ljava/lang/String;[Lnet/minecraft/class_2350;)Lnet/minecraft/class_2753;
        named of Lnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;[Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/DirectionProperty;
      • of

        public static DirectionProperty of​(String name,
                                           Collection<Direction> values)
        Creates a direction property which only supports specific values
        参数:
        name - the name of this property
        values - the values this property can have
        Mappings:
        Namespace Name Mixin selector
        official a Lckl;a(Ljava/lang/String;Ljava/util/Collection;)Lckl;
        intermediary method_11843 Lnet/minecraft/class_2753;method_11843(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/class_2753;
        named of Lnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/state/property/DirectionProperty;