Class FontArgument
java.lang.Object
net.darkhax.bookshelf.common.api.commands.args.FontArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
public class FontArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FontArgumentstatic final net.minecraft.commands.synchronization.ArgumentTypeInfo<FontArgument, ?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack, net.minecraft.resources.ResourceLocation> argument()static com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack, net.minecraft.resources.ResourceLocation> static net.minecraft.resources.ResourceLocationget(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) static net.minecraft.resources.ResourceLocationget(String argName, com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) net.minecraft.resources.ResourceLocationparse(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
ARGUMENT
-
SERIALIZER
public static final net.minecraft.commands.synchronization.ArgumentTypeInfo<FontArgument,?> SERIALIZER
-
-
Constructor Details
-
FontArgument
public FontArgument()
-
-
Method Details
-
get
public static net.minecraft.resources.ResourceLocation get(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) -
get
public static net.minecraft.resources.ResourceLocation get(String argName, com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) -
argument
public static com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,net.minecraft.resources.ResourceLocation> argument() -
argument
public static com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,net.minecraft.resources.ResourceLocation> argument(String argName) -
parse
public net.minecraft.resources.ResourceLocation parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
-