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 net.minecraft.command.argument.serialize.ArgumentSerializer.ArgumentTypeProperties<A>>
voidregisterArgumentType
(net.minecraft.util.Identifier id, Class<? extends A> clazz, net.minecraft.command.argument.serialize.ArgumentSerializer<A, T> serializer) Register a new argument type.
-
Method Details
-
registerArgumentType
public static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.command.argument.serialize.ArgumentSerializer.ArgumentTypeProperties<A>> void registerArgumentType(net.minecraft.util.Identifier id, Class<? extends A> clazz, net.minecraft.command.argument.serialize.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
-