Package net.minecraft.component.type
Record Class AttributeModifiersComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent
- Record Components:
modifiers
-
public record AttributeModifiersComponent(List<AttributeModifiersComponent.Entry> modifiers)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifiersComponent
intermediary net/minecraft/class_9285
official ddb
named modifiers
intermediary comp_2393
official e
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AttributeModifiersComponent> static final DecimalFormat
static final AttributeModifiersComponent
private final List
<AttributeModifiersComponent.Entry> The field for themodifiers
record component.static final PacketCodec
<RegistryByteBuf, AttributeModifiersComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyModifiers
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) void
applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) double
applyOperations
(double base, EquipmentSlot slot) builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themodifiers
record component.final String
toString()
Returns a string representation of this record class.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot)
-
Field Details
-
modifiers
The field for themodifiers
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/AttributeModifiersComponent;DEFAULT:Lnet/minecraft/component/type/AttributeModifiersComponent;
intermediary field_49326
Lnet/minecraft/class_9285;field_49326:Lnet/minecraft/class_9285;
official a
Lddb;a:Lddb;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49327
Lnet/minecraft/class_9285;field_49327:Lcom/mojang/serialization/Codec;
official b
Lddb;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49328
Lnet/minecraft/class_9285;field_49328:Lnet/minecraft/class_9139;
official c
Lddb;c:Lze;
-
DECIMAL_FORMAT
- Mappings:
Namespace Name Mixin selector named DECIMAL_FORMAT
Lnet/minecraft/component/type/AttributeModifiersComponent;DECIMAL_FORMAT:Ljava/text/DecimalFormat;
intermediary field_49329
Lnet/minecraft/class_9285;field_49329:Ljava/text/DecimalFormat;
official d
Lddb;d:Ljava/text/DecimalFormat;
-
-
Constructor Details
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/component/type/AttributeModifiersComponent;builder()Lnet/minecraft/component/type/AttributeModifiersComponent$Builder;
intermediary method_57480
Lnet/minecraft/class_9285;method_57480()Lnet/minecraft/class_9285$class_9286;
official a
Lddb;a()Lddb$a;
-
with
public AttributeModifiersComponent with(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) - Mappings:
Namespace Name Mixin selector named with
Lnet/minecraft/component/type/AttributeModifiersComponent;with(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/attribute/EntityAttributeModifier;Lnet/minecraft/component/type/AttributeModifierSlot;)Lnet/minecraft/component/type/AttributeModifiersComponent;
intermediary method_57484
Lnet/minecraft/class_9285;method_57484(Lnet/minecraft/class_6880;Lnet/minecraft/class_1322;Lnet/minecraft/class_9274;)Lnet/minecraft/class_9285;
official a
Lddb;a(Ljg;Lbzj;Lbxp;)Lddb;
-
applyModifiers
public void applyModifiers(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) - Mappings:
Namespace Name Mixin selector named applyModifiers
Lnet/minecraft/component/type/AttributeModifiersComponent;applyModifiers(Lnet/minecraft/component/type/AttributeModifierSlot;Ljava/util/function/BiConsumer;)V
intermediary method_60618
Lnet/minecraft/class_9285;method_60618(Lnet/minecraft/class_9274;Ljava/util/function/BiConsumer;)V
official a
Lddb;a(Lbxp;Ljava/util/function/BiConsumer;)V
-
applyModifiers
public void applyModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) - Mappings:
Namespace Name Mixin selector named applyModifiers
Lnet/minecraft/component/type/AttributeModifiersComponent;applyModifiers(Lnet/minecraft/entity/EquipmentSlot;Ljava/util/function/BiConsumer;)V
intermediary method_57482
Lnet/minecraft/class_9285;method_57482(Lnet/minecraft/class_1304;Ljava/util/function/BiConsumer;)V
official a
Lddb;a(Lbxo;Ljava/util/function/BiConsumer;)V
-
applyOperations
- Mappings:
Namespace Name Mixin selector named applyOperations
Lnet/minecraft/component/type/AttributeModifiersComponent;applyOperations(DLnet/minecraft/entity/EquipmentSlot;)D
intermediary method_57481
Lnet/minecraft/class_9285;method_57481(DLnet/minecraft/class_1304;)D
official a
Lddb;a(DLbxo;)D
-
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)
. -
modifiers
Returns the value of themodifiers
record component.- Returns:
- the value of the
modifiers
record component
-