mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Add new DeferredRegistry helper, and change RegistryObject to update when overrides are registered.
This commit is contained in:
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));
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user