Class AbstractWildfireCommand<T extends CommandHelper<S>, S extends net.minecraft.commands.SharedSuggestionProvider>

java.lang.Object
com.wildfire.common.command.AbstractWildfireCommand<T,S>
Direct Known Subclasses:
MannequinCommands, WildfireClientCommand, WildfireServerCommand

public abstract class AbstractWildfireCommand<T extends CommandHelper<S>, S extends net.minecraft.commands.SharedSuggestionProvider> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <V> @UnknownNullability("nullability depends on the relevant ArgumentType & defaultValue") V
    getOrDefault(com.mojang.brigadier.context.CommandContext<S> ctx, String name, @UnknownNullability V defaultValue, Class<V> clazz)
     
    protected void
    send(com.mojang.brigadier.context.CommandContext<S> ctx, net.minecraft.network.chat.Component text)
     
    protected void
    sendHelp(com.mojang.brigadier.context.CommandContext<S> ctx, WildfireLang header, WildfireLang... commands)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractWildfireCommand

      protected AbstractWildfireCommand(T helper)
  • Method Details

    • send

      protected void send(com.mojang.brigadier.context.CommandContext<S> ctx, net.minecraft.network.chat.Component text)
    • getOrDefault

      protected <V> @UnknownNullability("nullability depends on the relevant ArgumentType & defaultValue") V getOrDefault(com.mojang.brigadier.context.CommandContext<S> ctx, String name, @UnknownNullability V defaultValue, Class<V> clazz)
    • sendHelp

      protected void sendHelp(com.mojang.brigadier.context.CommandContext<S> ctx, WildfireLang header, WildfireLang... commands)