mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
19 lines
491 B
Java
19 lines
491 B
Java
|
package com.minelittlepony.unicopia;
|
||
|
|
||
|
import net.minecraft.util.Identifier;
|
||
|
import net.minecraft.util.registry.Registry;
|
||
|
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);
|
||
|
return Registry.register(Registry.GAME_EVENT, id, new GameEvent(id.toString(), range));
|
||
|
}
|
||
|
|
||
|
static void bootstrap() {
|
||
|
}
|
||
|
}
|