Interface IForgeEnchantment
- All Known Implementing Classes:
ArrowInfiniteEnchantment,ArrowPiercingEnchantment,BindingCurseEnchantment,BreachEnchantment,DamageEnchantment,DensityEnchantment,DigDurabilityEnchantment,Enchantment,FrostWalkerEnchantment,LootBonusEnchantment,MendingEnchantment,MultiShotEnchantment,ProtectionEnchantment,SoulSpeedEnchantment,SwiftSneakEnchantment,ThornsEnchantment,TridentRiptideEnchantment,UntouchingEnchantment,VanishingCurseEnchantment,WaterWalkerEnchantment,WindBurstEnchantment
public interface IForgeEnchantment
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanThis applies specifically to applying at the enchanting table.default floatgetDamageBonus(int level, EntityType<?> mobType, ItemStack enchantedItem) ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)default booleanIs this enchantment allowed to be enchanted on books via Enchantment Tableprivate Enchantmentself()
-
Method Details
-
self
-
getDamageBonus
ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)- Parameters:
level- the level of the enchantmentmobType- the mob type being attackedenchantedItem- the item used for the attack- Returns:
- the damage bonus
-
isAllowedOnBooks
default boolean isAllowedOnBooks()Is this enchantment allowed to be enchanted on books via Enchantment Table- Returns:
- false to disable the vanilla feature
-
canApplyAtEnchantingTable
This applies specifically to applying at the enchanting table. The other methodapplies for all possible enchantments.invalid reference
#canEnchant(ItemStack)
-