Class TeamEnchantment

java.lang.Object
de.marcely.bedwars.api.game.upgrade.TeamEnchantment

public class TeamEnchantment extends Object
Represents an enchantment that is being applied to all items of a specific type for all team members
  • Constructor Details

    • TeamEnchantment

      public TeamEnchantment(TeamEnchantment.Target target, Enchantment ench, int lvl)
      Parameters:
      target - The item type it should target
      ench - The enchantment
      lvl - The level of the enchantment
  • Method Details

    • getTarget

      public TeamEnchantment.Target getTarget()
      Get the item this enchantment should target.
      Returns:
      The items for which the enchantment gets applied on
    • getEnchantment

      public Enchantment getEnchantment()
      Get the enchantment that shall be applied on the items.
      Returns:
      The enchantment that gets applied
    • getLevel

      public int getLevel()
      Get the level of the enchantment that gets applied
      Returns:
      The level of the enchantment that gets applied