Package net.minecraft.world.attribute
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, EnvironmentAttributeModifier<Value,Argument> modifier)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/attribute/EnvironmentAttributeMap$Entryintermediary net/minecraft/class_12199$class_12201official cdx$bnamed argumentintermediary comp_5140official anamed modifierintermediary comp_5141official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(Argument argument, EnvironmentAttributeModifier<Value, Argument> modifier) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord component.private static <Value> com.mojang.serialization.Codec<EnvironmentAttributeMap.Entry<Value, ?>> createCodec(EnvironmentAttribute<Value> attribute) private static <Value,Argument>
com.mojang.serialization.MapCodec<EnvironmentAttributeMap.Entry<Value, Argument>> createModifierDependentCodec(EnvironmentAttribute<Value> attribute, EnvironmentAttributeModifier<Value, Argument> modifier) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
createCodec
private static <Value> com.mojang.serialization.Codec<EnvironmentAttributeMap.Entry<Value,?>> createCodec(EnvironmentAttribute<Value> attribute) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;createCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;intermediary method_75676Lnet/minecraft/class_12199$class_12201;method_75676(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;official aLcdx$b;a(Lcdw;)Lcom/mojang/serialization/Codec;
-
createModifierDependentCodec
private static <Value,Argument> com.mojang.serialization.MapCodec<EnvironmentAttributeMap.Entry<Value,Argument>> createModifierDependentCodec(EnvironmentAttribute<Value> attribute, EnvironmentAttributeModifier<Value, Argument> modifier) - Mappings:
Namespace Name Mixin selector named createModifierDependentCodecLnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;createModifierDependentCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;)Lcom/mojang/serialization/MapCodec;intermediary method_75677Lnet/minecraft/class_12199$class_12201;method_75677(Lnet/minecraft/class_12197;Lnet/minecraft/class_12212;)Lcom/mojang/serialization/MapCodec;official aLcdx$b;a(Lcdw;Lcef;)Lcom/mojang/serialization/MapCodec;
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/attribute/EnvironmentAttributeMap$Entry;apply(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_75682Lnet/minecraft/class_12199$class_12201;method_75682(Ljava/lang/Object;)Ljava/lang/Object;official aLcdx$b;a(Ljava/lang/Object;)Ljava/lang/Object;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
argument
Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-