Add setter for default key in RegistryBuilder. Closes #3804
This commit is contained in:
parent
c1a38c541a
commit
006b8cc8bd
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue