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-display-
- Enclosing class:
AttributeModifiersComponent
public static record AttributeModifiersComponent.Entry(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot, AttributeModifiersComponent.Display display)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifiersComponent$Entryintermediary net/minecraft/class_9285$class_9287official dfm$cnamed attributeintermediary comp_2395official cnamed modifierintermediary comp_2396official dnamed slotintermediary comp_2397official enamed displayintermediary comp_4036official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<EntityAttribute> The field for theattributerecord component.static final com.mojang.serialization.Codec<AttributeModifiersComponent.Entry> private final AttributeModifiersComponent.DisplayThe field for thedisplayrecord component.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> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) Entry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot, AttributeModifiersComponent.Display display) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.display()Returns the value of thedisplayrecord 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. -
display
The field for thedisplayrecord 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 aLdfm$c;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 bLdfm$c;b:Lzm;
-
-
Constructor Details
-
Entry
public Entry(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/AttributeModifiersComponent$Entry;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/attribute/EntityAttributeModifier;Lnet/minecraft/component/type/AttributeModifierSlot;)Vintermediary <init>Lnet/minecraft/class_9285$class_9287;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1322;Lnet/minecraft/class_9274;)Vofficial <init>Ldfm$c;<init>(Ljl;Lcbq;Lbzx;)V
-
Entry
public Entry(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot, AttributeModifiersComponent.Display display)
-
-
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 aLdfm$c;a(Ljl;Lame;)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
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-