Package net.minecraft.world.attribute
Record Class EnvironmentAttributeType<Value>
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.EnvironmentAttributeType<Value>
- Record Components:
valueCodec-modifierLibrary-modifierCodec-keyframeLerp-stateChangeLerp-spatialLerp-partialTickLerp-
public record EnvironmentAttributeType<Value>(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type,EnvironmentAttributeModifier<Value,?>> modifierLibrary, com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value,?>> modifierCodec, Interpolator<Value> keyframeLerp, Interpolator<Value> stateChangeLerp, Interpolator<Value> spatialLerp, Interpolator<Value> partialTickLerp)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/attribute/EnvironmentAttributeTypeintermediary net/minecraft/class_12192official cdunamed valueCodecintermediary comp_5128official anamed modifierLibraryintermediary comp_5129official bnamed modifierCodecintermediary comp_5130official cnamed keyframeLerpintermediary comp_5211official dnamed stateChangeLerpintermediary comp_5212official enamed spatialLerpintermediary comp_5131official fnamed partialTickLerpintermediary comp_5132official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Interpolator<Value> The field for thekeyframeLerprecord component.private final com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value, ?>> The field for themodifierCodecrecord component.private final Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> The field for themodifierLibraryrecord component.private final Interpolator<Value> The field for thepartialTickLerprecord component.private final Interpolator<Value> The field for thespatialLerprecord component.private final Interpolator<Value> The field for thestateChangeLerprecord component.private final com.mojang.serialization.Codec<Value> The field for thevalueCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentAttributeType(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value, ?>> modifierCodec, Interpolator<Value> keyframeLerp, Interpolator<Value> stateChangeLerp, Interpolator<Value> spatialLerp, Interpolator<Value> partialTickLerp) Creates an instance of aEnvironmentAttributeTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static <Value> com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value, ?>> createModifierCodec(Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary) static <Value> EnvironmentAttributeType<Value> discrete(com.mojang.serialization.Codec<Value> valueCodec) static <Value> EnvironmentAttributeType<Value> discrete(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <Value> EnvironmentAttributeType<Value> interpolated(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, Interpolator<Value> lerp) static <Value> EnvironmentAttributeType<Value> interpolated(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, Interpolator<Value> spatialLerp, Interpolator<Value> partialTickLerp) Returns the value of thekeyframeLerprecord component.com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value, ?>> Returns the value of themodifierCodecrecord component.Returns the value of themodifierLibraryrecord component.Returns the value of thepartialTickLerprecord component.Returns the value of thespatialLerprecord component.Returns the value of thestateChangeLerprecord component.toString()Returns a string representation of this record class.voidvalidate(EnvironmentAttributeModifier<Value, ?> modifier) com.mojang.serialization.Codec<Value> Returns the value of thevalueCodecrecord component.
-
Field Details
-
valueCodec
The field for thevalueCodecrecord component. -
modifierLibrary
private final Map<EnvironmentAttributeModifier.Type,EnvironmentAttributeModifier<Value, modifierLibrary?>> The field for themodifierLibraryrecord component. -
modifierCodec
The field for themodifierCodecrecord component. -
keyframeLerp
The field for thekeyframeLerprecord component. -
stateChangeLerp
The field for thestateChangeLerprecord component. -
spatialLerp
The field for thespatialLerprecord component. -
partialTickLerp
The field for thepartialTickLerprecord component.
-
-
Constructor Details
-
EnvironmentAttributeType
public EnvironmentAttributeType(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value, ?>> modifierCodec, Interpolator<Value> keyframeLerp, Interpolator<Value> stateChangeLerp, Interpolator<Value> spatialLerp, Interpolator<Value> partialTickLerp) Creates an instance of aEnvironmentAttributeTyperecord class.- Parameters:
valueCodec- the value for thevalueCodecrecord componentmodifierLibrary- the value for themodifierLibraryrecord componentmodifierCodec- the value for themodifierCodecrecord componentkeyframeLerp- the value for thekeyframeLerprecord componentstateChangeLerp- the value for thestateChangeLerprecord componentspatialLerp- the value for thespatialLerprecord componentpartialTickLerp- the value for thepartialTickLerprecord component
-
-
Method Details
-
interpolated
public static <Value> EnvironmentAttributeType<Value> interpolated(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, Interpolator<Value> lerp) - Mappings:
Namespace Name Mixin selector named interpolatedLnet/minecraft/world/attribute/EnvironmentAttributeType;interpolated(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lnet/minecraft/util/math/Interpolator;)Lnet/minecraft/world/attribute/EnvironmentAttributeType;intermediary method_75633Lnet/minecraft/class_12192;method_75633(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lnet/minecraft/class_12210;)Lnet/minecraft/class_12192;official aLcdu;a(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lceg;)Lcdu;
-
interpolated
public static <Value> EnvironmentAttributeType<Value> interpolated(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary, Interpolator<Value> spatialLerp, Interpolator<Value> partialTickLerp) - Mappings:
Namespace Name Mixin selector named interpolatedLnet/minecraft/world/attribute/EnvironmentAttributeType;interpolated(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lnet/minecraft/util/math/Interpolator;Lnet/minecraft/util/math/Interpolator;)Lnet/minecraft/world/attribute/EnvironmentAttributeType;intermediary method_75634Lnet/minecraft/class_12192;method_75634(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lnet/minecraft/class_12210;Lnet/minecraft/class_12210;)Lnet/minecraft/class_12192;official aLcdu;a(Lcom/mojang/serialization/Codec;Ljava/util/Map;Lceg;Lceg;)Lcdu;
-
discrete
public static <Value> EnvironmentAttributeType<Value> discrete(com.mojang.serialization.Codec<Value> valueCodec, Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary) - Mappings:
Namespace Name Mixin selector named discreteLnet/minecraft/world/attribute/EnvironmentAttributeType;discrete(Lcom/mojang/serialization/Codec;Ljava/util/Map;)Lnet/minecraft/world/attribute/EnvironmentAttributeType;intermediary method_75632Lnet/minecraft/class_12192;method_75632(Lcom/mojang/serialization/Codec;Ljava/util/Map;)Lnet/minecraft/class_12192;official aLcdu;a(Lcom/mojang/serialization/Codec;Ljava/util/Map;)Lcdu;
-
discrete
public static <Value> EnvironmentAttributeType<Value> discrete(com.mojang.serialization.Codec<Value> valueCodec) - Mappings:
Namespace Name Mixin selector named discreteLnet/minecraft/world/attribute/EnvironmentAttributeType;discrete(Lcom/mojang/serialization/Codec;)Lnet/minecraft/world/attribute/EnvironmentAttributeType;intermediary method_75631Lnet/minecraft/class_12192;method_75631(Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_12192;official aLcdu;a(Lcom/mojang/serialization/Codec;)Lcdu;
-
createModifierCodec
private static <Value> com.mojang.serialization.Codec<EnvironmentAttributeModifier<Value,?>> createModifierCodec(Map<EnvironmentAttributeModifier.Type, EnvironmentAttributeModifier<Value, ?>> modifierLibrary) - Mappings:
Namespace Name Mixin selector named createModifierCodecLnet/minecraft/world/attribute/EnvironmentAttributeType;createModifierCodec(Ljava/util/Map;)Lcom/mojang/serialization/Codec;intermediary method_75635Lnet/minecraft/class_12192;method_75635(Ljava/util/Map;)Lcom/mojang/serialization/Codec;official aLcdu;a(Ljava/util/Map;)Lcom/mojang/serialization/Codec;
-
validate
- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/world/attribute/EnvironmentAttributeType;validate(Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;)Vintermediary method_75630Lnet/minecraft/class_12192;method_75630(Lnet/minecraft/class_12212;)Vofficial aLcdu;a(Lcej;)V
-
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). -
valueCodec
Returns the value of thevalueCodecrecord component.- Returns:
- the value of the
valueCodecrecord component
-
modifierLibrary
public Map<EnvironmentAttributeModifier.Type,EnvironmentAttributeModifier<Value, modifierLibrary()?>> Returns the value of themodifierLibraryrecord component.- Returns:
- the value of the
modifierLibraryrecord component
-
modifierCodec
Returns the value of themodifierCodecrecord component.- Returns:
- the value of the
modifierCodecrecord component
-
keyframeLerp
Returns the value of thekeyframeLerprecord component.- Returns:
- the value of the
keyframeLerprecord component
-
stateChangeLerp
Returns the value of thestateChangeLerprecord component.- Returns:
- the value of the
stateChangeLerprecord component
-
spatialLerp
Returns the value of thespatialLerprecord component.- Returns:
- the value of the
spatialLerprecord component
-
partialTickLerp
Returns the value of thepartialTickLerprecord component.- Returns:
- the value of the
partialTickLerprecord component
-