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