Class FillCurryDexCommand
java.lang.Object
com.pixelmonmod.pixelmon.command.PixelCommand
com.pixelmonmod.pixelmon.command.impl.FillCurryDexCommand
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFillCurryDexCommand
(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
net.minecraft.ChatFormatting
formatCurryFlavorColor
(int curryDexFlavor) Decides what color the text for the flavor should be in the message sent to the player.net.minecraft.ChatFormatting
formatCurryRatingColor
(int curryDexRating) Decides what color the text for the rating should be in the message sent to the player.getTabCompletions
(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos) Methods inherited from class com.pixelmonmod.pixelmon.command.PixelCommand
executeCommand, getAliases, getName, getUsage, hasPermissionOtherTarget, setupTargetOrSourceAsTarget
-
Field Details
-
RATINGS
-
PAGES
-
FLAVORS
-
-
Constructor Details
-
FillCurryDexCommand
public FillCurryDexCommand(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 classPixelCommand
- Throws:
net.minecraft.commands.CommandRuntimeException
com.mojang.brigadier.exceptions.CommandSyntaxException
-
formatCurryFlavorColor
public net.minecraft.ChatFormatting formatCurryFlavorColor(int curryDexFlavor) Decides what color the text for the flavor should be in the message sent to the player.- Parameters:
curryDexFlavor
- The number corresponding to the EnumBerryFlavor- Returns:
- The TextFormatting color of the text.
-
formatCurryRatingColor
public net.minecraft.ChatFormatting formatCurryRatingColor(int curryDexRating) Decides what color the text for the rating should be in the message sent to the player.- Parameters:
curryDexRating
- The number corresponding to the EnumCurryRating- Returns:
- The TextFormatting color of the text.
-
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 - Overrides:
getTabCompletions
in classPixelCommand
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-