mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Add setter for default key in RegistryBuilder. Closes #3804
This commit is contained in:
1 parent
c1a38c541a
commit
006b8cc8bd
1 file changed
+6
@@ -61,6 +61,12 @@ public class RegistryBuilder<T extends IForgeRegistryEntry<T>>
|
||||
return this;
|
||||
}
|
||||
|
||||
public RegistryBuilder<T> setDefaultKey(ResourceLocation key)
|
||||
{
|
||||
this.optionalDefaultKey = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public RegistryBuilder<T> addCallback(Object inst)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user