类 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
.
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final boolean
private final com.google.common.collect.ImmutableSet
<ResourceLocation> private final Map
<ResourceLocation, com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping>> -
构造器概要
构造器构造器说明IdMappingEvent
(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFrozen) -
方法概要
修饰符和类型方法说明com.google.common.collect.ImmutableSet
<ResourceLocation> com.google.common.collect.ImmutableList
<IdMappingEvent.ModRemapping> getRemaps
(ResourceLocation registry) boolean
isFrozen()
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
remaps
private final Map<ResourceLocation,com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping>> remaps -
keys
-
isFrozen
private final boolean isFrozen
-
-
构造器详细资料
-
IdMappingEvent
public IdMappingEvent(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFrozen)
-
-
方法详细资料
-
getRegistries
-
getRemaps
public com.google.common.collect.ImmutableList<IdMappingEvent.ModRemapping> getRemaps(ResourceLocation registry) -
isFrozen
public boolean isFrozen()
-