|
5 | 5 | import com.lx862.svrutil.commands.*;
|
6 | 6 | import com.mojang.brigadier.CommandDispatcher;
|
7 | 7 | import com.mojang.brigadier.context.CommandContext;
|
| 8 | +import net.minecraft.command.CommandRegistryAccess; |
8 | 9 | import net.minecraft.server.command.ServerCommandSource;
|
9 | 10 |
|
10 | 11 | public class Commands {
|
11 | 12 |
|
12 |
| - public static void register(CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher) { |
13 |
| - afk.register(dispatcher); |
14 |
| - barrierblock.register(dispatcher); |
15 |
| - clienttime.register(dispatcher); |
16 |
| - clientweather.register(dispatcher); |
17 |
| - cmdblock.register(dispatcher); |
18 |
| - fancyKick.register(dispatcher); |
19 |
| - feed.register(dispatcher); |
20 |
| - fly.register(dispatcher); |
21 |
| - gma.register(dispatcher); |
22 |
| - gmc.register(dispatcher); |
23 |
| - gms.register(dispatcher); |
24 |
| - gmsp.register(dispatcher); |
25 |
| - heal.register(dispatcher); |
26 |
| - playsoundarea.register(dispatcher); |
27 |
| - rootCommand.register(dispatcher); |
28 |
| - lightblock.register(dispatcher); |
29 |
| - opLevel.register(dispatcher); |
30 |
| - nether.register(dispatcher); |
31 |
| - overworld.register(dispatcher); |
32 |
| - r.register(dispatcher); |
33 |
| - selfkill.register(dispatcher); |
34 |
| - spawn.register(dispatcher); |
35 |
| - spd.register(dispatcher); |
36 |
| - spectate.register(dispatcher); |
37 |
| - silentTp.register(dispatcher); |
38 |
| - theend.register(dispatcher); |
39 |
| - unspectate.register(dispatcher); |
40 |
| - where.register(dispatcher); |
| 13 | + public static void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess) { |
| 14 | + AfkCommand.register(dispatcher, registryAccess); |
| 15 | + BarrierBlockCommand.register(dispatcher, registryAccess); |
| 16 | + ClientTimeCommand.register(dispatcher, registryAccess); |
| 17 | + ClientWeatherCommand.register(dispatcher, registryAccess); |
| 18 | + CmdBlockCommand.register(dispatcher, registryAccess); |
| 19 | + FancyKickCommand.register(dispatcher, registryAccess); |
| 20 | + FeedCommand.register(dispatcher, registryAccess); |
| 21 | + FlyCommand.register(dispatcher, registryAccess); |
| 22 | + GmaCommand.register(dispatcher, registryAccess); |
| 23 | + GmcCommand.register(dispatcher, registryAccess); |
| 24 | + GmsCommand.register(dispatcher, registryAccess); |
| 25 | + GmspCommand.register(dispatcher, registryAccess); |
| 26 | + HealCommand.register(dispatcher, registryAccess); |
| 27 | + PlaySoundAreaCommand.register(dispatcher, registryAccess); |
| 28 | + RootCommand.register(dispatcher, registryAccess); |
| 29 | + LightBlockCommand.register(dispatcher, registryAccess); |
| 30 | + OpLevelCommand.register(dispatcher, registryAccess); |
| 31 | + NetherCommand.register(dispatcher, registryAccess); |
| 32 | + OverworldCommand.register(dispatcher, registryAccess); |
| 33 | + RCommand.register(dispatcher, registryAccess); |
| 34 | + SelfKillCommand.register(dispatcher, registryAccess); |
| 35 | + SpawnCommand.register(dispatcher, registryAccess); |
| 36 | + SpdCommand.register(dispatcher, registryAccess); |
| 37 | + SpectateCommand.register(dispatcher, registryAccess); |
| 38 | + SilentTpCommand.register(dispatcher, registryAccess); |
| 39 | + TheEndCommand.register(dispatcher, registryAccess); |
| 40 | + UnspectateCommand.register(dispatcher, registryAccess); |
| 41 | + WhereCommand.register(dispatcher, registryAccess); |
41 | 42 | }
|
42 | 43 |
|
43 | 44 | public static void finishedExecution(CommandContext<ServerCommandSource> context, CommandEntry defaultEntry) {
|
|
0 commit comments