Class NeoForgeDataMaps

java.lang.Object
net.neoforged.neoforge.registries.datamaps.builtin.NeoForgeDataMaps

public class NeoForgeDataMaps extends Object
Holds all data maps provided by NeoForge.

These data maps are usually replacements for vanilla in-code maps, and are optionally synced so that mods can use them on the client side.

  • Field Details

    • COMPOSTABLES

      public static final DataMapType<Item,Compostable> COMPOSTABLES
      The Item data map that replaces ComposterBlock.COMPOSTABLES.

      The location of this data map is neoforge/data_maps/item/compostables.json, and the values are objects with 1 field:

      • chance, a float between 0 and 1 (inclusive) - the chance that the item will add levels to the composter when composted
      The use of a float as the value is also possible, though discouraged in case more options are added in the future.
    • FURNACE_FUELS

      public static final DataMapType<Item,FurnaceFuel> FURNACE_FUELS
      The Item data map that replaces AbstractFurnaceBlockEntity.getFuel().

      The location of this data map is neoforge/data_maps/item/furnace_fuels.json, and the values are objects with 1 field:

      • burn_time, a positive integer - how long the item will burn, in ticks
      The use of a integer as the value is also possible, though discouraged in case more options are added in the future.
    • PARROT_IMITATIONS

      public static final DataMapType<EntityType<?>,ParrotImitation> PARROT_IMITATIONS
      The EntityType data map that replaces Parrot.MOB_SOUND_MAP.

      The location of this data map is neoforge/data_maps/entity_type/parrot_imitations.json, and the values are objects with 1 field:

      • sound, sound event ID - the sound that the parrot will emit when imitating the mob
      The use of a string as the value is also possible, though discouraged in case more options are added in the future.
    • VIBRATION_FREQUENCIES

      public static final DataMapType<GameEvent,VibrationFrequency> VIBRATION_FREQUENCIES
      The GameEvent data map that replaces VibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT.

      The location of this data map is neoforge/data_maps/game_event/vibration_frequencies.json, and the values are objects with 1 field:

      • frequency, an integer between 1 and 15 (inclusive) - the vibration frequency of the game event
      The use of an integer as the value is also possible, though discouraged in case more options are added in the future.
  • Constructor Details

    • NeoForgeDataMaps

      public NeoForgeDataMaps()
  • Method Details