Add new DeferredRegistry helper, and change RegistryObject to update when overrides are registered.

This commit is contained in:
LexManos committed 2019-09-10 16:02:07 -07:00
1 parent 9183c2fa0d
commit 281ef5a152
8 files changed
+214 -67

No files matched your search

@@ -1,15 +0,0 @@
package net.minecraftforge.server.command;
public class ForgeArguments
{
public static void register()
{
/*
* We can't actually add any of these, because vanilla clients will choke on unknown argument types
* So our custom arguments will not validate client-side, but they do still work
ArgumentTypes.register("forge:enum", EnumArgument.class, new EnumArgument.Serializer());
ArgumentTypes.register("forge:modid", ModIdArgument.class, new ArgumentSerializer<>(ModIdArgument::modIdArgument));
ArgumentTypes.register("forge:structure_type", StructureArgument.class, new ArgumentSerializer<>(StructureArgument::structure));
*/
}
}