public abstract class PixelCommand
extends java.lang.Object
Constructor and Description |
---|
PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher) |
PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher,
java.lang.String name,
java.lang.String usage,
int permissionLevel) |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(net.minecraft.command.CommandSource sender,
java.lang.String[] args) |
java.util.List<java.lang.String> |
getAliases() |
java.lang.String |
getName() |
int |
getRequiredPermissionLevel() |
java.util.List<java.lang.String> |
getTabCompletions(net.minecraft.server.MinecraftServer server,
net.minecraft.command.CommandSource sender,
java.lang.String[] args,
net.minecraft.util.math.BlockPos pos) |
java.lang.String |
getUsage(net.minecraft.command.CommandSource sender) |
boolean |
hasPermissionOtherTarget(net.minecraft.command.CommandSource sender) |
java.lang.String[] |
setupTargetOrSourceAsTarget(net.minecraft.command.CommandSource sender,
java.lang.String[] args,
int playerIndex) |
public PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher, java.lang.String name, java.lang.String usage, int permissionLevel)
public PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher)
public java.lang.String getName()
public java.lang.String getUsage(net.minecraft.command.CommandSource sender)
public int getRequiredPermissionLevel()
public java.util.List<java.lang.String> getAliases()
public abstract void execute(net.minecraft.command.CommandSource sender, java.lang.String[] args) throws net.minecraft.command.CommandException, com.mojang.brigadier.exceptions.CommandSyntaxException
net.minecraft.command.CommandException
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.List<java.lang.String> getTabCompletions(net.minecraft.server.MinecraftServer server, net.minecraft.command.CommandSource sender, java.lang.String[] args, net.minecraft.util.math.BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.lang.String[] setupTargetOrSourceAsTarget(net.minecraft.command.CommandSource sender, java.lang.String[] args, int playerIndex) throws net.minecraft.command.CommandException
net.minecraft.command.CommandException
public boolean hasPermissionOtherTarget(net.minecraft.command.CommandSource sender)