Record Class PropertiesMap

java.lang.Object
java.lang.Record
net.minecraft.client.data.PropertiesMap
Record Components:
values -

@Environment(CLIENT) public record PropertiesMap(List<Property.Value<?>> values) extends Record
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 Details Link icon

    • values Link icon

      private final List<Property.Value<?>> values
      The field for the values record component.
    • EMPTY Link icon

      public static final PropertiesMap 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 Link icon

      private static final Comparator<Property.Value<?>> 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 Link icon

    • PropertiesMap Link icon

      public PropertiesMap(List<Property.Value<?>> values)
      Creates an instance of a PropertiesMap record class.
      Parameters:
      values - the value for the values record component
  • Method Details Link icon

    • withValue Link icon

      public PropertiesMap withValue(Property.Value<?> value)
      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 Link icon

      public PropertiesMap copyOf(PropertiesMap propertiesMap)
      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 Link icon

      public static PropertiesMap withValues(Property.Value<?>[] values)
      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 Link icon

      public String 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 Link icon

      public 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • values Link icon

      public List<Property.Value<?>> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component