Package com.mineplex.studio.events
Class PlayerAttackCalculationEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.mineplex.studio.events.PlayerAttackCalculationEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerAttackCalculationEvent(@NotNull Player who, @NotNull Entity targetEntity, float baseDamage, float bonusDamage, float attackStrengthScale) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatfloatfloatstatic @NotNull HandlerListinthashCode()voidsetAttackStrengthScale(float attackStrengthScale) voidsetBaseDamage(float baseDamage) voidsetBaseDamageWithStrengthScaleSupplier(@NotNull FloatSupplier baseDamageWithStrengthScaleSupplier) voidsetBonusDamage(float bonusDamage) voidsetBonusDamageWithStrengthScaleSupplier(@NotNull FloatSupplier bonusDamageWithStrengthScaleSupplier) voidsetFinalDamageFunction(@NotNull BiFloatToFloatFunction finalDamageFunction) toString()Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerAttackCalculationEvent
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getTargetEntity
-
getBaseDamage
public float getBaseDamage() -
getBonusDamage
public float getBonusDamage() -
getAttackStrengthScale
public float getAttackStrengthScale() -
getBaseDamageWithStrengthScaleSupplier
-
getBonusDamageWithStrengthScaleSupplier
-
getFinalDamageFunction
-
setBaseDamage
public void setBaseDamage(float baseDamage) -
setBonusDamage
public void setBonusDamage(float bonusDamage) -
setAttackStrengthScale
public void setAttackStrengthScale(float attackStrengthScale) -
setBaseDamageWithStrengthScaleSupplier
public void setBaseDamageWithStrengthScaleSupplier(@NotNull @NotNull FloatSupplier baseDamageWithStrengthScaleSupplier) -
setBonusDamageWithStrengthScaleSupplier
public void setBonusDamageWithStrengthScaleSupplier(@NotNull @NotNull FloatSupplier bonusDamageWithStrengthScaleSupplier) -
setFinalDamageFunction
-
toString
-
equals
-
hashCode
public int hashCode()
-