Class ModifiableEvent<T>
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.player.PlayerEvent
-
- org.kikikan.deadbymoonlight.events.ModifiableEvent<T>
-
- Type Parameters:
T
- The Value that can be modified.
- Direct Known Subclasses:
GetAttemptChanceEvent
,GetChestSearchSpeedEvent
,GetGateOpenSpeedEvent
,GetHealSpeedEvent
,GetItemUsageAmountEvent
,GetKickDamageEvent
,GetKickSpeedEvent
,GetKillerTerrorRadiusEvent
,GetMissedAttackCooldownEvent
,GetPointsEvent
,GetRepairSpeedEvent
,GetScratchMarkDurationEvent
,GetSkillCheckChanceEvent
,GetStunDistanceEvent
,GetStunDurationEvent
,GetSuccessfulAttackCooldownEvent
,GetTotemCleanseSpeedEvent
,GetVaultSlownessEvent
public abstract class ModifiableEvent<T> extends PlayerEvent
Represents an Event that has a modifiable value. Can be stopped, which means its value will no longer be modified.
-
-
Constructor Summary
Constructors Constructor Description ModifiableEvent(PerkUser player, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
Returns the current value.boolean
isStopped()
Checks if the event was stopped.void
setValue(T x)
Sets the value of the Event.void
stop()
Stops the event, meaning any further modifications will be impossible.-
Methods inherited from class org.kikikan.deadbymoonlight.events.player.PlayerEvent
getPerkUser
-
-
-
-
Method Detail
-
getValue
public T getValue()
Returns the current value.- Returns:
- The value of the Event
-
setValue
public void setValue(T x)
Sets the value of the Event. Should be used withgetValue()
in order to apply percentages. Only modifies the value if the event is not stopped.- Parameters:
x
- The new value
-
stop
public final void stop()
Stops the event, meaning any further modifications will be impossible.
-
isStopped
public final boolean isStopped()
Checks if the event was stopped.- Returns:
- True if the event was stopped.
-
-