public static class RegistryEvent.MissingMappings.Mapping<T extends IForgeRegistryEntry<T>>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
int | 
id  | 
ResourceLocation | 
key  | 
IForgeRegistry<T> | 
registry  | 
| Constructor and Description | 
|---|
Mapping(IForgeRegistry<T> registry,
       IForgeRegistry<T> pool,
       ResourceLocation key,
       int id)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
fail()
Prevent the world from loading due to the missing item. 
 | 
RegistryEvent.MissingMappings.Action | 
getAction()  | 
T | 
getTarget()  | 
void | 
ignore()
Ignore the missing item. 
 | 
void | 
remap(T target)
Remap the missing entry to the specified object. 
 | 
void | 
warn()
Warn the user about the missing item. 
 | 
public final IForgeRegistry<T extends IForgeRegistryEntry<T>> registry
public final ResourceLocation key
public final int id
public Mapping(IForgeRegistry<T> registry, IForgeRegistry<T> pool, ResourceLocation key, int id)
public void ignore()
public void warn()
public void fail()
public void remap(T target)
target - Entry to remap to.public RegistryEvent.MissingMappings.Action getAction()
public T getTarget()