Class BattleCommand

java.lang.Object
com.pixelmonmod.pixelmon.command.PixelCommand
com.pixelmonmod.pixelmon.command.impl.BattleCommand

public class BattleCommand extends PixelCommand
Starts a single battle between two players.
  • Constructor Details

    • BattleCommand

      public BattleCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
  • Method Details

    • execute

      public void execute(net.minecraft.commands.CommandSourceStack sender, String[] args) throws net.minecraft.commands.CommandRuntimeException, com.mojang.brigadier.exceptions.CommandSyntaxException
      Overrides:
      execute in class PixelCommand
      Throws:
      net.minecraft.commands.CommandRuntimeException
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getTopEarthBlock

      public static int getTopEarthBlock(net.minecraft.world.level.Level world, int cpX, int cpZ)
      Gets the height of the top solid block with the specified x/z coordinates.
      Parameters:
      world - The Minecraft world.
      cpX - The x coordinate to look at.
      cpZ - The z coordinate to look at.
      Returns:
      The height of the top solid block with the specified x/z coordinates.
    • getTabCompletions

      public List<String> getTabCompletions(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos)
      Overrides:
      getTabCompletions in class PixelCommand