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
-name
-amount
-operation
-slot
-
- All Implemented Interfaces:
Predicate<AttributeModifiersComponent.Entry>
- Enclosing class:
AttributeModifiersPredicate
public static record AttributeModifiersPredicate.AttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> attribute, Optional<UUID> id, Optional<String> name, 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 cf$a
named attribute
intermediary comp_2624
official b
named id
intermediary comp_2625
official c
named name
intermediary comp_2626
official d
named amount
intermediary comp_2627
official e
named operation
intermediary comp_2628
official f
named slot
intermediary comp_2629
official g
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NumberRange.DoubleRange
The field for theamount
record component.private final Optional
<RegistryEntryList<EntityAttribute>> The field for theattribute
record component.static final com.mojang.serialization.Codec
<AttributeModifiersPredicate.AttributeModifierPredicate> The field for theid
record component.The field for thename
record component.private final Optional
<EntityAttributeModifier.Operation> The field for theoperation
record component.private final Optional
<AttributeModifierSlot> The field for theslot
record component. -
Constructor Summary
ConstructorDescriptionAttributeModifierPredicate
(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<UUID> optional2, Optional<String> optional3, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional4, Optional<AttributeModifierSlot> optional5) -
Method Summary
Modifier and TypeMethodDescriptionamount()
Returns the value of theamount
record component.Returns 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.id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.Returns the value of theoperation
record component.slot()
Returns the value of theslot
record component.boolean
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
attribute
The field for theattribute
record component. -
id
The field for theid
record component. -
name
The field for thename
record component. -
amount
The field for theamount
record component. -
operation
The field for theoperation
record component. -
slot
The field for theslot
record component. -
CODEC
public 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
Lcf$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
AttributeModifierPredicate
public AttributeModifierPredicate(Optional<RegistryEntryList<EntityAttribute>> optional, Optional<UUID> optional2, Optional<String> optional3, NumberRange.DoubleRange doubleRange, Optional<EntityAttributeModifier.Operation> optional4, Optional<AttributeModifierSlot> optional5)
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<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
Lcf$a;a(Lcwx$b;)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
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
amount
Returns the value of theamount
record component.- Returns:
- the value of the
amount
record component
-
operation
Returns the value of theoperation
record component.- Returns:
- the value of the
operation
record component
-
slot
Returns the value of theslot
record component.- Returns:
- the value of the
slot
record component
-