Class GameData
java.lang.Object
net.neoforged.neoforge.registries.GameData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final org.slf4j.Marker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidfireRemapEvent(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFreezing) static voidstatic IdMapper<BlockState> static Map<BlockState, Holder<PoiType>> static Set<ResourceLocation> Creates aLinkedHashSetcontaining the ordered list of registry names in the registration order.static voidstatic voidstatic void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
REGISTRIES
private static final org.slf4j.Marker REGISTRIES
-
-
Constructor Details
-
GameData
public GameData()
-
-
Method Details
-
getBlockItemMap
-
getBlockStateIDMap
-
getBlockStatePointOfInterestTypeMap
-
vanillaSnapshot
public static void vanillaSnapshot() -
unfreezeData
public static void unfreezeData() -
freezeData
public static void freezeData() -
postRegisterEvents
public static void postRegisterEvents() -
fireRemapEvent
static void fireRemapEvent(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFreezing) -
getRegistrationOrder
Creates aLinkedHashSetcontaining the ordered list of registry names in the registration order.The order is Attributes, then the remaining vanilla registries in vanilla order, then modded registries in alphabetical order.
Due to static init issues, this is not necessarily the order that vanilla objects are bootstrapped in.
- Returns:
- A
LinkedHashSetcontaining the registration order.
-