Class WerewolfFormArgument

java.lang.Object
de.teamlapen.werewolves.command.arguments.WerewolfFormArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>

public class WerewolfFormArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>
  • Constructor Details

    • WerewolfFormArgument

      public WerewolfFormArgument(@Nonnull Collection<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm> allowedForms)
  • Method Details

    • getForm

      public static de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm getForm(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String id)
    • allForms

      public static WerewolfFormArgument allForms()
    • transformedForms

      public static WerewolfFormArgument transformedForms()
    • nonHumanForms

      public static WerewolfFormArgument nonHumanForms()
    • formArgument

      public static WerewolfFormArgument formArgument(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm... allowedForms)
    • getAllowedForms

      @Nonnull public Collection<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm> getAllowedForms()
    • parse

      public de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>
      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<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>