Package de.z0rdak.yawp.handler
Class CommandInterceptor
java.lang.Object
de.z0rdak.yawp.handler.CommandInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inthandleDimCommandExecution(com.mojang.brigadier.context.CommandContextBuilder<net.minecraft.commands.CommandSourceStack> cmdContext, CommandSourceType cmdSrcType) static inthandleModCommands(com.mojang.brigadier.ParseResults<net.minecraft.commands.CommandSourceStack> parseResults, String command) Handler for managing different command permissions.static inthandleRegionCmdExecution(com.mojang.brigadier.context.CommandContextBuilder<net.minecraft.commands.CommandSourceStack> cmdContext, List<String> nodeNames, CommandSourceType cmdSrcType)
-
Constructor Details
-
CommandInterceptor
public CommandInterceptor()
-
-
Method Details
-
handleModCommands
public static int handleModCommands(com.mojang.brigadier.ParseResults<net.minecraft.commands.CommandSourceStack> parseResults, String command) throws com.mojang.brigadier.exceptions.CommandSyntaxException Handler for managing different command permissions.- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
handleRegionCmdExecution
public static int handleRegionCmdExecution(com.mojang.brigadier.context.CommandContextBuilder<net.minecraft.commands.CommandSourceStack> cmdContext, List<String> nodeNames, CommandSourceType cmdSrcType) -
handleDimCommandExecution
public static int handleDimCommandExecution(com.mojang.brigadier.context.CommandContextBuilder<net.minecraft.commands.CommandSourceStack> cmdContext, CommandSourceType cmdSrcType)
-