Class DayCareEvent.PostTimerBegin

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

public static class DayCareEvent.PostTimerBegin extends DayCareEvent
This event is fired just after the breeding timer begins This is not cancellable
  • Field Details

    • box

      protected final DayCareBox box
    • duration

      protected final long duration
  • Constructor Details

    • PostTimerBegin

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

    • getBox

      public DayCareBox getBox()
      Gets the box about to begin
      Returns:
      The box
    • getDuration

      public long getDuration()
      The duration in milliseconds the timer will last
      Returns:
      The duration