Class FabricServerCommandHelper

java.lang.Object
com.wildfire.fabric.common.FabricServerCommandHelper
All Implemented Interfaces:
CommandHelper<net.minecraft.commands.CommandSourceStack>, ServerCommandHelper

public class FabricServerCommandHelper extends Object implements ServerCommandHelper
  • Constructor Details

    • FabricServerCommandHelper

      public FabricServerCommandHelper()
  • Method Details

    • literal

      public com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> literal(String key)
      Specified by:
      literal in interface CommandHelper<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:
      argument in interface CommandHelper<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:
      getPlayer in interface CommandHelper<net.minecraft.commands.CommandSourceStack>
      Specified by:
      getPlayer in interface ServerCommandHelper
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • sendSystemMessage

      public void sendSystemMessage(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message)
      Specified by:
      sendSystemMessage in interface CommandHelper<net.minecraft.commands.CommandSourceStack>
    • sendFailure

      public void sendFailure(net.minecraft.commands.CommandSourceStack source, net.minecraft.network.chat.Component message)
      Specified by:
      sendFailure in interface CommandHelper<net.minecraft.commands.CommandSourceStack>