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>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWerewolfFormArgument(Collection<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm> allowedForms) -
Method Summary
Modifier and TypeMethodDescriptionstatic WerewolfFormArgumentallForms()static WerewolfFormArgumentformArgument(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm... allowedForms) Collection<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm> static de.teamlapen.werewolves.api.entities.werewolf.WerewolfFormgetForm(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String id) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static WerewolfFormArgumentde.teamlapen.werewolves.api.entities.werewolf.WerewolfFormparse(com.mojang.brigadier.StringReader reader) static WerewolfFormArgument
-
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
-
transformedForms
-
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:
parsein interfacecom.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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm>
-