Interface IForgeEnchantment

All Known Implementing Classes:
ArrowDamageEnchantment, ArrowFireEnchantment, ArrowInfiniteEnchantment, ArrowKnockbackEnchantment, ArrowPiercingEnchantment, BindingCurseEnchantment, DamageEnchantment, DigDurabilityEnchantment, DiggingEnchantment, Enchantment, FireAspectEnchantment, FishingSpeedEnchantment, FrostWalkerEnchantment, GlobalLootModifiersTest.SmelterEnchantment, KnockbackEnchantment, LootBonusEnchantment, MendingEnchantment, MultiShotEnchantment, OxygenEnchantment, ProtectionEnchantment, QuickChargeEnchantment, SoulSpeedEnchantment, SweepingEdgeEnchantment, SwiftSneakEnchantment, ThornsEnchantment, TridentChannelingEnchantment, TridentImpalerEnchantment, TridentLoyaltyEnchantment, TridentRiptideEnchantment, UntouchingEnchantment, VanishingCurseEnchantment, WaterWalkerEnchantment, WaterWorkerEnchantment

public interface IForgeEnchantment
  • Method Details

    • self

      private Enchantment self()
    • getDamageBonus

      default float getDamageBonus(int level, MobType mobType, ItemStack enchantedItem)
      ItemStack aware version of Enchantment.getDamageBonus(int, MobType)
      Parameters:
      level - the level of the enchantment
      mobType - the mob type being attacked
      enchantedItem - the item used for the attack
      Returns:
      the damage bonus
    • allowedInCreativeTab

      default boolean allowedInCreativeTab(Item book, CreativeModeTab tab)
      Determines what creative tabs this enchantment's variant of an enchanted book or similar item should appear in.
      Parameters:
      book - The item being added to the creative tab
      tab - The creative tab that items are being added to
      Returns:
      whether the given Item's variant for this enchantment should appear in the respective creative tab