Class AttributePlaceholderHandler

All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class AttributePlaceholderHandler extends NumericPlaceholderHandler
  • Constructor Details

    • AttributePlaceholderHandler

      public AttributePlaceholderHandler(@NotNull @NotNull org.bukkit.attribute.Attribute attribute)
  • Method Details

    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
    • requestValue

      @Nullable public @Nullable Number requestValue(@NotNull @NotNull PlaceholderData data)
      Specified by:
      requestValue in class NumericPlaceholderHandler
    • getAttributeValue

      public static double getAttributeValue(@NotNull @NotNull org.bukkit.inventory.ItemStack item, @NotNull @NotNull org.bukkit.attribute.Attribute attribute, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot)