Class Glow

java.lang.Object
org.bukkit.enchantments.Enchantment
de.maxbossing.maxapi.Enchantments.Glow
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, net.kyori.adventure.translation.Translatable, org.bukkit.Keyed

public class Glow extends org.bukkit.enchantments.Enchantment
  • Field Summary

    Fields inherited from class org.bukkit.enchantments.Enchantment

    ARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, BINDING_CURSE, CHANNELING, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DEPTH_STRIDER, DIG_SPEED, DURABILITY, FIRE_ASPECT, FROST_WALKER, IMPALING, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LOYALTY, LUCK, LURE, MENDING, MULTISHOT, OXYGEN, PIERCING, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, QUICK_CHARGE, RIPTIDE, SILK_TOUCH, SOUL_SPEED, SWEEPING_EDGE, SWIFT_SNEAK, THORNS, VANISHING_CURSE, WATER_WORKER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Glow(@NotNull org.bukkit.NamespacedKey key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEnchantItem(@NotNull org.bukkit.inventory.ItemStack item)
     
    boolean
    conflictsWith(@NotNull org.bukkit.enchantments.Enchantment other)
     
    @NotNull net.kyori.adventure.text.Component
    displayName(int level)
     
    @NotNull Set<org.bukkit.inventory.EquipmentSlot>
     
    float
    getDamageIncrease(int level, @NotNull org.bukkit.entity.EntityCategory entityCategory)
     
    @NotNull org.bukkit.enchantments.EnchantmentTarget
     
    int
     
    @NotNull String
     
    @NotNull io.papermc.paper.enchantments.EnchantmentRarity
     
    int
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    @NotNull String
     

    Methods inherited from class org.bukkit.enchantments.Enchantment

    equals, getByKey, getByName, getKey, hashCode, isAcceptingRegistrations, registerEnchantment, stopAcceptingRegistrations, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Constructor Details

    • Glow

      public Glow(@NotNull @NotNull org.bukkit.NamespacedKey key)
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in class org.bukkit.enchantments.Enchantment
    • getMaxLevel

      public int getMaxLevel()
      Specified by:
      getMaxLevel in class org.bukkit.enchantments.Enchantment
    • getStartLevel

      public int getStartLevel()
      Specified by:
      getStartLevel in class org.bukkit.enchantments.Enchantment
    • getItemTarget

      @NotNull public @NotNull org.bukkit.enchantments.EnchantmentTarget getItemTarget()
      Specified by:
      getItemTarget in class org.bukkit.enchantments.Enchantment
    • isTreasure

      public boolean isTreasure()
      Specified by:
      isTreasure in class org.bukkit.enchantments.Enchantment
    • isCursed

      public boolean isCursed()
      Specified by:
      isCursed in class org.bukkit.enchantments.Enchantment
    • conflictsWith

      public boolean conflictsWith(@NotNull @NotNull org.bukkit.enchantments.Enchantment other)
      Specified by:
      conflictsWith in class org.bukkit.enchantments.Enchantment
    • canEnchantItem

      public boolean canEnchantItem(@NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      canEnchantItem in class org.bukkit.enchantments.Enchantment
    • displayName

      @NotNull public @NotNull net.kyori.adventure.text.Component displayName(int level)
      Specified by:
      displayName in class org.bukkit.enchantments.Enchantment
    • isTradeable

      public boolean isTradeable()
      Specified by:
      isTradeable in class org.bukkit.enchantments.Enchantment
    • isDiscoverable

      public boolean isDiscoverable()
      Specified by:
      isDiscoverable in class org.bukkit.enchantments.Enchantment
    • getRarity

      @NotNull public @NotNull io.papermc.paper.enchantments.EnchantmentRarity getRarity()
      Specified by:
      getRarity in class org.bukkit.enchantments.Enchantment
    • getDamageIncrease

      public float getDamageIncrease(int level, @NotNull @NotNull org.bukkit.entity.EntityCategory entityCategory)
      Specified by:
      getDamageIncrease in class org.bukkit.enchantments.Enchantment
    • getActiveSlots

      @NotNull public @NotNull Set<org.bukkit.inventory.EquipmentSlot> getActiveSlots()
      Specified by:
      getActiveSlots in class org.bukkit.enchantments.Enchantment
    • translationKey

      @NotNull public @NotNull String translationKey()