mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 15:03:04 +00:00
Update mappings, move mod initialization to the async loader.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user