Class GameData
java.lang.Object
net.neoforged.neoforge.registries.GameData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final org.slf4j.Marker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static Map
<net.minecraft.world.level.block.Block, net.minecraft.world.item.Item> static net.minecraft.core.IdMapper
<net.minecraft.world.level.block.state.BlockState> static Map
<net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Holder<net.minecraft.world.entity.ai.village.poi.PoiType>> static Set
<net.minecraft.resources.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
public static Map<net.minecraft.world.level.block.Block,net.minecraft.world.item.Item> getBlockItemMap() -
getBlockStateIDMap
public static net.minecraft.core.IdMapper<net.minecraft.world.level.block.state.BlockState> getBlockStateIDMap() -
getBlockStatePointOfInterestTypeMap
public static Map<net.minecraft.world.level.block.state.BlockState,net.minecraft.core.Holder<net.minecraft.world.entity.ai.village.poi.PoiType>> getBlockStatePointOfInterestTypeMap() -
vanillaSnapshot
public static void vanillaSnapshot() -
unfreezeData
public static void unfreezeData() -
freezeData
public static void freezeData() -
postRegisterEvents
public static void postRegisterEvents() -
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.
-