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$Entryintermediary net/minecraft/class_9285$class_9287official cxn$bnamed attributeintermediary comp_2395official cnamed modifierintermediary comp_2396official dnamed slotintermediary comp_2397official e
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionEntry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Method Summary
Modifier 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
-
attribute
The field for theattributerecord component. -
modifier
The field for themodifierrecord component. -
slot
The field for theslotrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/AttributeModifiersComponent$Entry;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49332Lnet/minecraft/class_9285$class_9287;field_49332:Lcom/mojang/serialization/Codec;official aLcxn$b;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/AttributeModifiersComponent$Entry;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49333Lnet/minecraft/class_9285$class_9287;field_49333:Lnet/minecraft/class_9139;official bLcxn$b;b:Lyx;
-
-
Constructor Details
-
Entry
public Entry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot)
-
-
Method Details
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/component/type/AttributeModifiersComponent$Entry;matches(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)Zintermediary method_60767Lnet/minecraft/class_9285$class_9287;method_60767(Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)Zofficial aLcxn$b;a(Ljm;Lakr;)Z
-
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). -
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-