Class GameData
java.lang.Object
net.neoforged.neoforge.registries.GameData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final org.slf4j.Marker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
fireRemapEvent
(Map<ResourceLocation, Map<ResourceLocation, IdMappingEvent.IdRemapping>> remaps, boolean isFreezing) static void
static IdMapper
<BlockState> static Map
<BlockState, Holder<PoiType>> static Set
<ResourceLocation> Creates aLinkedHashSet
containing the ordered list of registry names in the registration order.static void
static void
static 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 aLinkedHashSet
containing 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
LinkedHashSet
containing the registration order.
-