Package me.deecaad.core.placeholder
Class AttributePlaceholderHandler
java.lang.Object
me.deecaad.core.placeholder.PlaceholderHandler
me.deecaad.core.placeholder.NumericPlaceholderHandler
me.deecaad.core.placeholder.AttributePlaceholderHandler
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.Keyed
-
Constructor Summary
ConstructorsConstructorDescriptionAttributePlaceholderHandler(@NotNull org.bukkit.attribute.Attribute attribute) -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetAttributeValue(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.attribute.Attribute attribute, @NotNull org.bukkit.inventory.EquipmentSlot slot) @NotNull org.bukkit.NamespacedKeygetKey()@Nullable NumberrequestValue(@NotNull PlaceholderData data) Methods inherited from class me.deecaad.core.placeholder.NumericPlaceholderHandler
onRequestMethods inherited from class me.deecaad.core.placeholder.PlaceholderHandler
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
key
-
Constructor Details
-
AttributePlaceholderHandler
public AttributePlaceholderHandler(@NotNull @NotNull org.bukkit.attribute.Attribute attribute)
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey() -
requestValue
- Specified by:
requestValuein classNumericPlaceholderHandler
-
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)
-