Class AreaArgumentType

java.lang.Object
de.z0rdak.yawp.commands.arguments.AreaArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<AreaType>

public class AreaArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<AreaType>
  • Constructor Details

    • AreaArgumentType

      public AreaArgumentType()
  • Method Details

    • areaType

      public static AreaArgumentType areaType()
    • getAreaType

      public static AreaType getAreaType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parse

      public AreaType parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<AreaType>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • 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<AreaType>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<AreaType>