类 Property<T extends Comparable<T>>

    • 字段详细资料

      • type

        private final Class<T extends Comparable<T>> type
        Mappings:
        Namespace Name Mixin selector
        official a Lcku;a:Ljava/lang/Class;
        intermediary field_24742 Lnet/minecraft/class_2769;field_24742:Ljava/lang/Class;
        named type Lnet/minecraft/state/property/Property;type:Ljava/lang/Class;
      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official b Lcku;b:Ljava/lang/String;
        intermediary field_24743 Lnet/minecraft/class_2769;field_24743:Ljava/lang/String;
        named name Lnet/minecraft/state/property/Property;name:Ljava/lang/String;
      • hashCodeCache

        private Integer hashCodeCache
        Mappings:
        Namespace Name Mixin selector
        official c Lcku;c:Ljava/lang/Integer;
        intermediary field_24744 Lnet/minecraft/class_2769;field_24744:Ljava/lang/Integer;
        named hashCodeCache Lnet/minecraft/state/property/Property;hashCodeCache:Ljava/lang/Integer;
      • codec

        private final com.mojang.serialization.Codec<T extends Comparable<T>> codec
        Mappings:
        Namespace Name Mixin selector
        official d Lcku;d:Lcom/mojang/serialization/Codec;
        intermediary field_24745 Lnet/minecraft/class_2769;field_24745:Lcom/mojang/serialization/Codec;
        named codec Lnet/minecraft/state/property/Property;codec:Lcom/mojang/serialization/Codec;
      • valueCodec

        private final com.mojang.serialization.Codec<Property.Value<T extends Comparable<T>>> valueCodec
        Mappings:
        Namespace Name Mixin selector
        official e Lcku;e:Lcom/mojang/serialization/Codec;
        intermediary field_25670 Lnet/minecraft/class_2769;field_25670:Lcom/mojang/serialization/Codec;
        named valueCodec Lnet/minecraft/state/property/Property;valueCodec:Lcom/mojang/serialization/Codec;
    • 构造器详细资料

      • Property

        protected Property​(String name,
                           Class<T> type)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcku;<init>(Ljava/lang/String;Ljava/lang/Class;)V
        intermediary <init> Lnet/minecraft/class_2769;<init>(Ljava/lang/String;Ljava/lang/Class;)V
        named <init> Lnet/minecraft/state/property/Property;<init>(Ljava/lang/String;Ljava/lang/Class;)V
    • 方法详细资料

      • createValue

        public Property.Value<T> createValue​(T value)
        Mappings:
        Namespace Name Mixin selector
        official b Lcku;b(Ljava/lang/Comparable;)Lcku$a;
        intermediary method_30042 Lnet/minecraft/class_2769;method_30042(Ljava/lang/Comparable;)Lnet/minecraft/class_2769$class_4933;
        named createValue Lnet/minecraft/state/property/Property;createValue(Ljava/lang/Comparable;)Lnet/minecraft/state/property/Property$Value;
      • createValue

        public Property.Value<T> createValue​(State<?,​?> state)
        Mappings:
        Namespace Name Mixin selector
        official a Lcku;a(Lcjt;)Lcku$a;
        intermediary method_30041 Lnet/minecraft/class_2769;method_30041(Lnet/minecraft/class_2688;)Lnet/minecraft/class_2769$class_4933;
        named createValue Lnet/minecraft/state/property/Property;createValue(Lnet/minecraft/state/State;)Lnet/minecraft/state/property/Property$Value;
      • stream

        public Stream<Property.Value<T>> stream()
        Mappings:
        Namespace Name Mixin selector
        official c Lcku;c()Ljava/util/stream/Stream;
        intermediary method_30043 Lnet/minecraft/class_2769;method_30043()Ljava/util/stream/Stream;
        named stream Lnet/minecraft/state/property/Property;stream()Ljava/util/stream/Stream;
      • getCodec

        public com.mojang.serialization.Codec<T> getCodec()
        Mappings:
        Namespace Name Mixin selector
        official d Lcku;d()Lcom/mojang/serialization/Codec;
        intermediary method_35308 Lnet/minecraft/class_2769;method_35308()Lcom/mojang/serialization/Codec;
        named getCodec Lnet/minecraft/state/property/Property;getCodec()Lcom/mojang/serialization/Codec;
      • getValueCodec

        public com.mojang.serialization.Codec<Property.Value<T>> getValueCodec()
        Mappings:
        Namespace Name Mixin selector
        official e Lcku;e()Lcom/mojang/serialization/Codec;
        intermediary method_30044 Lnet/minecraft/class_2769;method_30044()Lcom/mojang/serialization/Codec;
        named getValueCodec Lnet/minecraft/state/property/Property;getValueCodec()Lcom/mojang/serialization/Codec;
      • getName

        public String getName()
        Mappings:
        Namespace Name Mixin selector
        official f Lcku;f()Ljava/lang/String;
        intermediary method_11899 Lnet/minecraft/class_2769;method_11899()Ljava/lang/String;
        named getName Lnet/minecraft/state/property/Property;getName()Ljava/lang/String;
      • getType

        public Class<T> getType()
        Mappings:
        Namespace Name Mixin selector
        official g Lcku;g()Ljava/lang/Class;
        intermediary method_11902 Lnet/minecraft/class_2769;method_11902()Ljava/lang/Class;
        named getType Lnet/minecraft/state/property/Property;getType()Ljava/lang/Class;
      • getValues

        public abstract Collection<T> getValues()
        Returns all possible values the property can take.
        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;
      • name

        public abstract String name​(T value)
        Mappings:
        Namespace Name Mixin selector
        official a Lcku;a(Ljava/lang/Comparable;)Ljava/lang/String;
        intermediary method_11901 Lnet/minecraft/class_2769;method_11901(Ljava/lang/Comparable;)Ljava/lang/String;
        named name Lnet/minecraft/state/property/Property;name(Ljava/lang/Comparable;)Ljava/lang/String;
      • parse

        public abstract Optional<T> parse​(String name)
        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;
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lcku;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_2769;toString()Ljava/lang/String;
        named toString Lnet/minecraft/state/property/Property;toString()Ljava/lang/String;
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Object
        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
      • hashCode

        public final int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lcku;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2769;hashCode()I
        named hashCode Lnet/minecraft/state/property/Property;hashCode()I
      • computeHashCode

        public int computeHashCode()
        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
      • method_35307

        public <U,​S extends State<?,​S>> com.mojang.serialization.DataResult<S> method_35307​(com.mojang.serialization.DynamicOps<U> dynamicOps,
                                                                                                        S s,
                                                                                                        U u)
        Mappings:
        Namespace Name Mixin selector
        official a Lcku;a(Lcom/mojang/serialization/DynamicOps;Lcjt;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
        intermediary method_35307 Lnet/minecraft/class_2769;method_35307(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_2688;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
        named method_35307 Lnet/minecraft/state/property/Property;method_35307(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/state/State;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;