]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/commands/CustomCommand.java
Add support for custom sphere
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / commands / CustomCommand.java
index 2cd9af9c5c904a7f4b37e7264d69cca256b9e03f..56620ed084fff3879b00ccf0ae73616fb1384e82 100644 (file)
@@ -3,6 +3,7 @@ package com.irtimaled.bbor.client.commands;
 import com.irtimaled.bbor.client.providers.CustomBeaconProvider;
 import com.irtimaled.bbor.client.providers.CustomBoxProvider;
 import com.irtimaled.bbor.client.providers.CustomLineProvider;
+import com.irtimaled.bbor.client.providers.CustomSphereProvider;
 import com.mojang.brigadier.CommandDispatcher;
 import com.mojang.brigadier.builder.LiteralArgumentBuilder;
 import net.minecraft.command.Commands;
@@ -13,17 +14,20 @@ public class CustomCommand {
     private static final String BOX = "box";
     private static final String BEACON = "beacon";
     private static final String LINE = "line";
+    private static final String SPHERE = "sphere";
 
     public static void register(CommandDispatcher<ISuggestionProvider> commandDispatcher) {
         LiteralArgumentBuilder command = Commands.literal(COMMAND)
                 .then(BoxCommandBuilder.build(BOX))
                 .then(BeaconCommandBuilder.build(BEACON))
                 .then(LineCommandBuilder.build(LINE))
+                .then(SphereCommandBuilder.build(SPHERE))
                 .then(Commands.literal(ArgumentNames.CLEAR)
                         .executes(context -> {
                             CustomBoxProvider.clear();
                             CustomBeaconProvider.clear();
                             CustomLineProvider.clear();
+                            CustomSphereProvider.clear();
 
                             CommandHelper.feedback(context, "bbor.commands.custom.cleared.all");
                             return 0;