Class FontArgument
java.lang.Object
net.darkhax.bookshelf.impl.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 net.minecraft.resources.ResourceLocationgetFont(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)
-
Field Details
-
ARGUMENT
-
FONT_SERIALIZER
public static final net.minecraft.commands.synchronization.ArgumentTypeInfo<FontArgument,?> FONT_SERIALIZER
-
-
Constructor Details
-
FontArgument
public FontArgument()
-
-
Method Details
-
getFont
public static net.minecraft.resources.ResourceLocation getFont(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() -
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>
-