Class EnchantmentFireAspect

java.lang.Object
cn.nukkit.item.enchantment.Enchantment
cn.nukkit.item.enchantment.EnchantmentFireAspect
All Implemented Interfaces:
Cloneable

public class EnchantmentFireAspect extends Enchantment
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

    • EnchantmentFireAspect

      protected EnchantmentFireAspect()
  • Method Details

    • getMinEnchantAbility

      public int getMinEnchantAbility(int level)
      Description copied from class: Enchantment
      The minimum enchantability for the given level as described in https://minecraft.gamepedia.com/Enchanting/Levels
      Overrides:
      getMinEnchantAbility in class Enchantment
      Parameters:
      level - The level being checked
      Returns:
      The minimum value
    • getMaxEnchantAbility

      public int getMaxEnchantAbility(int level)
      Description copied from class: Enchantment
      The maximum enchantability for the given level as described in https://minecraft.gamepedia.com/Enchanting/Levels
      Overrides:
      getMaxEnchantAbility in class Enchantment
      Parameters:
      level - The level being checked
      Returns:
      The maximum value
    • getMaxLevel

      public int getMaxLevel()
      Description copied from class: Enchantment
      The maximum safe level which is possible with this enchantment.
      Overrides:
      getMaxLevel in class Enchantment
    • doPostAttack

      @PowerNukkitDifference(since="1.5.1.0-PN", info="The entity combustion code was moved to SideEffectCombust, obtained by getAttackSideEffects(Entity, Entity)") public void doPostAttack(Entity attacker, Entity entity)
      Overrides:
      doPostAttack in class Enchantment
    • getAttackSideEffects

      @PowerNukkitOnly @Since("1.5.1.0-PN") @Nonnull public SideEffect[] getAttackSideEffects(@Nonnull Entity attacker, @Nonnull Entity entity)
      Overrides:
      getAttackSideEffects in class Enchantment