Package net.minecraft.predicate.item
Record Class AttributeModifiersPredicate.AttributeModifierPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.item.AttributeModifiersPredicate.AttributeModifierPredicate
- Record Components:
- attribute-
- id-
- amount-
- operation-
- slot-
- All Implemented Interfaces:
- Predicate<AttributeModifiersComponent.Entry>
- Enclosing class:
- AttributeModifiersPredicate
public static record AttributeModifiersPredicate.AttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> attribute, Optional<Identifier> id, NumberRange.DoubleRange amount, Optional<EntityAttributeModifier.Operation> operation, Optional<AttributeModifierSlot> slot)
extends Record
implements Predicate<AttributeModifiersComponent.Entry>
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/item/AttributeModifiersPredicate$AttributeModifierPredicate- intermediary - net/minecraft/class_9653$class_9654- official - ck$a- named - attribute- intermediary - comp_2624- official - b- named - id- intermediary - comp_2625- official - c- named - amount- intermediary - comp_2627- official - d- named - operation- intermediary - comp_2628- official - e- named - slot- intermediary - comp_2629- official - f
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final NumberRange.DoubleRangeThe field for theamountrecord component.private final Optional<RegistryEntryList<EntityAttribute>> The field for theattributerecord component.static final com.mojang.serialization.Codec<AttributeModifiersPredicate.AttributeModifierPredicate> private final Optional<Identifier> The field for theidrecord component.private final Optional<EntityAttributeModifier.Operation> The field for theoperationrecord component.private final Optional<AttributeModifierSlot> The field for theslotrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<Identifier> optional2, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional3, Optional<AttributeModifierSlot> optional4) 
- 
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.slot()Returns the value of theslotrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
- 
Field Details- 
attributeThe field for theattributerecord component.
- 
idThe field for theidrecord component.
- 
amountThe field for theamountrecord component.
- 
operationThe field for theoperationrecord component.
- 
slotThe field for theslotrecord component.
- 
CODECpublic static final com.mojang.serialization.Codec<AttributeModifiersPredicate.AttributeModifierPredicate> CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/item/AttributeModifiersPredicate$AttributeModifierPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_51379- Lnet/minecraft/class_9653$class_9654;field_51379:Lcom/mojang/serialization/Codec;- official - a- Lck$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
AttributeModifierPredicatepublic AttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<Identifier> optional2, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional3, Optional<AttributeModifierSlot> optional4) 
 
- 
- 
Method Details- 
test- Specified by:
- testin interface- Predicate<AttributeModifiersComponent.Entry>
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/item/AttributeModifiersPredicate$AttributeModifierPredicate;test(Lnet/minecraft/component/type/AttributeModifiersComponent$Entry;)Z- intermediary - method_59671- Lnet/minecraft/class_9653$class_9654;method_59671(Lnet/minecraft/class_9285$class_9287;)Z- official - a- Lck$a;a(Lczh$b;)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
 
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
amountReturns the value of theamountrecord component.- Returns:
- the value of the amountrecord component
 
- 
operationReturns the value of theoperationrecord component.- Returns:
- the value of the operationrecord component
 
- 
slotReturns the value of theslotrecord component.- Returns:
- the value of the slotrecord component
 
 
-