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();
}
Aggregations