Interface IForgeEnchantment
- All Known Implementing Classes:
- ArrowDamageEnchantment,- ArrowFireEnchantment,- ArrowInfiniteEnchantment,- ArrowKnockbackEnchantment,- ArrowPiercingEnchantment,- BindingCurseEnchantment,- DamageEnchantment,- DigDurabilityEnchantment,- DiggingEnchantment,- Enchantment,- FireAspectEnchantment,- FishingSpeedEnchantment,- FrostWalkerEnchantment,- KnockbackEnchantment,- LootBonusEnchantment,- MendingEnchantment,- MultiShotEnchantment,- OxygenEnchantment,- ProtectionEnchantment,- QuickChargeEnchantment,- SoulSpeedEnchantment,- SweepingEdgeEnchantment,- SwiftSneakEnchantment,- ThornsEnchantment,- TridentChannelingEnchantment,- TridentImpalerEnchantment,- TridentLoyaltyEnchantment,- TridentRiptideEnchantment,- UntouchingEnchantment,- VanishingCurseEnchantment,- WaterWalkerEnchantment,- WaterWorkerEnchantment
public interface IForgeEnchantment
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleanallowedInCreativeTab(Item book, Set<EnchantmentCategory> allowedCategories) Determines whether item variants of this enchantment can be added to a given creative tab with the allowed categories.default floatgetDamageBonus(int level, MobType mobType, ItemStack enchantedItem) ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)private Enchantmentself()
- 
Method Details- 
self
- 
getDamageBonusItemStack aware version ofEnchantment.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
 
- 
allowedInCreativeTabDetermines whether item variants of this enchantment can be added to a given creative tab with the allowed categories.- Parameters:
- book- the item being added to the creative tab
- allowedCategories- the enchantment categories allowed in the creative tab
- Returns:
- whether item variants of this enchantment can be added to a given creative tab with the allowed categories
 
 
-