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 cxn$b
named attribute
intermediary comp_2395
official c
named modifier
intermediary comp_2396
official d
named slot
intermediary comp_2397
official e
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<EntityAttribute> The field for theattribute
record component.static final com.mojang.serialization.Codec
<AttributeModifiersComponent.Entry> private final EntityAttributeModifier
The field for themodifier
record component.static final PacketCodec
<RegistryByteBuf, AttributeModifiersComponent.Entry> private final AttributeModifierSlot
The field for theslot
record component. -
Constructor Summary
ConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattribute
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
matches
(RegistryEntry<EntityAttribute> attribute, Identifier modifierId) modifier()
Returns the value of themodifier
record component.slot()
Returns the value of theslot
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
attribute
The field for theattribute
record component. -
modifier
The field for themodifier
record component. -
slot
The field for theslot
record 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
Lcxn$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
Lcxn$b;b:Lyx;
-
-
Constructor Details
-
Entry
public 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
Lcxn$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 theattribute
record component.- Returns:
- the value of the
attribute
record component
-
modifier
Returns the value of themodifier
record component.- Returns:
- the value of the
modifier
record component
-
slot
Returns the value of theslot
record component.- Returns:
- the value of the
slot
record component
-