Class SleepFinishedTimeEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
net.neoforged.neoforge.event.level.SleepFinishedTimeEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class SleepFinishedTimeEvent extends LevelEvent implements net.neoforged.bus.api.ICancellableEvent
This event is fired to adjust the clock of a level after sleep.
  • Field Details

  • Constructor Details

  • Method Details

    • getAdjustment

      public ClockAdjustment getAdjustment()
      Returns the adjustment that will be made to the clock when the event is not canceled.
      Returns:
      the adjustment that will be made to the clock when the event is not canceled
    • setAdjustment

      public void setAdjustment(ClockAdjustment adjustment)
      Sets the new time which should be set when all players wake up
      Parameters:
      adjustment - The adjustment that should be made to the levels clock when this event isn't canceled.