public static class DayCareEvent.PreTimerBegin extends 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| Modifier and Type | Field and Description |
|---|---|
protected DayCareBox |
box |
protected long |
duration |
| Constructor and Description |
|---|
PreTimerBegin(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
DayCareBox box,
long duration) |
| Modifier and Type | Method and Description |
|---|---|
DayCareBox |
getBox()
Gets the box about to begin
|
long |
getDuration()
The duration in milliseconds the timer will last
|
void |
setDuration(long duration)
Sets the duration in milliseconds
|
getDayCare, getParty, getPlayerprotected final DayCareBox box
protected long duration
public PreTimerBegin(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
DayCareBox box,
long duration)
public DayCareBox getBox()
public long getDuration()
public void setDuration(long duration)
duration - The duration