Class PixelCommand

java.lang.Object
com.pixelmonmod.pixelmon.command.PixelCommand
Direct Known Subclasses:
BankTransferCommand, BattleCommand, BattleLogCommand, BattleTestsCommand, BreedCommand, CatchingCharmCommand, CheckSpawnsCommand, CompEditCommand, CompleteAllQuestsCommand, CompSearchCommand, CompSeeCommand, CompTakeCommand, CompTestCommand, DevScoreboardCommand, DevTempPartyCommand, DexCheckCommand, DisableBattleCommand, DoLegendarySpawnCommand, DynamaxBandCommand, EggStepsCommand, EndBattleCommand, EvolveCommand, EvsCommand, ExpCharmCommand, FaintCommand, FillCurryDexCommand, FillDexCommand, FreezeCommand, GenerateStorageTestFileCommand, GiftCommand, GiveMoneyCommand, GivePixelSpriteCommand, HatchCommand, HealCommand, HiddenPowerCommand, IvsCommand, LearnMoveCommand, LevellingCommand, MarkCharmCommand, MegaRingCommand, MoveListCommand, NpcKillCommand, OvalCharmCommand, PcCommand, PokeBombCommand, PokeCloneCommand, PokeColorCommand, PokeDelCommand, PokeEditCommand, PokeGiveCommand, PokeKillCommand, PokeResetCommand, PokeRestartCommand, PokeRetrieveCommand, PokeSeeCommand, PokeSpawnCommand, PokeTakeCommand, PokeTestCommand, QuestDataCommand, RedeemFossilCommand, ReloadMoveAnimations, ReloadQuestsCommand, ResetAllQuestsCommand, SetPartyCommand, SetRaidCommand, SetStageCommand, ShinyCharmCommand, SpawningCommand, SpectateCommand, SpecTestCommand, StarterCommand, Stats, StatsReset, StatueSpawnCommand, TCGCommand, TeachCommand, TierShow, TMCommand, TradeSimCommand, WarpPlateCommand, WikiCommand

public abstract class PixelCommand extends Object
  • Constructor Details

    • PixelCommand

      public PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, String name, String usage, int permissionLevel)
    • PixelCommand

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

    • getName

      public String getName()
    • getUsage

      public String getUsage(net.minecraft.commands.CommandSourceStack sender)
    • getAliases

      public List<String> getAliases()
    • executeCommand

      public boolean executeCommand(net.minecraft.commands.CommandSourceStack sender, String[] args) throws net.minecraft.commands.CommandRuntimeException, com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      net.minecraft.commands.CommandRuntimeException
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • execute

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

      public List<String> getTabCompletions(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setupTargetOrSourceAsTarget

      public String[] setupTargetOrSourceAsTarget(net.minecraft.commands.CommandSourceStack sender, String[] args, int playerIndex) throws com.mojang.brigadier.exceptions.CommandSyntaxException, net.minecraft.commands.CommandRuntimeException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      net.minecraft.commands.CommandRuntimeException
    • hasPermissionOtherTarget

      public boolean hasPermissionOtherTarget(net.minecraft.commands.CommandSourceStack sender)