mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
20 lines
605 B
Java
20 lines
605 B
Java
package com.minelittlepony.unicopia;
|
|
|
|
import net.minecraft.util.Identifier;
|
|
import net.minecraft.registry.Registry;
|
|
import net.minecraft.registry.entry.RegistryEntry;
|
|
import net.minecraft.registry.Registries;
|
|
import net.minecraft.world.event.GameEvent;
|
|
|
|
public interface UGameEvents {
|
|
|
|
RegistryEntry<GameEvent> PIE_STOMP = register("pie_stomp", 5);
|
|
|
|
static RegistryEntry<GameEvent> register(String name, int range) {
|
|
Identifier id = Unicopia.id(name);
|
|
return Registry.registerReference(Registries.GAME_EVENT, id, new GameEvent(range));
|
|
}
|
|
|
|
static void bootstrap() {
|
|
}
|
|
}
|