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

    • ACCEPTABLE_VILLAGER_DISTANCES

      public static final DataMapType<EntityType<?>, AcceptableVillagerDistance> ACCEPTABLE_VILLAGER_DISTANCES
      The EntityType data map that replaces VillagerHostilesSensor.ACCEPTABLE_DISTANCE_FROM_HOSTILES.

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

      • distance, a float - the acceptable distance between the hostile mob and a villager
      The use of a float as the value is also possible, though discouraged in case more options are added in the future.
    • BLOCK_TRANSFORM_APPENDERS

      public static final DataMapType<BlockTransformer, BlockTransformAppender> BLOCK_TRANSFORM_APPENDERS

      The BlockTransformer data map that allows appending additional entries to existing BlockTransformers.

      The location of this data map is neoforge/data_maps/block_transformer/block_transform_appenders.json, and the values are lists of BlockTransformer.BlockTransformDatas

      Transforms targeting a single block or state thereof should use TRANSFORMABLES instead.

    • MONSTER_ROOM_MOBS

      public static final DataMapType<EntityType<?>, MonsterRoomMob> MONSTER_ROOM_MOBS
      The EntityType data map that replaces MonsterRoomFeature.MOBS.

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

      • weight, a positive nonzero integer - the weight of this type that will be used when selecting a type for the spawner.
      The use of an integer as the value is also possible, though discouraged in case more options are added in the future.
    • OXIDIZABLES

      public static final DataMapType<Block, Oxidizable> OXIDIZABLES
      The Block data map that replaces WeatheringCopper.NEXT_BY_BLOCK.

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

      • next_oxidation_stage, a block that the object should convert into once it changes oxidizing states
      The inverted map of this can be found at DataMapHooks.INVERSE_OXIDIZABLES_DATAMAP
    • 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.
    • RAID_HERO_GIFTS

      public static final DataMapType<VillagerProfession, RaidHeroGift> RAID_HERO_GIFTS
      The VillagerProfession data map that replaces GiveGiftToHero.GIFTS.

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

      • loot_table, the path to the loot table that the villager gives to the player after a raid finishes
    • TRANSFORMABLES

      public static final DataMapType<Block, Transformable> TRANSFORMABLES

      The Block data map that allows appending additional entries to existing BlockTransformers.

      The location of this data map is neoforge/data_maps/block/transformables.json, and the values are objects with either:

      The BlockStateProvider specified by the transform data entry/entries must ensure that the specified transformation only applies to the block this datamap value is attached to. Datamap values of this type cannot be attached to multiple blocks via tags. Transformations applying to multiple blocks (i.e. via tag or custom block predicates) should use BLOCK_TRANSFORM_APPENDERS instead.

    • 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.
    • VILLAGER_COMPOSTABLES

      public static final DataMapType<Item, VillagerCompostable> VILLAGER_COMPOSTABLES
      The Item data map that replaces WorkAtComposter.COMPOSTABLE_ITEMS.

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

      • can_villager_compost, a boolean indicating whether farmer villagers can compost the item
      The use of a boolean as the value is also possible, though discouraged in case more options are added in the future.
    • VILLAGER_TYPES

      public static final DataMapType<Biome, BiomeVillagerType> VILLAGER_TYPES
      The Biome data map that replaces VillagerType.BY_BIOME.

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

      • villager_type, villager type ID - the type of the villagers present in the biome
      The use of a string as the value is also possible, though discouraged in case more options are added in the future.
    • WAXABLES

      public static final DataMapType<Block,Waxable> WAXABLES
      The Block data map that replaces HoneycombItem.WAXABLES.

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

    The inverted map of this can be found at DataMapHooks.INVERSE_WAXABLES_DATAMAP