Class GetItemStatsEvent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.player.PlayerEvent
-
- org.kikikan.deadbymoonlight.events.player.survivor.modifiableevents.GetItemStatsEvent
-
public final class GetItemStatsEvent extends PlayerEvent
Determines the properties of the Item that got opened by the Survivor. The Durability and Modifier can only be multiplied by a number greater than 0.
-
-
Constructor Summary
Constructors Constructor Description GetItemStatsEvent(Survivor survivor, float modifier, float durability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getDurability()
Gets the durability of the Item.float
getModifier()
Gets the modifier value of the Item.void
multiplyDurability(float multiplier)
Multiplies the durability with the specified number.void
multiplyModifier(float multiplier)
Multiplies the modifier with the specified number.-
Methods inherited from class org.kikikan.deadbymoonlight.events.player.PlayerEvent
getPerkUser
-
-
-
-
Constructor Detail
-
GetItemStatsEvent
public GetItemStatsEvent(Survivor survivor, float modifier, float durability)
-
-
Method Detail
-
getModifier
public float getModifier()
Gets the modifier value of the Item.- Returns:
- The modifier value of the Item.
-
getDurability
public float getDurability()
Gets the durability of the Item.- Returns:
- The durability of the Item.
-
multiplyDurability
public void multiplyDurability(float multiplier)
Multiplies the durability with the specified number.- Parameters:
multiplier
- The number used for the multiplication.
-
multiplyModifier
public void multiplyModifier(float multiplier)
Multiplies the modifier with the specified number.- Parameters:
multiplier
- The number used for the multiplication.
-
-