Package net.minecraftforge.registries
Class IdMappingEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.registries.IdMappingEvent
public class IdMappingEvent
extends net.minecraftforge.eventbus.api.Event
Called whenever the ID mapping might have changed. If you register for this event, you
 will be called back whenever the client or server loads an ID set. This includes both
 when the ID maps are loaded from disk, as well as when the ID maps revert to the initial
 state.
 
Note: you cannot change the IDs that have been allocated, but you might want to use this event to update caches or other in-mod artifacts that might be impacted by an ID change.
 Fired on the forge bus.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic classNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate final com.google.common.collect.ImmutableSet<ResourceLocation>private final Map<ResourceLocation,com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping>> 
- 
Constructor SummaryConstructorsConstructorDescriptionIdMappingEvent(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFrozen) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<ResourceLocation>com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping>getRemaps(ResourceLocation registry) booleanisFrozen()Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
remapsprivate final Map<ResourceLocation,com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping>> remaps
- 
keys
- 
isFrozenprivate final boolean isFrozen
 
- 
- 
Constructor Details- 
IdMappingEventpublic IdMappingEvent(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFrozen) 
 
- 
- 
Method Details- 
getRegistries
- 
getRemapspublic com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping> getRemaps(ResourceLocation registry) 
- 
isFrozenpublic boolean isFrozen()
 
-