Class DayCareEvent.PostDurationCalculate

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.PostDurationCalculate
Enclosing class:
DayCareEvent

public static class DayCareEvent.PostDurationCalculate extends DayCareEvent
Fired just after the duration of a day care box is set This is not cancellable
  • Field Details

    • box

      protected final DayCareBox box
    • duration

      protected final long duration
  • Constructor Details

    • PostDurationCalculate

      public PostDurationCalculate(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, DayCareBox box, long duration)
  • Method Details

    • getBox

      public DayCareBox getBox()
      Gets the day care box
      Returns:
      The box
    • getDuration

      public long getDuration()
      Gets the calculated duration
      Returns:
      The calculated duration