Class DayCareEvent.TimerComplete
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.TimerComplete
- Enclosing class:
- DayCareEvent
Event fired when a timer is complete for a box (for online players only)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
DayCareEvent.HourGlassUsed, DayCareEvent.PostCollect, DayCareEvent.PostConditionStatusUpdate, DayCareEvent.PostDurationCalculate, DayCareEvent.PostEggCalculate, DayCareEvent.PostPokemonAdd, DayCareEvent.PostTimerBegin, DayCareEvent.PreCollect, DayCareEvent.PreConditionStatusUpdate, DayCareEvent.PreDurationCalculate, DayCareEvent.PreEggCalculate, DayCareEvent.PrePokemonAdd, DayCareEvent.PreTimerBegin, DayCareEvent.TimerComplete
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimerComplete
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, DayCareBox box, long duration) -
Method Summary
Modifier and TypeMethodDescriptiongetBox()
The box the timer completed forlong
The total duration the timer tookMethods inherited from class com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
getDayCare, getParty, getPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
box
-
duration
protected final long duration
-
-
Constructor Details
-
TimerComplete
public TimerComplete(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, DayCareBox box, long duration)
-
-
Method Details
-
getBox
The box the timer completed for- Returns:
- The box
-
getDuration
public long getDuration()The total duration the timer took- Returns:
- The duration
-