package com.keuin.kbackupfabric.operation; import com.mojang.brigadier.context.CommandContext; import net.minecraft.server.command.ServerCommandSource; public abstract class Confirmable { public static Confirmable createRestoreOperation(CommandContext context, String backupName) { return new RestoreOperation(context, backupName); } public static Confirmable createDeleteOperation(CommandContext context, String backupName) { return new DeleteOperation(context, backupName); } public abstract boolean confirm(); @Override public abstract String toString(); }