Package net.minecraft.entity.effect
Record Class StatusEffect.EffectAttributeModifierCreator
java.lang.Object
java.lang.Record
net.minecraft.entity.effect.StatusEffect.EffectAttributeModifierCreator
- Record Components:
- id-
- baseValue-
- operation-
- Enclosing class:
- StatusEffect
private static record StatusEffect.EffectAttributeModifierCreator(Identifier id, double baseValue, EntityAttributeModifier.Operation operation)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/entity/effect/StatusEffect$EffectAttributeModifierCreator- intermediary - net/minecraft/class_1291$class_8634- official - btp$a- named - id- intermediary - comp_2182- official - a- named - baseValue- intermediary - comp_2183- official - b- named - operation- intermediary - comp_2184- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thebaseValuerecord component.private final IdentifierThe field for theidrecord component.private final EntityAttributeModifier.OperationThe field for theoperationrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEffectAttributeModifierCreator(Identifier identifier, double double2, EntityAttributeModifier.Operation operation) 
- 
Method SummaryModifier and TypeMethodDescriptiondoubleReturns the value of thebaseValuerecord component.createAttributeModifier(int amplifier) 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.final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
EffectAttributeModifierCreatorEffectAttributeModifierCreator(Identifier identifier, double double2, EntityAttributeModifier.Operation operation) 
 
- 
- 
Method Details- 
createAttributeModifier- Mappings:
- Namespace - Name - Mixin selector - named - createAttributeModifier- Lnet/minecraft/entity/effect/StatusEffect$EffectAttributeModifierCreator;createAttributeModifier(I)Lnet/minecraft/entity/attribute/EntityAttributeModifier;- intermediary - method_52522- Lnet/minecraft/class_1291$class_8634;method_52522(I)Lnet/minecraft/class_1322;- official - a- Lbtp$a;a(I)Lbwo;
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
baseValuepublic double baseValue()Returns the value of thebaseValuerecord component.- Returns:
- the value of the baseValuerecord component
 
- 
operationReturns the value of theoperationrecord component.- Returns:
- the value of the operationrecord component
 
 
-