public static class FMLMissingMappingsEvent.MissingMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
id |
java.lang.String |
name |
GameRegistry.Type |
type |
Constructor and Description |
---|
MissingMapping(java.lang.String name,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
fail()
Prevent the world from loading due to the missing item.
|
FMLMissingMappingsEvent.Action |
getAction() |
java.lang.Object |
getTarget() |
void |
ignore()
Ignore the missing item.
|
void |
remap(Block target)
Remap the missing item to the specified Block.
|
void |
remap(Item target)
Remap the missing item to the specified Item.
|
void |
setAction(FMLMissingMappingsEvent.Action target)
Deprecated.
use ignore(), warn(), fail() or remap() instead
|
void |
skipItemBlock() |
void |
warn()
Warn the user about the missing item.
|
public final GameRegistry.Type type
public final java.lang.String name
public final int id
@Deprecated public void setAction(FMLMissingMappingsEvent.Action target)
public void ignore()
public void warn()
public void fail()
public void remap(Block target)
target
- Block to remap to.public void remap(Item target)
target
- Item to remap to.public void skipItemBlock()
public FMLMissingMappingsEvent.Action getAction()
public java.lang.Object getTarget()