public class AdvancementCommand extends CommandBase
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AdvancementCommand.ActionType |
(package private) static class |
AdvancementCommand.Mode |
CommandBase.CoordinateArg
Constructor and Description |
---|
AdvancementCommand() |
Modifier and Type | Method and Description |
---|---|
private void |
addChildren(Advancement p_193515_1_,
java.util.List<Advancement> p_193515_2_) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
static Advancement |
findAdvancement(MinecraftServer server,
java.lang.String id) |
private java.util.List<ResourceLocation> |
getAdvancementNames(MinecraftServer server) |
private java.util.List<Advancement> |
getAdvancements(Advancement p_193514_1_,
AdvancementCommand.Mode p_193514_2_) |
java.lang.String |
getName() |
int |
getRequiredPermissionLevel() |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
java.lang.String |
getUsage(ICommandSender sender) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
private void |
perform(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
EntityPlayerMP player,
AdvancementCommand.ActionType p_193516_5_,
AdvancementCommand.Mode p_193516_6_) |
private void |
testAdvancement(ICommandSender p_192552_1_,
EntityPlayerMP p_192552_2_,
Advancement p_192552_3_) |
private void |
testCriterion(ICommandSender p_192554_1_,
EntityPlayerMP p_192554_2_,
Advancement p_192554_3_,
java.lang.String p_192554_4_) |
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
public java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public java.lang.String getUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
private void perform(MinecraftServer server, ICommandSender sender, java.lang.String[] args, EntityPlayerMP player, AdvancementCommand.ActionType p_193516_5_, AdvancementCommand.Mode p_193516_6_) throws CommandException
CommandException
private void addChildren(Advancement p_193515_1_, java.util.List<Advancement> p_193515_2_)
private java.util.List<Advancement> getAdvancements(Advancement p_193514_1_, AdvancementCommand.Mode p_193514_2_)
private void testCriterion(ICommandSender p_192554_1_, EntityPlayerMP p_192554_2_, Advancement p_192554_3_, java.lang.String p_192554_4_) throws CommandException
CommandException
private void testAdvancement(ICommandSender p_192552_1_, EntityPlayerMP p_192552_2_, Advancement p_192552_3_) throws CommandException
CommandException
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase
private java.util.List<ResourceLocation> getAdvancementNames(MinecraftServer server)
public boolean isUsernameIndex(java.lang.String[] args, int index)
isUsernameIndex
in interface ICommand
isUsernameIndex
in class CommandBase
public static Advancement findAdvancement(MinecraftServer server, java.lang.String id) throws CommandException
CommandException