Record Class EnvironmentAttributeMap.Entry<Value,Argument>

java.lang.Object
java.lang.Record
net.minecraft.world.attribute.EnvironmentAttributeMap.Entry<Value,Argument>
Record Components:
argument -
modifier -
Enclosing class:
EnvironmentAttributeMap

public static record EnvironmentAttributeMap.Entry<Value,Argument>(Argument argument, class_12212<Value,Argument> modifier) extends Record
Mappings:
Namespace Name
named net/minecraft/world/attribute/EnvironmentAttributeMap$Entry
intermediary net/minecraft/class_12199$class_12201
official cdw$b
named argument
intermediary comp_5140
official a
named modifier
intermediary comp_5141
official b
  • Field Details

  • Constructor Details

    • Entry

      public Entry(Argument argument, class_12212<Value,Argument> modifier)
      Creates an instance of a Entry record class.
      Parameters:
      argument - the value for the argument record component
      modifier - the value for the modifier record component
  • Method Details

    • method_75676

      private static <Value> com.mojang.serialization.Codec<EnvironmentAttributeMap.Entry<Value,?>> method_75676(EnvironmentAttribute<Value> environmentAttribute)
      Mappings:
      Namespace Name Mixin selector
      named method_75676 Lnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;method_75676(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;
      intermediary method_75676 Lnet/minecraft/class_12199$class_12201;method_75676(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;
      official a Lcdw$b;a(Lcdv;)Lcom/mojang/serialization/Codec;
    • method_75677

      private static <Value, Argument> com.mojang.serialization.MapCodec<EnvironmentAttributeMap.Entry<Value,Argument>> method_75677(EnvironmentAttribute<Value> environmentAttribute, class_12212<Value,Argument> class_12212)
      Mappings:
      Namespace Name Mixin selector
      named method_75677 Lnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;method_75677(Lnet/minecraft/world/attribute/EnvironmentAttribute;Lnet/minecraft/class_12212;)Lcom/mojang/serialization/MapCodec;
      intermediary method_75677 Lnet/minecraft/class_12199$class_12201;method_75677(Lnet/minecraft/class_12197;Lnet/minecraft/class_12212;)Lcom/mojang/serialization/MapCodec;
      official a Lcdw$b;a(Lcdv;Lcee;)Lcom/mojang/serialization/MapCodec;
    • method_75682

      public Value method_75682(Value value)
      Mappings:
      Namespace Name Mixin selector
      named method_75682 Lnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;method_75682(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_75682 Lnet/minecraft/class_12199$class_12201;method_75682(Ljava/lang/Object;)Ljava/lang/Object;
      official a Lcdw$b;a(Ljava/lang/Object;)Ljava/lang/Object;
    • toString

      public final 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

      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

      public final boolean equals(Object object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • argument

      public Argument argument()
      Returns the value of the argument record component.
      Returns:
      the value of the argument record component
    • modifier

      public class_12212<Value,Argument> modifier()
      Returns the value of the modifier record component.
      Returns:
      the value of the modifier record component