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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <V> @UnknownNullability("nullability depends on the relevant ArgumentType & defaultValue") VgetOrDefault(com.mojang.brigadier.context.CommandContext<S> ctx, String name, @UnknownNullability V defaultValue, Class<V> clazz) protected voidprotected voidsendHelp(com.mojang.brigadier.context.CommandContext<S> ctx, WildfireLang header, WildfireLang... commands)
-
Field Details
-
helper
-
-
Constructor Details
-
AbstractWildfireCommand
-
-
Method Details
-
send
protected void send(com.mojang.brigadier.context.CommandContext<S> ctx, net.minecraft.network.chat.Component text) -
getOrDefault
-
sendHelp
protected void sendHelp(com.mojang.brigadier.context.CommandContext<S> ctx, WildfireLang header, WildfireLang... commands)
-