mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
DimensionManager.registerDimension now returns the DimensionType instance for convienance.
You can still access others in DimensionType.getByName() Fixed ForgeRegistry rappers not forwarding isEmpty.
This commit is contained in:
1 parent
3003e33074
commit
47e6b34d2b
5 files changed
+23
-2
No files matched your search
@@ -121,6 +121,12 @@ class NamespacedWrapper<V extends IForgeRegistryEntry<V>> extends RegistryNamesp
|
||||
return values.stream().skip(random.nextInt(values.size())).findFirst().orElse(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty()
|
||||
{
|
||||
return this.delegate.isEmpty();
|
||||
}
|
||||
|
||||
//internal
|
||||
@Override
|
||||
public void lock(){ this.locked = true; }
|
||||
|
||||
Reference in new issue
Block a user