public static class DayCareEvent.PreDurationCalculate 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 |
---|
PreDurationCalculate(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
DayCareBox box,
long duration) |
Modifier and Type | Method and Description |
---|---|
DayCareBox |
getBox()
Gets the day care box
|
long |
getDuration()
Gets the calculated duration
|
void |
setDuration(long duration)
Sets the calculated duration
|
getDayCare, getParty, getPlayer
protected final DayCareBox box
protected long duration
public PreDurationCalculate(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party, DayCareBox box, long duration)
public DayCareBox getBox()
public long getDuration()
public void setDuration(long duration)
duration
-