Package net.minecraft
Record Class class_12327<Value,Argument>
java.lang.Object
java.lang.Record
net.minecraft.class_12327<Value,Argument>
- Record Components:
modifier-argumentTrack-
public record class_12327<Value,Argument> (EnvironmentAttributeModifier<Value,Argument> modifier, class_12306<Argument> argumentTrack)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12327intermediary net/minecraft/class_12327official fudnamed modifierintermediary comp_5223official anamed argumentTrackintermediary comp_5224official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_12306<Argument> The field for theargumentTrackrecord component.private final EnvironmentAttributeModifier<Value, Argument> The field for themodifierrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12327(EnvironmentAttributeModifier<Value, Argument> modifier, class_12306<Argument> argumentTrack) Creates an instance of aclass_12327record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentTrackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <Value> com.mojang.serialization.Codec<class_12327<Value, ?>> method_76471(EnvironmentAttribute<Value> environmentAttribute) private static <Value,Argument>
com.mojang.serialization.MapCodec<class_12327<Value, Argument>> method_76472(EnvironmentAttribute<Value> environmentAttribute, EnvironmentAttributeModifier<Value, Argument> environmentAttributeModifier) method_76473(EnvironmentAttribute<Value> environmentAttribute, Optional<Integer> optional, LongSupplier longSupplier) static com.mojang.serialization.DataResult<class_12327<?, ?>> method_76475(class_12327<?, ?> class_12327, int int2) modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
modifier
The field for themodifierrecord component. -
argumentTrack
The field for theargumentTrackrecord component.
-
-
Constructor Details
-
class_12327
public class_12327(EnvironmentAttributeModifier<Value, Argument> modifier, class_12306<Argument> argumentTrack) Creates an instance of aclass_12327record class.- Parameters:
modifier- the value for themodifierrecord componentargumentTrack- the value for theargumentTrackrecord component
-
-
Method Details
-
method_76471
public static <Value> com.mojang.serialization.Codec<class_12327<Value,?>> method_76471(EnvironmentAttribute<Value> environmentAttribute) - Mappings:
Namespace Name Mixin selector named method_76471Lnet/minecraft/class_12327;method_76471(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;intermediary method_76471Lnet/minecraft/class_12327;method_76471(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;official aLfud;a(Lcdy;)Lcom/mojang/serialization/Codec;
-
method_76472
private static <Value,Argument> com.mojang.serialization.MapCodec<class_12327<Value,Argument>> method_76472(EnvironmentAttribute<Value> environmentAttribute, EnvironmentAttributeModifier<Value, Argument> environmentAttributeModifier) - Mappings:
Namespace Name Mixin selector named method_76472Lnet/minecraft/class_12327;method_76472(Lnet/minecraft/world/attribute/EnvironmentAttribute;Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;)Lcom/mojang/serialization/MapCodec;intermediary method_76472Lnet/minecraft/class_12327;method_76472(Lnet/minecraft/class_12197;Lnet/minecraft/class_12212;)Lcom/mojang/serialization/MapCodec;official aLfud;a(Lcdy;Lcej;)Lcom/mojang/serialization/MapCodec;
-
method_76473
public class_12328<Value,Argument> method_76473(EnvironmentAttribute<Value> environmentAttribute, Optional<Integer> optional, LongSupplier longSupplier) - Mappings:
Namespace Name Mixin selector named method_76473Lnet/minecraft/class_12327;method_76473(Lnet/minecraft/world/attribute/EnvironmentAttribute;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lnet/minecraft/class_12328;intermediary method_76473Lnet/minecraft/class_12327;method_76473(Lnet/minecraft/class_12197;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lnet/minecraft/class_12328;official aLfud;a(Lcdy;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lfue;
-
method_76475
public static com.mojang.serialization.DataResult<class_12327<?,?>> method_76475(class_12327<?, ?> class_12327, int int2) - Mappings:
Namespace Name Mixin selector named method_76475Lnet/minecraft/class_12327;method_76475(Lnet/minecraft/class_12327;I)Lcom/mojang/serialization/DataResult;intermediary method_76475Lnet/minecraft/class_12327;method_76475(Lnet/minecraft/class_12327;I)Lcom/mojang/serialization/DataResult;official aLfud;a(Lfud;I)Lcom/mojang/serialization/DataResult;
-
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). -
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-
argumentTrack
Returns the value of theargumentTrackrecord component.- Returns:
- the value of the
argumentTrackrecord component
-