Package net.minecraft.world.attribute
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$OverrideModifierintermediary net/minecraft/class_12212$class_12214official cef$b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.attribute.EnvironmentAttributeModifier
EnvironmentAttributeModifier.OverrideModifier<Value>, EnvironmentAttributeModifier.Type -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final EnvironmentAttributeModifier.OverrideModifier<?> Fields inherited from interface net.minecraft.world.attribute.EnvironmentAttributeModifier
BOOLEAN_MODIFIERS, COLOR_MODIFIERS, FLOAT_MODIFIERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<Value> argumentCodec(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
- Mappings:
Namespace Name Mixin selector named INSTANCELnet/minecraft/world/attribute/EnvironmentAttributeModifier$OverrideModifier;INSTANCE:Lnet/minecraft/world/attribute/EnvironmentAttributeModifier$OverrideModifier;intermediary field_63787Lnet/minecraft/class_12212$class_12214;field_63787:Lnet/minecraft/class_12212$class_12214;official dLcef$b;d:Lcef$b;
-
-
Constructor Details
-
OverrideModifier
public OverrideModifier()Creates an instance of aOverrideModifierrecord class.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceEnvironmentAttributeModifier<Value,Value> - Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/attribute/EnvironmentAttributeModifier;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;intermediary applyLnet/minecraft/class_12212;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;official applyLcef;apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
-
argumentCodec
- Specified by:
argumentCodecin interfaceEnvironmentAttributeModifier<Value,Value> - Mappings:
Namespace Name Mixin selector named argumentCodecLnet/minecraft/world/attribute/EnvironmentAttributeModifier;argumentCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;intermediary argumentCodecLnet/minecraft/class_12212;argumentCodec(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;official argumentCodecLcef;argumentCodec(Lcdw;)Lcom/mojang/serialization/Codec;
-
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.
-