Record Class AugmentAttribute
java.lang.Object
java.lang.Record
xericker.arenalegends.gameplay.augment.AugmentAttribute
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAugmentAttribute(String augmentId) Creates an instance of aAugmentAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier.Operation operation, double value) voidadd(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier.Operation operation, double value, boolean executeEvent) Returns the value of theaugmentIdrecord component.voidedit(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, double value) voidedit(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, double value, boolean executeEvent) final booleanIndicates whether some other object is "equal to" this one.org.bukkit.attribute.AttributeModifierget(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) booleanhas(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) final inthashCode()Returns a hash code value for this object.voidremove(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KEY_PREFIX
-
-
Constructor Details
-
AugmentAttribute
Creates an instance of aAugmentAttributerecord class.- Parameters:
augmentId- the value for theaugmentIdrecord component
-
-
Method Details
-
has
public boolean has(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) -
get
public org.bukkit.attribute.AttributeModifier get(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) -
remove
public void remove(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute) -
add
public void add(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier.Operation operation, double value) -
add
public void add(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier.Operation operation, double value, boolean executeEvent) -
edit
public void edit(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, double value) -
edit
public void edit(org.bukkit.entity.LivingEntity livingEntity, org.bukkit.attribute.Attribute attribute, double value, boolean executeEvent) -
toString
-
hashCode
-
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). -
augmentId
Returns the value of theaugmentIdrecord component.- Returns:
- the value of the
augmentIdrecord component
-