personthecat.catlib.event.lifecycle.GameReadyEvent Maven / Gradle / Ivy
package personthecat.catlib.event.lifecycle;
import personthecat.catlib.event.LibEvent;
import personthecat.catlib.util.McUtils;
public class GameReadyEvent {
public static final LibEvent CLIENT =
LibEvent.create(callbacks -> () -> callbacks.forEach(Runnable::run));
public static final LibEvent SERVER =
LibEvent.create(callbacks -> () -> callbacks.forEach(Runnable::run));
public static final LibEvent COMMON =
McUtils.isClientSide() ? CLIENT : SERVER;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy