Package net.minecraft.state.property
Class Property<T extends Comparable<T>>
java.lang.Object
net.minecraft.state.property.Property<T>
- Direct Known Subclasses:
BooleanProperty
,EnumProperty
,IntProperty
public abstract class Property<T extends Comparable<T>> extends Object
- Mappings:
Namespace Name official ciw
intermediary net/minecraft/class_2769
named net/minecraft/state/property/Property
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Property.Value<T extends Comparable<T>>
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.serialization.Codec<T>
codec
private Integer
hashCodeCache
private String
name
private Class<T>
type
private com.mojang.serialization.Codec<Property.Value<T>>
valueCodec
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
computeHashCode()
Property.Value<T>
createValue(State<?,?> state)
Property.Value<T>
createValue(T value)
boolean
equals(Object object)
String
getName()
Class<T>
getType()
com.mojang.serialization.Codec<Property.Value<T>>
getValueCodec()
abstract Collection<T>
getValues()
Returns all possible values the property can take.int
hashCode()
abstract String
name(T value)
abstract Optional<T>
parse(String name)
Stream<Property.Value<T>>
stream()
String
toString()
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector official a
Lciw;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
- Mappings:
Namespace Name Mixin selector official b
Lciw;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
- Mappings:
Namespace Name Mixin selector official c
Lciw;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
- Mappings:
Namespace Name Mixin selector official d
Lciw;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
- Mappings:
Namespace Name Mixin selector official e
Lciw;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;
-
-
Constructor Details
-
Property
- Mappings:
Namespace Name Mixin selector official <init>
Lciw;<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
-
-
Method Details
-
createValue
- Mappings:
Namespace Name Mixin selector official b
Lciw;b(Ljava/lang/Comparable;)Lciw$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
- Mappings:
Namespace Name Mixin selector official a
Lciw;a(Lchv;)Lciw$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
- Mappings:
Namespace Name Mixin selector official c
Lciw;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;
-
getValueCodec
- Mappings:
Namespace Name Mixin selector official e
Lciw;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
- Mappings:
Namespace Name Mixin selector official f
Lciw;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
- Mappings:
Namespace Name Mixin selector official g
Lciw;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
Returns all possible values the property can take.- Mappings:
Namespace Name Mixin selector official a
Lciw;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
- Mappings:
Namespace Name Mixin selector official a
Lciw;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
- Mappings:
Namespace Name Mixin selector official b
Lciw;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
-
equals
-
hashCode
public final int hashCode() -
computeHashCode
public int computeHashCode()- Mappings:
Namespace Name Mixin selector official b
Lciw;b()I
intermediary method_11799
Lnet/minecraft/class_2769;method_11799()I
named computeHashCode
Lnet/minecraft/state/property/Property;computeHashCode()I
-