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

    Fields
    Modifier and Type
    Field
    Description
    static final FontArgument
     
    static final net.minecraft.commands.synchronization.ArgumentTypeInfo<FontArgument,?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,net.minecraft.resources.ResourceLocation>
     
    static com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,net.minecraft.resources.ResourceLocation>
    argument(String argName)
     
    static net.minecraft.resources.ResourceLocation
    get(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
     
    static net.minecraft.resources.ResourceLocation
    get(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.ResourceLocation
    parse(com.mojang.brigadier.StringReader reader)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType

    parse
  • Field Details

    • ARGUMENT

      public static final FontArgument 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:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.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:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>