public class Battle2 extends PixelCommand
| Constructor and Description |
|---|
Battle2(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(net.minecraft.command.CommandSource sender,
java.lang.String[] args) |
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) |
static int |
getTopEarthBlock(net.minecraft.world.World world,
int cpX,
int cpZ)
Gets the height of the top solid block with the specified x/z coordinates.
|
java.lang.String |
getUsage(net.minecraft.command.CommandSource sender) |
getAliases, hasPermissionOtherTarget, setupTargetOrSourceAsTargetpublic Battle2(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher)
public java.lang.String getName()
getName in class PixelCommandpublic java.lang.String getUsage(net.minecraft.command.CommandSource sender)
getUsage in class PixelCommandpublic int getRequiredPermissionLevel()
getRequiredPermissionLevel in class PixelCommandpublic void execute(net.minecraft.command.CommandSource sender,
java.lang.String[] args)
throws net.minecraft.command.CommandException
execute in class PixelCommandnet.minecraft.command.CommandExceptionpublic static int getTopEarthBlock(net.minecraft.world.World world,
int cpX,
int cpZ)
world - The Minecraft world.cpX - The x coordinate to look at.cpZ - The z coordinate to look at.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)
getTabCompletions in class PixelCommand