mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
This reverts commit 4df024ef43.
This commit is contained in:
1 parent
40bce4b498
commit
24d3705e19
10 files changed
+8
-561
No files matched your search
@@ -26,8 +26,8 @@ public class DelegatingResourcePack extends AbstractPackResources
|
||||
{
|
||||
|
||||
private final List<PackResources> delegates;
|
||||
private Map<String, List<PackResources>> namespacesAssets;
|
||||
private Map<String, List<PackResources>> namespacesData;
|
||||
private final Map<String, List<PackResources>> namespacesAssets;
|
||||
private final Map<String, List<PackResources>> namespacesData;
|
||||
|
||||
private final String name;
|
||||
private final PackMetadataSection packInfo;
|
||||
@@ -42,21 +42,6 @@ public class DelegatingResourcePack extends AbstractPackResources
|
||||
this.namespacesData = this.buildNamespaceMap(PackType.SERVER_DATA, delegates);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initForNamespace(final String nameSpace)
|
||||
{
|
||||
this.delegates.forEach(delegate -> delegate.initForNamespace(nameSpace));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(final PackType packType)
|
||||
{
|
||||
this.delegates.forEach(packResources -> packResources.init(packType));
|
||||
|
||||
this.namespacesAssets = buildNamespaceMap(PackType.CLIENT_RESOURCES, delegates);
|
||||
this.namespacesData = buildNamespaceMap(PackType.SERVER_DATA, delegates);
|
||||
}
|
||||
|
||||
private Map<String, List<PackResources>> buildNamespaceMap(PackType type, List<PackResources> packList)
|
||||
{
|
||||
Map<String, List<PackResources>> map = new HashMap<>();
|
||||
|
||||
Reference in new issue
Block a user