Record Class AttributeModifier.OverrideModifier<Value>
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.modifier.AttributeModifier.OverrideModifier<Value>
- All Implemented Interfaces:
AttributeModifier<Value,Value>
- Enclosing interface:
AttributeModifier<Subject,Argument>
public static record AttributeModifier.OverrideModifier<Value>()
extends Record
implements AttributeModifier<Value,Value>
-
Nested Class Summary
Nested classes/interfaces inherited from interface AttributeModifier
AttributeModifier.OperationId, AttributeModifier.OverrideModifier<Value> -
Field Summary
FieldsFields inherited from interface AttributeModifier
ARGB_COLOR_LIBRARY, BOOLEAN_LIBRARY, FLOAT_LIBRARY, RGB_COLOR_LIBRARY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<Value> argumentCodec(EnvironmentAttribute<Value> attribute) argumentKeyframeLerp(EnvironmentAttribute<Value> attribute) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OverrideModifier
public OverrideModifier()Creates an instance of aOverrideModifierrecord class.
-
-
Method Details
-
apply
-
argumentCodec
- Specified by:
argumentCodecin interfaceAttributeModifier<Value,Value>
-
argumentKeyframeLerp
- Specified by:
argumentKeyframeLerpin interfaceAttributeModifier<Value,Value>
-
toString
-
hashCode
-
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.
-