Class GetRepairSpeedEvent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.player.PlayerEvent
-
- org.kikikan.deadbymoonlight.events.ModifiableEvent<java.lang.Double>
-
- org.kikikan.deadbymoonlight.events.player.survivor.modifiableevents.GetRepairSpeedEvent
-
public final class GetRepairSpeedEvent extends ModifiableEvent<java.lang.Double>
Determines the speed of the repair progress. Contains the Survivor, and the Generator being repaired.
-
-
Constructor Summary
Constructors Constructor Description GetRepairSpeedEvent(Survivor survivor, Generator generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Generator
getGenerator()
Gets the Generator being repaired.boolean
getPlayersDebuff()
Gets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.void
setPlayersDebuff(boolean value)
Sets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.-
Methods inherited from class org.kikikan.deadbymoonlight.events.ModifiableEvent
getValue, isStopped, setValue, stop
-
Methods inherited from class org.kikikan.deadbymoonlight.events.player.PlayerEvent
getPerkUser
-
-
-
-
Method Detail
-
getPlayersDebuff
public boolean getPlayersDebuff()
Gets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.- Returns:
- True if the penalty is activated.
-
setPlayersDebuff
public void setPlayersDebuff(boolean value)
Sets whether the repairing Survivors should suffer from the speed penalty they receive when more than 1 Survivor is repairing the same Generator.- Parameters:
value
- The new value.
-
getGenerator
public Generator getGenerator()
Gets the Generator being repaired.- Returns:
- The Generator being repaired.
-
-