Class RemapStateImpl<T>
java.lang.Object
net.fabricmc.fabric.impl.registry.sync.RemapStateImpl<T>
- All Implemented Interfaces:
RegistryIdRemapCallback.RemapState<T>
-
Constructor Summary
ConstructorsConstructorDescriptionRemapStateImpl(net.minecraft.core.Registry<T> registry, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.Identifier> oldIdMap, it.unimi.dsi.fastutil.ints.Int2IntMap rawIdChangeMap) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifiergetIdFromNew(int newRawId) net.minecraft.resources.IdentifiergetIdFromOld(int oldRawId) it.unimi.dsi.fastutil.ints.Int2IntMap
-
Constructor Details
-
RemapStateImpl
public RemapStateImpl(net.minecraft.core.Registry<T> registry, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.Identifier> oldIdMap, it.unimi.dsi.fastutil.ints.Int2IntMap rawIdChangeMap)
-
-
Method Details
-
getRawIdChangeMap
public it.unimi.dsi.fastutil.ints.Int2IntMap getRawIdChangeMap()- Specified by:
getRawIdChangeMapin interfaceRegistryIdRemapCallback.RemapState<T>
-
getIdFromOld
public net.minecraft.resources.Identifier getIdFromOld(int oldRawId) - Specified by:
getIdFromOldin interfaceRegistryIdRemapCallback.RemapState<T>
-
getIdFromNew
public net.minecraft.resources.Identifier getIdFromNew(int newRawId) - Specified by:
getIdFromNewin interfaceRegistryIdRemapCallback.RemapState<T>
-