Class AttributeUtils

java.lang.Object
org.geysermc.geyser.util.AttributeUtils

public class AttributeUtils extends Object
  • 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.