Unicopia/src/main/java/com/minelittlepony/unicopia/UGameEvents.java

20 lines
530 B
Java
Raw Normal View History

package com.minelittlepony.unicopia;
import net.minecraft.util.Identifier;
2022-12-18 22:07:24 +01:00
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.world.event.GameEvent;
public interface UGameEvents {
GameEvent PIE_STOMP = register("pie_stomp", 5);
static GameEvent register(String name, int range) {
Identifier id = Unicopia.id(name);
2022-12-18 22:07:24 +01:00
return Registry.register(Registries.GAME_EVENT, id, new GameEvent(id.toString(), range));
}
static void bootstrap() {
}
}