19 lines
796 B
Java
19 lines
796 B
Java
package jesse.keeblarcraft.GuiMgr;
|
|
|
|
import jesse.keeblarcraft.Keeblarcraft;
|
|
import net.fabricmc.fabric.api.screenhandler.v1.ExtendedScreenHandlerType;
|
|
import net.minecraft.registry.Registries;
|
|
import net.minecraft.registry.Registry;
|
|
import net.minecraft.screen.ScreenHandlerType;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
public class ScreenHandlerRegistration {
|
|
public static final ScreenHandlerType<FactionBlockScreenHandler> FACTION_BLOCK_SCREEN_HANDLER =
|
|
Registry.register(Registries.SCREEN_HANDLER, new Identifier(Keeblarcraft.MOD_ID, "faction_block"),
|
|
new ExtendedScreenHandlerType<>(FactionBlockScreenHandler::new));
|
|
|
|
public static void registerScreenHandlers() {
|
|
Keeblarcraft.LOGGER.info("Registering screen handlers for " + Keeblarcraft.MOD_ID);
|
|
}
|
|
}
|