Class DayCareEvent.PreTimerBegin

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

public static class DayCareEvent.PreTimerBegin extends DayCareEvent
This event is fired just before the breeding timer begins Cancelling this will prevent it from beginning
  • Field Details

    • box

      protected final DayCareBox box
    • duration

      protected long duration
  • Constructor Details

    • PreTimerBegin

      public PreTimerBegin(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
    • setDuration

      public void setDuration(long duration)
      Sets the duration in milliseconds
      Parameters:
      duration - The duration