public class NamesCommand extends CraftTweakerCommand
subCommandName| Constructor and Description |
|---|
NamesCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createOutputForItem(net.minecraft.item.ItemStack stack,
java.util.List<crafttweaker.mc1120.commands.NamesCommand.NameCommandParams> paramList)
Creates the output for the given
|
void |
executeCommand(net.minecraft.server.MinecraftServer server,
net.minecraft.command.ICommandSender sender,
java.lang.String[] args)
Has to be overwritten by the commands
|
java.util.List<java.lang.String> |
getSubSubCommand(net.minecraft.server.MinecraftServer server,
net.minecraft.command.ICommandSender sender,
java.lang.String[] args,
net.minecraft.util.math.BlockPos targetPos)
Has to be overwritten by the Commands when they need subcommands below the first one
|
protected void |
init()
Has to be overwritten
Used to set the description and all other values
Better for viability, as the constructor is not that full then
|
static java.lang.String |
prepareForCSV(java.lang.String string) |
getDescription, getSubCommandName, setDescriptionprotected void init()
CraftTweakerCommandinit in class CraftTweakerCommandpublic void executeCommand(net.minecraft.server.MinecraftServer server,
net.minecraft.command.ICommandSender sender,
java.lang.String[] args)
CraftTweakerCommandexecuteCommand in class CraftTweakerCommandargs - Has only the args after this original eventpublic java.util.List<java.lang.String> getSubSubCommand(net.minecraft.server.MinecraftServer server,
net.minecraft.command.ICommandSender sender,
java.lang.String[] args,
@Nullable
net.minecraft.util.math.BlockPos targetPos)
CraftTweakerCommandgetSubSubCommand in class CraftTweakerCommandargs - Args are only from past the initial commandpublic static java.lang.String prepareForCSV(java.lang.String string)
protected java.lang.String createOutputForItem(net.minecraft.item.ItemStack stack,
java.util.List<crafttweaker.mc1120.commands.NamesCommand.NameCommandParams> paramList)
stack - ItemStack which the data is going to be dumped forparamList - List of how it should be formatted