Class GameData

java.lang.Object
net.neoforged.neoforge.registries.GameData

@Internal public class GameData extends Object
  • Field Details Link icon

    • LOGGER Link icon

      private static final org.slf4j.Logger LOGGER
    • REGISTRIES Link icon

      private static final org.slf4j.Marker REGISTRIES
  • Constructor Details Link icon

    • GameData Link icon

      public GameData()
  • Method Details Link icon

    • getBlockItemMap Link icon

      public static Map<Block,Item> getBlockItemMap()
    • getBlockStateIDMap Link icon

      public static IdMapper<BlockState> getBlockStateIDMap()
    • getBlockStatePointOfInterestTypeMap Link icon

      public static Map<BlockState,Holder<PoiType>> getBlockStatePointOfInterestTypeMap()
    • vanillaSnapshot Link icon

      public static void vanillaSnapshot()
    • unfreezeData Link icon

      public static void unfreezeData()
    • freezeData Link icon

      public static void freezeData()
    • postRegisterEvents Link icon

      public static void postRegisterEvents()
    • fireRemapEvent Link icon

      static void fireRemapEvent(Map<ResourceLocation,Map<ResourceLocation,IdMappingEvent.IdRemapping>> remaps, boolean isFreezing)
    • getRegistrationOrder Link icon

      public static Set<ResourceLocation> getRegistrationOrder()
      Creates a LinkedHashSet 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.