Package net.minecraft.entity.effect
Record Class StatusEffect.EffectAttributeModifierCreator
java.lang.Object
java.lang.Record
net.minecraft.entity.effect.StatusEffect.EffectAttributeModifierCreator
- Record Components:
uuid-baseValue-operation-
- Enclosing class:
StatusEffect
private static record StatusEffect.EffectAttributeModifierCreator(UUID uuid, double baseValue, EntityAttributeModifier.Operation operation)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/effect/StatusEffect$EffectAttributeModifierCreatorintermediary net/minecraft/class_1291$class_8634official bsc$anamed uuidintermediary comp_2182official anamed baseValueintermediary comp_2183official bnamed operationintermediary comp_2184official c
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEffectAttributeModifierCreator(UUID uUID, double double2, EntityAttributeModifier.Operation operation) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebaseValuerecord component.createAttributeModifier(String translationKey, int amplifier) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
Constructor Details
-
EffectAttributeModifierCreator
EffectAttributeModifierCreator(UUID uUID, double double2, EntityAttributeModifier.Operation operation)
-
-
Method Details
-
createAttributeModifier
- Mappings:
Namespace Name Mixin selector named createAttributeModifierLnet/minecraft/entity/effect/StatusEffect$EffectAttributeModifierCreator;createAttributeModifier(Ljava/lang/String;I)Lnet/minecraft/entity/attribute/EntityAttributeModifier;intermediary method_52522Lnet/minecraft/class_1291$class_8634;method_52522(Ljava/lang/String;I)Lnet/minecraft/class_1322;official aLbsc$a;a(Ljava/lang/String;I)Lbux;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
baseValue
public double baseValue()Returns the value of thebaseValuerecord component.- Returns:
- the value of the
baseValuerecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-