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 boolean
This applies specifically to applying at the enchanting table.default float
getDamageBonus
(int level, EntityType<?> mobType, ItemStack enchantedItem) ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)
default boolean
Is this enchantment allowed to be enchanted on books via Enchantment Tableprivate Enchantment
self()
-
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 methodinvalid reference
#canEnchant(ItemStack)
-