类 BooleanProperty


  • public class BooleanProperty
    extends Property<Boolean>
    Mappings:
    Namespace Name
    official cki
    intermediary net/minecraft/class_2746
    named net/minecraft/state/property/BooleanProperty
    • 字段详细资料

      • values

        private final ImmutableSet<Boolean> values
        Mappings:
        Namespace Name Mixin selector
        official a Lcki;a:Lcom/google/common/collect/ImmutableSet;
        intermediary field_12575 Lnet/minecraft/class_2746;field_12575:Lcom/google/common/collect/ImmutableSet;
        named values Lnet/minecraft/state/property/BooleanProperty;values:Lcom/google/common/collect/ImmutableSet;
    • 构造器详细资料

      • BooleanProperty

        protected BooleanProperty​(String name)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcki;<init>(Ljava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_2746;<init>(Ljava/lang/String;)V
        named <init> Lnet/minecraft/state/property/BooleanProperty;<init>(Ljava/lang/String;)V
    • 方法详细资料

      • getValues

        public Collection<Boolean> getValues()
        Returns all possible values the property can take.
        指定者:
        getValues 在类中 Property<Boolean>
        Mappings:
        Namespace Name Mixin selector
        official a Lcku;a()Ljava/util/Collection;
        intermediary method_11898 Lnet/minecraft/class_2769;method_11898()Ljava/util/Collection;
        named getValues Lnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
      • of

        public static BooleanProperty of​(String name)
        Mappings:
        Namespace Name Mixin selector
        official a Lcki;a(Ljava/lang/String;)Lcki;
        intermediary method_11825 Lnet/minecraft/class_2746;method_11825(Ljava/lang/String;)Lnet/minecraft/class_2746;
        named of Lnet/minecraft/state/property/BooleanProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/BooleanProperty;
      • parse

        public Optional<Boolean> parse​(String name)
        指定者:
        parse 在类中 Property<Boolean>
        Mappings:
        Namespace Name Mixin selector
        official b Lcku;b(Ljava/lang/String;)Ljava/util/Optional;
        intermediary method_11900 Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;
        named parse Lnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;
      • name

        public String name​(Boolean bool)
        指定者:
        name 在类中 Property<Boolean>
        Mappings:
        Namespace Name Mixin selector
        official a Lcki;a(Ljava/lang/Boolean;)Ljava/lang/String;
        intermediary method_11826 Lnet/minecraft/class_2746;method_11826(Ljava/lang/Boolean;)Ljava/lang/String;
        named name Lnet/minecraft/state/property/BooleanProperty;name(Ljava/lang/Boolean;)Ljava/lang/String;
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Property<Boolean>
        Mappings:
        Namespace Name Mixin selector
        official equals Lcku;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_2769;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/state/property/Property;equals(Ljava/lang/Object;)Z
      • computeHashCode

        public int computeHashCode()
        覆盖:
        computeHashCode 在类中 Property<Boolean>
        Mappings:
        Namespace Name Mixin selector
        official b Lcku;b()I
        intermediary method_11799 Lnet/minecraft/class_2769;method_11799()I
        named computeHashCode Lnet/minecraft/state/property/Property;computeHashCode()I