Class GameData

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

@Internal public class GameData extends Object
  • 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<Block,Item> getBlockItemMap()
    • getBlockStateIDMap

      public static IdMapper<BlockState> getBlockStateIDMap()
    • getBlockStatePointOfInterestTypeMap

      public static Map<BlockState,Holder<PoiType>> 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

      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.