Class ArgumentTypeRegistry
java.lang.Object
net.fabricmc.fabric.api.command.v2.ArgumentTypeRegistry
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends com.mojang.brigadier.arguments.ArgumentType<?>,
T extends ArgumentSerializer.ArgumentTypeProperties<A>>
voidregisterArgumentType
(Identifier id, Class<? extends A> clazz, ArgumentSerializer<A, T> serializer) Register a new argument type.
-
Method Details
-
registerArgumentType
public static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends ArgumentSerializer.ArgumentTypeProperties<A>> void registerArgumentType(Identifier id, Class<? extends A> clazz, ArgumentSerializer<A, T> serializer) Register a new argument type.- Type Parameters:
A
- the argument typeT
- the argument type properties- Parameters:
id
- the identifier of the argument typeclazz
- the class of the argument typeserializer
- the serializer for the argument type
-