接口的使用
org.bukkit.inventory.meta.components.BlocksAttacksComponent.DamageReduction
-
org.bukkit.inventory.meta.components中BlocksAttacksComponent.DamageReduction的使用
修饰符和类型方法说明BlocksAttacksComponent.addDamageReduction
(@NotNull Collection<DamageType> types, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.BlocksAttacksComponent.addDamageReduction
(@NotNull DamageType type, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.BlocksAttacksComponent.addDamageReduction
(@NotNull Tag<DamageType> tag, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.修饰符和类型方法说明BlocksAttacksComponent.getDamageReductions()
Get the list ofDamageReductions
that apply to this item.修饰符和类型方法说明boolean
BlocksAttacksComponent.removeDamageReduction
(@NotNull BlocksAttacksComponent.DamageReduction reduction) Remove the givenBlocksAttacksComponent.DamageReduction
from this item.修饰符和类型方法说明void
BlocksAttacksComponent.setDamageReductions
(@NotNull List<BlocksAttacksComponent.DamageReduction> reductions) Set the list ofDamageReductions
to apply to this item.