Class FabricServerCommandHelper
java.lang.Object
com.wildfire.fabric.common.FabricServerCommandHelper
- All Implemented Interfaces:
CommandHelper<net.minecraft.commands.CommandSourceStack>, ServerCommandHelper
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerCommandHelper
ServerCommandHelper.CommandPermission -
Field Summary
Fields inherited from interface ServerCommandHelper
COMMAND_PERMISSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack, T> net.minecraft.server.level.ServerPlayergetPlayer(net.minecraft.commands.CommandSourceStack source) com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> voidsendFailure(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message) voidsendSystemMessage(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServerCommandHelper
requirePermissions
-
Constructor Details
-
FabricServerCommandHelper
public FabricServerCommandHelper()
-
-
Method Details
-
literal
public com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> literal(String key) - Specified by:
literalin interfaceCommandHelper<net.minecraft.commands.CommandSourceStack>
-
argument
public <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack, T> argument(String key, com.mojang.brigadier.arguments.ArgumentType<T> type) - Specified by:
argumentin interfaceCommandHelper<net.minecraft.commands.CommandSourceStack>
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer(net.minecraft.commands.CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getPlayerin interfaceCommandHelper<net.minecraft.commands.CommandSourceStack>- Specified by:
getPlayerin interfaceServerCommandHelper- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
sendSystemMessage
public void sendSystemMessage(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message) - Specified by:
sendSystemMessagein interfaceCommandHelper<net.minecraft.commands.CommandSourceStack>
-
sendFailure
public void sendFailure(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message) - Specified by:
sendFailurein interfaceCommandHelper<net.minecraft.commands.CommandSourceStack>
-