接口 IForgeEnchantment
- 所有已知实现类:
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
-
方法概要
修饰符和类型方法说明default boolean
allowedInCreativeTab
(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 float
getDamageBonus
(int level, MobType mobType, ItemStack enchantedItem) ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)
private Enchantment
self()
-
方法详细资料
-
self
-
getDamageBonus
ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)
- 参数:
level
- the level of the enchantmentmobType
- the mob type being attackedenchantedItem
- the item used for the attack- 返回:
- the damage bonus
-
allowedInCreativeTab
Determines whether item variants of this enchantment can be added to a given creative tab with the allowed categories.- 参数:
book
- the item being added to the creative taballowedCategories
- the enchantment categories allowed in the creative tab- 返回:
- whether item variants of this enchantment can be added to a given creative tab with the allowed categories
-