public class FillCurryDexCommand extends PixelCommand
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
FLAVORS |
static java.util.List<java.lang.String> |
PAGES |
static java.util.List<java.lang.String> |
RATINGS |
Constructor and Description |
---|
FillCurryDexCommand(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) |
net.minecraft.util.text.TextFormatting |
formatCurryFlavorColor(int curryDexFlavor)
Decides what color the text for the flavor should be in the message sent to the player.
|
net.minecraft.util.text.TextFormatting |
formatCurryRatingColor(int curryDexRating)
Decides what color the text for the rating should be in the message sent to the player.
|
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) |
getAliases, getName, getRequiredPermissionLevel, getUsage, hasPermissionOtherTarget, setupTargetOrSourceAsTarget
public static final java.util.List<java.lang.String> RATINGS
public static final java.util.List<java.lang.String> PAGES
public static final java.util.List<java.lang.String> FLAVORS
public FillCurryDexCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher)
public void execute(net.minecraft.command.CommandSource sender, java.lang.String[] args) throws net.minecraft.command.CommandException, com.mojang.brigadier.exceptions.CommandSyntaxException
execute
in class PixelCommand
net.minecraft.command.CommandException
com.mojang.brigadier.exceptions.CommandSyntaxException
public net.minecraft.util.text.TextFormatting formatCurryFlavorColor(int curryDexFlavor)
curryDexFlavor
- The number corresponding to the EnumBerryFlavorpublic net.minecraft.util.text.TextFormatting formatCurryRatingColor(int curryDexRating)
curryDexRating
- The number corresponding to the EnumCurryRatingpublic 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) throws com.mojang.brigadier.exceptions.CommandSyntaxException
getTabCompletions
in class PixelCommand
com.mojang.brigadier.exceptions.CommandSyntaxException