2022-09-30 00:23:16 +02:00
|
|
|
package com.minelittlepony.unicopia;
|
|
|
|
|
|
|
|
import net.minecraft.util.Identifier;
|
2022-12-18 22:07:24 +01:00
|
|
|
import net.minecraft.registry.Registry;
|
2024-09-26 22:36:35 +02:00
|
|
|
import net.minecraft.registry.entry.RegistryEntry;
|
2022-12-18 22:07:24 +01:00
|
|
|
import net.minecraft.registry.Registries;
|
2022-09-30 00:23:16 +02:00
|
|
|
import net.minecraft.world.event.GameEvent;
|
|
|
|
|
|
|
|
public interface UGameEvents {
|
|
|
|
|
2024-09-26 22:36:35 +02:00
|
|
|
RegistryEntry<GameEvent> PIE_STOMP = register("pie_stomp", 5);
|
2022-09-30 00:23:16 +02:00
|
|
|
|
2024-09-26 22:36:35 +02:00
|
|
|
static RegistryEntry<GameEvent> register(String name, int range) {
|
2022-09-30 00:23:16 +02:00
|
|
|
Identifier id = Unicopia.id(name);
|
2024-09-26 22:36:35 +02:00
|
|
|
return Registry.registerReference(Registries.GAME_EVENT, id, new GameEvent(range));
|
2022-09-30 00:23:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static void bootstrap() {
|
|
|
|
}
|
|
|
|
}
|