Record Class EnvironmentAttributeModifier.OverrideModifier<Value>

java.lang.Object
java.lang.Record
net.minecraft.world.attribute.EnvironmentAttributeModifier.OverrideModifier<Value>
All Implemented Interfaces:
EnvironmentAttributeModifier<Value,Value>
Enclosing interface:
EnvironmentAttributeModifier<Subject,Argument>

public static record EnvironmentAttributeModifier.OverrideModifier<Value>() extends Record implements EnvironmentAttributeModifier<Value,Value>
Mappings:
Namespace Name
named net/minecraft/world/attribute/EnvironmentAttributeModifier$OverrideModifier
intermediary net/minecraft/class_12212$class_12214
official cef$b
  • Field Details

    • INSTANCE

      Mappings:
      Namespace Name Mixin selector
      named INSTANCE Lnet/minecraft/world/attribute/EnvironmentAttributeModifier$OverrideModifier;INSTANCE:Lnet/minecraft/world/attribute/EnvironmentAttributeModifier$OverrideModifier;
      intermediary field_63787 Lnet/minecraft/class_12212$class_12214;field_63787:Lnet/minecraft/class_12212$class_12214;
      official d Lcef$b;d:Lcef$b;
  • Constructor Details

    • OverrideModifier

      public OverrideModifier()
      Creates an instance of a OverrideModifier record class.
  • Method Details

    • apply

      public Value apply(Value value, Value argument)
      Specified by:
      apply in interface EnvironmentAttributeModifier<Value,Value>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary apply Lnet/minecraft/class_12212;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      official apply Lcef;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    • argumentCodec

      public com.mojang.serialization.Codec<Value> argumentCodec(EnvironmentAttribute<Value> attribute)
      Specified by:
      argumentCodec in interface EnvironmentAttributeModifier<Value,Value>
      Mappings:
      Namespace Name Mixin selector
      named argumentCodec Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;argumentCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;
      intermediary argumentCodec Lnet/minecraft/class_12212;argumentCodec(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;
      official argumentCodec Lcef;argumentCodec(Lcdw;)Lcom/mojang/serialization/Codec;
    • 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.
      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.