blob: c8fdd71b368cc55d7dc32c33c365398a720fa0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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<ServerCommandSource> context, String backupName) {
return new RestoreOperation(context, backupName);
}
public static Confirmable createDeleteOperation(CommandContext<ServerCommandSource> context, String backupName) {
return new DeleteOperation(context, backupName);
}
public abstract boolean confirm();
@Override
public abstract String toString();
}
|