public static class RegistryEvent.MissingMappings.Mapping<T extends IForgeRegistryEntry<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RegistryEvent.MissingMappings.Action |
action |
int |
id |
ResourceLocation |
key |
private IForgeRegistry<T> |
pool |
IForgeRegistry<T> |
registry |
private T |
target |
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
private final IForgeRegistry<T extends IForgeRegistryEntry<T>> pool
public final ResourceLocation key
public final int id
private RegistryEvent.MissingMappings.Action action
private T extends IForgeRegistryEntry<T> target
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()