public final class ResourceRegistry extends java.lang.Object implements IResourceRegistry
| Constructor and Description |
|---|
ResourceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(IResource resource) |
java.util.Map<java.lang.String,IResource> |
getRegisteredResources()
Returns a read-only map containing resource names and their associated
resources.
|
IResource |
getResource(java.lang.String type) |
OreRegistryState |
getState()
The current state of the registry process.
|
java.util.Collection<IUnificationHandler> |
getUnificationHandlers(java.lang.String resourceType)
Returns a read-only map containing all
IUnificationHandlers of the resource of this type. |
boolean |
hasResource(java.lang.String type) |
IResource |
registerResource(java.lang.String resourceType)
Register a type of resource added by your mod.
|
void |
registerUnificationHandler(java.lang.String resourceType,
IUnificationHandler unificationHandler)
Register a
IUnificationHandler. |
void |
setState(OreRegistryState state) |
public IResource registerResource(java.lang.String resourceType)
IResourceRegistryregisterResource in interface IResourceRegistrypublic java.util.Map<java.lang.String,IResource> getRegisteredResources()
IResourceRegistrygetRegisteredResources in interface IResourceRegistrypublic void registerUnificationHandler(java.lang.String resourceType,
IUnificationHandler unificationHandler)
IResourceRegistryIUnificationHandler.registerUnificationHandler in interface IResourceRegistrypublic java.util.Collection<IUnificationHandler> getUnificationHandlers(java.lang.String resourceType)
IResourceRegistryIUnificationHandlers of the resource of this type.getUnificationHandlers in interface IResourceRegistrypublic OreRegistryState getState()
IResourceRegistrygetState in interface IResourceRegistry@Nullable public IResource getResource(java.lang.String type)
public boolean hasResource(java.lang.String type)
public void addResource(IResource resource)
public void setState(OreRegistryState state)