Package net.minecraft.client.data
Record Class PropertiesMap
java.lang.Object
java.lang.Record
net.minecraft.client.data.PropertiesMap
- Record Components:
values-
Represents a set of property to value pairs, used as conditions for model
application.
This object is immutable.
- Mappings:
Namespace Name named net/minecraft/client/data/PropertiesMapintermediary net/minecraft/class_4934official gcgnamed valuesintermediary comp_3717official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<Property.Value<?>> static final PropertiesMapprivate final List<Property.Value<?>> The field for thevaluesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesMap(List<Property.Value<?>> values) Creates an instance of aPropertiesMaprecord class. -
Method Summary
Modifier and TypeMethodDescriptionasString()copyOf(PropertiesMap propertiesMap) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.List<Property.Value<?>> values()Returns the value of thevaluesrecord component.withValue(Property.Value<?> value) static PropertiesMapwithValues(Property.Value<?>[] values)
-
Field Details
-
values
The field for thevaluesrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/client/data/PropertiesMap;EMPTY:Lnet/minecraft/client/data/PropertiesMap;intermediary field_22881Lnet/minecraft/class_4934;field_22881:Lnet/minecraft/class_4934;official aLgcg;a:Lgcg;
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector named COMPARATORLnet/minecraft/client/data/PropertiesMap;COMPARATOR:Ljava/util/Comparator;intermediary field_22882Lnet/minecraft/class_4934;field_22882:Ljava/util/Comparator;official cLgcg;c:Ljava/util/Comparator;
-
-
Constructor Details
-
PropertiesMap
Creates an instance of aPropertiesMaprecord class.- Parameters:
values- the value for thevaluesrecord component
-
-
Method Details
-
withValue
- Mappings:
Namespace Name Mixin selector named withValueLnet/minecraft/client/data/PropertiesMap;withValue(Lnet/minecraft/state/property/Property$Value;)Lnet/minecraft/client/data/PropertiesMap;intermediary method_25819Lnet/minecraft/class_4934;method_25819(Lnet/minecraft/class_2769$class_4933;)Lnet/minecraft/class_4934;official aLgcg;a(Lekp$a;)Lgcg;
-
copyOf
- Mappings:
Namespace Name Mixin selector named copyOfLnet/minecraft/client/data/PropertiesMap;copyOf(Lnet/minecraft/client/data/PropertiesMap;)Lnet/minecraft/client/data/PropertiesMap;intermediary method_25820Lnet/minecraft/class_4934;method_25820(Lnet/minecraft/class_4934;)Lnet/minecraft/class_4934;official aLgcg;a(Lgcg;)Lgcg;
-
withValues
- Mappings:
Namespace Name Mixin selector named withValuesLnet/minecraft/client/data/PropertiesMap;withValues([Lnet/minecraft/state/property/Property$Value;)Lnet/minecraft/client/data/PropertiesMap;intermediary method_25821Lnet/minecraft/class_4934;method_25821([Lnet/minecraft/class_2769$class_4933;)Lnet/minecraft/class_4934;official aLgcg;a([Lekp$a;)Lgcg;
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/client/data/PropertiesMap;asString()Ljava/lang/String;intermediary method_25822Lnet/minecraft/class_4934;method_25822()Ljava/lang/String;official aLgcg;a()Ljava/lang/String;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-