Package net.minecraft.loot.function
Record Class SetAttributesLootFunction.Attribute
java.lang.Object
java.lang.Record
net.minecraft.loot.function.SetAttributesLootFunction.Attribute
- Record Components:
- id-
- attribute-
- operation-
- amount-
- slots-
- Enclosing class:
- SetAttributesLootFunction
private static record SetAttributesLootFunction.Attribute(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> slots)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/SetAttributesLootFunction$Attribute- intermediary - net/minecraft/class_137$class_138- official - exl$b- named - id- intermediary - comp_1864- official - b- named - attribute- intermediary - comp_1860- official - c- named - operation- intermediary - comp_1861- official - d- named - amount- intermediary - comp_1862- official - e- named - slots- intermediary - comp_1863- official - f
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LootNumberProviderThe field for theamountrecord component.private final RegistryEntry<EntityAttribute> The field for theattributerecord component.static final com.mojang.serialization.Codec<SetAttributesLootFunction.Attribute> private static final com.mojang.serialization.Codec<List<AttributeModifierSlot>> private final IdentifierThe field for theidrecord component.private final EntityAttributeModifier.OperationThe field for theoperationrecord component.private final List<AttributeModifierSlot> The field for theslotsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAttribute(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> list) 
- 
Method SummaryModifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.Returns 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.id()Returns the value of theidrecord component.Returns the value of theoperationrecord component.slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
idThe field for theidrecord component.
- 
attributeThe field for theattributerecord component.
- 
operationThe field for theoperationrecord component.
- 
amountThe field for theamountrecord component.
- 
slotsThe field for theslotsrecord component.
- 
EQUIPMENT_SLOT_LIST_CODECprivate static final com.mojang.serialization.Codec<List<AttributeModifierSlot>> EQUIPMENT_SLOT_LIST_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - EQUIPMENT_SLOT_LIST_CODEC- Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;EQUIPMENT_SLOT_LIST_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45838- Lnet/minecraft/class_137$class_138;field_45838:Lcom/mojang/serialization/Codec;- official - g- Lexl$b;g:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45837- Lnet/minecraft/class_137$class_138;field_45837:Lcom/mojang/serialization/Codec;- official - a- Lexl$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
AttributeAttribute(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> list) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;Lnet/minecraft/loot/provider/number/LootNumberProvider;Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_137$class_138;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_6880;Lnet/minecraft/class_1322$class_1323;Lnet/minecraft/class_5658;Ljava/util/List;)V- official - <init>- Lexl$b;<init>(Lakv;Ljr;Lbwo$a;Lezx;Ljava/util/List;)V
 
 
- 
- 
Method Details- 
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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
attributeReturns the value of theattributerecord component.- Returns:
- the value of the attributerecord component
 
- 
operationReturns the value of theoperationrecord component.- Returns:
- the value of the operationrecord component
 
- 
amountReturns the value of theamountrecord component.- Returns:
- the value of the amountrecord component
 
- 
slotsReturns the value of theslotsrecord component.- Returns:
- the value of the slotsrecord component
 
 
-