接口的使用
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) 向此组件添加一个新的伤害减免, 该减免针对特定类型的攻击.BlocksAttacksComponent.addDamageReduction(@NotNull DamageType type, float base, float factor, float horizontalBlockingAngle) 向此组件添加一个新的伤害减免, 该减免针对特定类型的攻击.BlocksAttacksComponent.addDamageReduction(@NotNull Tag<DamageType> tag, float base, float factor, float horizontalBlockingAngle) 向此组件添加一个新的伤害减免, 该减免针对特定类型的攻击.修饰符和类型方法说明booleanBlocksAttacksComponent.removeDamageReduction(@NotNull BlocksAttacksComponent.DamageReduction reduction) 从此物品中移除给定的伤害减免.修饰符和类型方法说明voidBlocksAttacksComponent.setDamageReductions(@NotNull List<BlocksAttacksComponent.DamageReduction> reductions) 设置要应用于此物品的伤害减免列表.