Package com.pixelmonmod.pixelmon.command
Class PixelCommand
java.lang.Object
com.pixelmonmod.pixelmon.command.PixelCommand
- Direct Known Subclasses:
BankTransferCommand
,BattleCommand
,BattleLogCommand
,BattleTestsCommand
,BreedCommand
,CatchingCharmCommand
,CheckSpawnsCommand
,CompEditCommand
,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
,OvalCharmCommand
,PcCommand
,PokeBombCommand
,PokeCloneCommand
,PokeColorCommand
,PokeDelCommand
,PokeEditCommand
,PokeGiveCommand
,PokeKillCommand
,PokeResetCommand
,PokeRestartCommand
,PokeRetrieveCommand
,PokeSeeCommand
,PokeSpawnCommand
,PokeTakeCommand
,PokeTestCommand
,RedeemFossilCommand
,ReloadMoveAnimations
,SetPartyCommand
,SetRaidCommand
,ShinyCharmCommand
,SpawningCommand
,SpectateCommand
,SpecTestCommand
,StarterCommand
,Stats
,StatsReset
,StatueSpawnCommand
,TCGCommand
,TeachCommand
,TierShow
,TMCommand
,TradeSimCommand
,WarpPlateCommand
,WikiCommand
-
Constructor Summary
ConstructorDescriptionPixelCommand
(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) PixelCommand
(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, String name, String usage, int permissionLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
executeCommand
(net.minecraft.commands.CommandSourceStack sender, String[] args) getName()
getTabCompletions
(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos) getUsage
(net.minecraft.commands.CommandSourceStack sender) boolean
hasPermissionOtherTarget
(net.minecraft.commands.CommandSourceStack sender) String[]
setupTargetOrSourceAsTarget
(net.minecraft.commands.CommandSourceStack sender, String[] args, int playerIndex)
-
Constructor Details
-
PixelCommand
-
PixelCommand
public PixelCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
-
-
Method Details
-
getName
-
getUsage
-
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)
-