Package net.minecraftforge.registries
Class MissingMappingsEvent.Mapping<T>
java.lang.Object
net.minecraftforge.registries.MissingMappingsEvent.Mapping<T>
- All Implemented Interfaces:
- Comparable<MissingMappingsEvent.Mapping<T>>
- Enclosing class:
- MissingMappingsEvent
public static class MissingMappingsEvent.Mapping<T>
extends Object
implements Comparable<MissingMappingsEvent.Mapping<T>>
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) MissingMappingsEvent.Action(package private) final int(package private) final ResourceLocationprivate final IForgeRegistry<T>private final IForgeRegistry<T>(package private) T
- 
Constructor SummaryConstructorsConstructorDescriptionMapping(IForgeRegistry<T> registry, IForgeRegistry<T> pool, ResourceLocation key, int id) 
- 
Method Summary
- 
Field Details- 
registry
- 
pool
- 
key
- 
idfinal int id
- 
actionMissingMappingsEvent.Action action
- 
targetT target
 
- 
- 
Constructor Details- 
Mapping
 
- 
- 
Method Details- 
ignorepublic void ignore()Ignore the missing item.
- 
warnpublic void warn()Warn the user about the missing item.
- 
failpublic void fail()Prevent the world from loading due to the missing item.
- 
remapRemap the missing entry to the specified object.Use this if you have renamed an entry. Existing references using the old name will point to the new one. - Parameters:
- target- Entry to remap to.
 
- 
getRegistry
- 
getKey
- 
getIdpublic int getId()
- 
compareTo- Specified by:
- compareToin interface- Comparable<T>
 
 
-