Posted January 23, 20232 yr Why is it problem? Sorry for my bad english. DeferredRegister argTypeRegistry = DeferredRegister.create(Registry.COMMAND_ARGUMENT_TYPE_REGISTRY, "flashnpc"); argTypeRegistry.register("quest", QuestArgument.class, new ArgumentType<>(QuestArgument::quest()); argTypeRegistry.register("npcfunction", NpcFunctionArgument.class, new ArgumentType<>(NpcFunctionArgument::function())); Minecraft mod 1.19
January 23, 20232 yr Look at the arguments of DefferedRegister#register. It takes in the name and a supplier of the argument type.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.