mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
17 lines
752 B
Java
17 lines
752 B
Java
package com.minelittlepony.unicopia.container;
|
|
|
|
import net.fabricmc.fabric.api.screenhandler.v1.ScreenHandlerRegistry;
|
|
import net.fabricmc.fabric.api.screenhandler.v1.ScreenHandlerRegistry.SimpleClientHandlerFactory;
|
|
import net.minecraft.screen.ScreenHandler;
|
|
import net.minecraft.screen.ScreenHandlerType;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
public interface UScreenHandlers {
|
|
ScreenHandlerType<SpellbookScreenHandler> SPELL_BOOK = register("spell_book", SpellbookScreenHandler::new);
|
|
|
|
static <T extends ScreenHandler> ScreenHandlerType<T> register(String name, SimpleClientHandlerFactory<T> factory) {
|
|
return ScreenHandlerRegistry.registerSimple(new Identifier("unicopia", name), factory);
|
|
}
|
|
|
|
static void bootstrap() { }
|
|
}
|