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/PropertiesMap
intermediary net/minecraft/class_4934
official fss
named values
intermediary comp_3717
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator
<Property.Value<?>> static final PropertiesMap
private final List
<Property.Value<?>> The field for thevalues
record component. -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesMap
(List<Property.Value<?>> values) Creates an instance of aPropertiesMap
record class. -
Method Summary
Modifier and TypeMethodDescriptionasString()
copyOf
(PropertiesMap propertiesMap) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
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 thevalues
record component.withValue
(Property.Value<?> value) static PropertiesMap
withValues
(Property.Value<?>[] values)
-
Field Details
-
values
The field for thevalues
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/client/data/PropertiesMap;EMPTY:Lnet/minecraft/client/data/PropertiesMap;
intermediary field_22881
Lnet/minecraft/class_4934;field_22881:Lnet/minecraft/class_4934;
official a
Lfss;a:Lfss;
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector named COMPARATOR
Lnet/minecraft/client/data/PropertiesMap;COMPARATOR:Ljava/util/Comparator;
intermediary field_22882
Lnet/minecraft/class_4934;field_22882:Ljava/util/Comparator;
official c
Lfss;c:Ljava/util/Comparator;
-
-
Constructor Details
-
PropertiesMap
Creates an instance of aPropertiesMap
record class.- Parameters:
values
- the value for thevalues
record component
-
-
Method Details
-
withValue
- Mappings:
Namespace Name Mixin selector named withValue
Lnet/minecraft/client/data/PropertiesMap;withValue(Lnet/minecraft/state/property/Property$Value;)Lnet/minecraft/client/data/PropertiesMap;
intermediary method_25819
Lnet/minecraft/class_4934;method_25819(Lnet/minecraft/class_2769$class_4933;)Lnet/minecraft/class_4934;
official a
Lfss;a(Lect$a;)Lfss;
-
copyOf
- Mappings:
Namespace Name Mixin selector named copyOf
Lnet/minecraft/client/data/PropertiesMap;copyOf(Lnet/minecraft/client/data/PropertiesMap;)Lnet/minecraft/client/data/PropertiesMap;
intermediary method_25820
Lnet/minecraft/class_4934;method_25820(Lnet/minecraft/class_4934;)Lnet/minecraft/class_4934;
official a
Lfss;a(Lfss;)Lfss;
-
withValues
- Mappings:
Namespace Name Mixin selector named withValues
Lnet/minecraft/client/data/PropertiesMap;withValues([Lnet/minecraft/state/property/Property$Value;)Lnet/minecraft/client/data/PropertiesMap;
intermediary method_25821
Lnet/minecraft/class_4934;method_25821([Lnet/minecraft/class_2769$class_4933;)Lnet/minecraft/class_4934;
official a
Lfss;a([Lect$a;)Lfss;
-
asString
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/client/data/PropertiesMap;asString()Ljava/lang/String;
intermediary method_25822
Lnet/minecraft/class_4934;method_25822()Ljava/lang/String;
official a
Lfss;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 thevalues
record component.- Returns:
- the value of the
values
record component
-