Fix NamespacedWrapper not delegating a new getter. Fixing data loading spam at world start.

Update red/yellow/green tags with new vanilla item names.
Reenabled test source directory in project and made ModelDataTest compile.
This commit is contained in:
LexManos committed 2019-06-07 19:34:16 -07:00
1 parent 850c73b73f
commit b74b72e44c
8 files changed
+41 -103

No files matched your search

@@ -21,6 +21,7 @@ package net.minecraftforge.registries;
import java.util.Collection;
import java.util.Iterator;
import java.util.Optional;
import java.util.Random;
import java.util.Set;
import javax.annotation.Nullable;
@@ -72,6 +73,12 @@ class NamespacedWrapper<T extends IForgeRegistryEntry<T>> extends SimpleRegistry
return this.delegate.getRaw(name); //get without default
}
@Override
public Optional<T> func_218349_b(@Nullable ResourceLocation name)
{
return Optional.ofNullable( this.delegate.getRaw(name)); //get without default
}
@Override
@Nullable
public ResourceLocation getKey(T value)