接口 BlocksAttacksComponent.DamageReduction
- 所有超级接口:
ConfigurationSerializable
- 封闭接口:
- BlocksAttacksComponent
A damage reduction for a specific set of damage types.
-
方法概要
修饰符和类型方法说明float
getBase()
Gets the constant amount of damage to be blocked.float
Gets the proportion of damage to be blocked.float
Gets the maximum angle at which attacks will be blocked (defaults to 90).getTypes()
Gets the types to which this reduction applies.void
setBase
(float base) Sets the constant amount of damage to be blocked.void
setFactor
(float factor) Sets the proportion of damage to be blocked.void
setHorizontalBlockingAngle
(float horizontalBlockingAngle) Sets the maximum angle at which attacks will be blocked (defaults to 90).void
setTypes
(@Nullable Collection<DamageType> types) Sets the types to which this reduction applies.void
setTypes
(@Nullable DamageType type) Sets the types to which this reduction applies.void
setTypes
(@Nullable Tag<DamageType> tag) Sets the types to which this reduction applies.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getTypes
Gets the types to which this reduction applies.- 返回:
- the damage types
-
setTypes
Sets the types to which this reduction applies.- 参数:
type
- the damage types
-
setTypes
Sets the types to which this reduction applies.- 参数:
types
- the damage types
-
setTypes
Sets the types to which this reduction applies.- 参数:
tag
- the damage tag
-
getBase
float getBase()Gets the constant amount of damage to be blocked.- 返回:
- base block amount
-
setBase
void setBase(float base) Sets the constant amount of damage to be blocked.- 参数:
base
- new base amount
-
getFactor
float getFactor()Gets the proportion of damage to be blocked.- 返回:
- base blocking factor
-
setFactor
void setFactor(float factor) Sets the proportion of damage to be blocked.- 参数:
factor
- new blocking factor
-
getHorizontalBlockingAngle
float getHorizontalBlockingAngle()Gets the maximum angle at which attacks will be blocked (defaults to 90).- 返回:
- maximum blocking angle
-
setHorizontalBlockingAngle
void setHorizontalBlockingAngle(float horizontalBlockingAngle) Sets the maximum angle at which attacks will be blocked (defaults to 90).- 参数:
horizontalBlockingAngle
- new blocking angle
-