Update mappings, move mod initialization to the async loader.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-06-21 22:42:16 -04:00
1 parent a14c2233e0
commit c10174d50d
35 files changed
+166 -214

No files matched your search

@@ -166,7 +166,7 @@ public class ClearableRegistry<T> extends MutableRegistry<T>
}
@Override
public Optional<T> func_218349_b(ResourceLocation p_218349_1_) {
return Optional.ofNullable(map.get(p_218349_1_));
public Optional<T> getValue(ResourceLocation key) {
return Optional.ofNullable(map.get(key));
}
}
@@ -88,6 +88,8 @@ import java.util.stream.Collectors;
import static net.minecraftforge.registries.ForgeRegistry.REGISTRIES;
import net.minecraftforge.fml.common.EnhancedRuntimeException.WrappedPrintStream;
/**
* INTERNAL ONLY
* MODDERS SHOULD HAVE NO REASON TO USE THIS CLASS
@@ -71,7 +71,7 @@ class NamespacedDefaultedWrapper<T extends IForgeRegistryEntry<T>> extends Defau
// Reading Functions
@Override
public Optional<T> func_218349_b(@Nullable ResourceLocation name)
public Optional<T> getValue(@Nullable ResourceLocation name)
{
return Optional.ofNullable( this.delegate.getRaw(name)); //get without default
}
@@ -74,7 +74,7 @@ class NamespacedWrapper<T extends IForgeRegistryEntry<T>> extends SimpleRegistry
}
@Override
public Optional<T> func_218349_b(@Nullable ResourceLocation name)
public Optional<T> getValue(@Nullable ResourceLocation name)
{
return Optional.ofNullable( this.delegate.getRaw(name)); //get without default
}