Skip to content

Commit

Permalink
Add setter for default key in RegistryBuilder. Closes MinecraftForge#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LexManos committed Mar 23, 2017
1 parent c1a38c5 commit 006b8cc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public RegistryBuilder<T> setIDRange(int min, int max)
return this;
}

public RegistryBuilder<T> setDefaultKey(ResourceLocation key)
{
this.optionalDefaultKey = key;
return this;
}

@SuppressWarnings("unchecked")
public RegistryBuilder<T> addCallback(Object inst)
{
Expand Down

0 comments on commit 006b8cc

Please sign in to comment.