Package net.minecraft.component.type
Record Class AttributeModifiersComponent.Entry
java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent.Entry
- Record Components:
- attribute-
- modifier-
- slot-
- Enclosing class:
- AttributeModifiersComponent
public static record AttributeModifiersComponent.Entry(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/component/type/AttributeModifiersComponent$Entry- intermediary - net/minecraft/class_9285$class_9287- official - czh$b- named - attribute- intermediary - comp_2395- official - c- named - modifier- intermediary - comp_2396- official - d- named - slot- intermediary - comp_2397- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<EntityAttribute> The field for theattributerecord component.static final com.mojang.serialization.Codec<AttributeModifiersComponent.Entry> private final EntityAttributeModifierThe field for themodifierrecord component.static final PacketCodec<RegistryByteBuf, AttributeModifiersComponent.Entry> private final AttributeModifierSlotThe field for theslotrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatches(RegistryEntry<EntityAttribute> attribute, Identifier modifierId) modifier()Returns the value of themodifierrecord component.slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
attributeThe field for theattributerecord component.
- 
modifierThe field for themodifierrecord component.
- 
slotThe field for theslotrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/component/type/AttributeModifiersComponent$Entry;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49332- Lnet/minecraft/class_9285$class_9287;field_49332:Lcom/mojang/serialization/Codec;- official - a- Lczh$b;a:Lcom/mojang/serialization/Codec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/component/type/AttributeModifiersComponent$Entry;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49333- Lnet/minecraft/class_9285$class_9287;field_49333:Lnet/minecraft/class_9139;- official - b- Lczh$b;b:Lyn;
 
 
- 
- 
Constructor Details- 
Entrypublic Entry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) 
 
- 
- 
Method Details- 
matches- Mappings:
- Namespace - Name - Mixin selector - named - matches- Lnet/minecraft/component/type/AttributeModifiersComponent$Entry;matches(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)Z- intermediary - method_60767- Lnet/minecraft/class_9285$class_9287;method_60767(Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)Z- official - a- Lczh$b;a(Ljr;Lakv;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
attributeReturns the value of theattributerecord component.- Returns:
- the value of the attributerecord component
 
- 
modifierReturns the value of themodifierrecord component.- Returns:
- the value of the modifierrecord component
 
- 
slotReturns the value of theslotrecord component.- Returns:
- the value of the slotrecord component
 
 
-