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, setupTargetOrSourceAsTarget
public Battle2(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher)
public java.lang.String getName()
getName
in class PixelCommand
public java.lang.String getUsage(net.minecraft.command.CommandSource sender)
getUsage
in class PixelCommand
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class PixelCommand
public void execute(net.minecraft.command.CommandSource sender, java.lang.String[] args) throws net.minecraft.command.CommandException
execute
in class PixelCommand
net.minecraft.command.CommandException
public 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