public static class FMLMissingMappingsEvent.MissingMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
id |
java.lang.String |
name |
ResourceLocation |
resourceLocation |
GameRegistry.Type |
type |
Constructor and Description |
---|
MissingMapping(GameRegistry.Type type,
ResourceLocation 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 |
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
public final ResourceLocation resourceLocation
public MissingMapping(GameRegistry.Type type, ResourceLocation name, int id)
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()