Search in sources :

Example 1 with SleepFinishedTimeEvent

use of net.minecraftforge.event.world.SleepFinishedTimeEvent in project MinecraftForge by MinecraftForge.

the class ForgeEventFactory method onSleepFinished.

public static long onSleepFinished(ServerLevel world, long newTime, long minTime) {
    SleepFinishedTimeEvent event = new SleepFinishedTimeEvent(world, newTime, minTime);
    MinecraftForge.EVENT_BUS.post(event);
    return event.getNewTime();
}
Also used : SleepFinishedTimeEvent(net.minecraftforge.event.world.SleepFinishedTimeEvent)

Aggregations

SleepFinishedTimeEvent (net.minecraftforge.event.world.SleepFinishedTimeEvent)1