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, setDescription
protected void init()
CraftTweakerCommand
init
in class CraftTweakerCommand
public void executeCommand(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String[] args)
CraftTweakerCommand
executeCommand
in class CraftTweakerCommand
public 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)
CraftTweakerCommand
getSubSubCommand
in class CraftTweakerCommand
public 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