Class NeoForgeDataMaps
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DataMapType
<net.minecraft.world.item.Item, Compostable> The Item data map that replacesComposterBlock.COMPOSTABLES
.static final DataMapType
<net.minecraft.world.item.Item, FurnaceFuel> The Item data map that replacesinvalid reference
AbstractFurnaceBlockEntity#getFuel()
static final DataMapType
<net.minecraft.world.entity.EntityType<?>, MonsterRoomMob> The EntityType data map that replacesMonsterRoomFeature.MOBS
.static final DataMapType
<net.minecraft.world.level.block.Block, Oxidizable> The Block data map that replacesWeatheringCopper.NEXT_BY_BLOCK
.static final DataMapType
<net.minecraft.world.entity.EntityType<?>, ParrotImitation> The EntityType data map that replacesParrot.MOB_SOUND_MAP
.static final DataMapType
<net.minecraft.world.entity.npc.VillagerProfession, RaidHeroGift> The VillagerProfession data map that replacesGiveGiftToHero.GIFTS
.static final DataMapType
<net.minecraft.world.level.gameevent.GameEvent, VibrationFrequency> The GameEvent data map that replacesVibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT
.static final DataMapType
<net.minecraft.world.level.biome.Biome, BiomeVillagerType> The Biome data map that replacesVillagerType.BY_BIOME
.static final DataMapType
<net.minecraft.world.level.block.Block, Waxable> The Block data map that replacesHoneycombItem.WAXABLES
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static net.minecraft.resources.ResourceLocation
private static void
-
Field Details
-
COMPOSTABLES
The Item data map that replacesComposterBlock.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
-
FURNACE_FUELS
The Item data map that replacesinvalid reference
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
-
MONSTER_ROOM_MOBS
public static final DataMapType<net.minecraft.world.entity.EntityType<?>,MonsterRoomMob> MONSTER_ROOM_MOBSThe EntityType data map that replacesMonsterRoomFeature.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.
-
OXIDIZABLES
The Block data map that replacesWeatheringCopper.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_oxidized_stage
, a block that the object should convert into once it changes oxidizing states
invalid reference
DataMapHooks#getInverseOxidizablesMap()
-
PARROT_IMITATIONS
public static final DataMapType<net.minecraft.world.entity.EntityType<?>,ParrotImitation> PARROT_IMITATIONSThe EntityType data map that replacesParrot.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
-
RAID_HERO_GIFTS
public static final DataMapType<net.minecraft.world.entity.npc.VillagerProfession,RaidHeroGift> RAID_HERO_GIFTSThe VillagerProfession data map that replacesGiveGiftToHero.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
-
VIBRATION_FREQUENCIES
public static final DataMapType<net.minecraft.world.level.gameevent.GameEvent,VibrationFrequency> VIBRATION_FREQUENCIESThe GameEvent data map that replacesVibrationSystem.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 between1
and15
(inclusive) - the vibration frequency of the game event
-
VILLAGER_TYPES
public static final DataMapType<net.minecraft.world.level.biome.Biome,BiomeVillagerType> VILLAGER_TYPESThe Biome data map that replacesVillagerType.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
-
WAXABLES
The Block data map that replacesHoneycombItem.WAXABLES
.The location of this data map is
neoforge/data_maps/block/waxables.json
, and the values are objects with 1 field:waxed
, a block that the object should convert into once it is right clicked with aItemAbilities.AXE_WAX_OFF
ability
DataMapHooks.INVERSE_WAXABLES_DATAMAP
-
-
Constructor Details
-
NeoForgeDataMaps
public NeoForgeDataMaps()
-
-
Method Details
-
id
-
register
-