Package org.geysermc.geyser.util
Class AttributeUtils
java.lang.Object
org.geysermc.geyser.util.AttributeUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
calculateValue(com.github.steveice10.mc.protocol.data.game.entity.attribute.Attribute attribute)
Retrieve the base attribute value with all modifiers applied.
-
Constructor Details
-
AttributeUtils
public AttributeUtils()
-
-
Method Details
-
calculateValue
public static double calculateValue(com.github.steveice10.mc.protocol.data.game.entity.attribute.Attribute attribute)Retrieve the base attribute value with all modifiers applied. https://minecraft.gamepedia.com/Attribute#Modifiers- Parameters:
attribute
- The attribute to calculate the total value.- Returns:
- The finished attribute with all modifiers applied.
-