接口的使用
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 ofDamageReductionsthat apply to this item.修饰符和类型方法说明booleanBlocksAttacksComponent.removeDamageReduction(@NotNull BlocksAttacksComponent.DamageReduction reduction) Remove the givenBlocksAttacksComponent.DamageReductionfrom this item.修饰符和类型方法说明voidBlocksAttacksComponent.setDamageReductions(@NotNull List<BlocksAttacksComponent.DamageReduction> reductions) Set the list ofDamageReductionsto apply to this item.