Class NeoForgeDataMaps
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataMapType<EntityType<?>, AcceptableVillagerDistance> The EntityType data map that replacesVillagerHostilesSensor.ACCEPTABLE_DISTANCE_FROM_HOSTILES.static final DataMapType<BlockTransformer, BlockTransformAppender> TheBlockTransformerdata map that allows appending additional entries to existingBlockTransformers.static final DataMapType<Block, Flammable> static final DataMapType<EntityType<?>, MonsterRoomMob> The EntityType data map that replacesMonsterRoomFeature.MOBS.static final DataMapType<Block, Oxidizable> The Block data map that replacesWeatheringCopper.NEXT_BY_BLOCK.static final DataMapType<EntityType<?>, ParrotImitation> The EntityType data map that replacesParrot.MOB_SOUND_MAP.static final DataMapType<VillagerProfession, RaidHeroGift> The VillagerProfession data map that replacesGiveGiftToHero.GIFTS.static final DataMapType<Block, Transformable> TheBlockdata map that allows appending additional entries to existingBlockTransformers.static final DataMapType<GameEvent, VibrationFrequency> The GameEvent data map that replacesVibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT.static final DataMapType<Item, VillagerCompostable> The Item data map that replacesWorkAtComposter.COMPOSTABLE_ITEMS.static final DataMapType<Biome, BiomeVillagerType> The Biome data map that replacesVillagerType.BY_BIOME.static final DataMapType<Block, Waxable> The Block data map that replacesHoneycombItem.WAXABLES. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ACCEPTABLE_VILLAGER_DISTANCES
public static final DataMapType<EntityType<?>, AcceptableVillagerDistance> ACCEPTABLE_VILLAGER_DISTANCESThe EntityType data map that replacesVillagerHostilesSensor.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
-
BLOCK_TRANSFORM_APPENDERS
The
BlockTransformerdata map that allows appending additional entries to existingBlockTransformers.The location of this data map is
neoforge/data_maps/block_transformer/block_transform_appenders.json, and the values are lists ofBlockTransformer.BlockTransformDatasTransforms targeting a single block or state thereof should use
TRANSFORMABLESinstead. -
MONSTER_ROOM_MOBS
The 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_oxidation_stage, a block that the object should convert into once it changes oxidizing states
DataMapHooks.INVERSE_OXIDIZABLES_DATAMAP -
PARROT_IMITATIONS
The 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
The 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
-
TRANSFORMABLES
The
Blockdata map that allows appending additional entries to existingBlockTransformers.The location of this data map is
neoforge/data_maps/block/transformables.json, and the values are objects with either:- 1 field
transformers, an object representing a map ofBlockTransformerkeys toBlockTransformer.BlockTransformDataentries
- 2 fields
transformer, theResourceKeyof aBlockTransformertransform_data, aBlockTransformer.BlockTransformDatadescribing how the block should be transformed
The
BlockStateProviderspecified 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 useBLOCK_TRANSFORM_APPENDERSinstead. - 1 field
-
VIBRATION_FREQUENCIES
The 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 between1and15(inclusive) - the vibration frequency of the game event
-
VILLAGER_COMPOSTABLES
The Item data map that replacesWorkAtComposter.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
-
VILLAGER_TYPES
The 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: The inverted map of this can be found atDataMapHooks.INVERSE_WAXABLES_DATAMAP -
FLAMMABLE
The
Blockdata map that replacesFireBlock.igniteOddsandFireBlock.burnOdds.The location of this data map is
neoforge/data_maps/block/flammable.json, and the values are objects with 2 fields:ignite_odds, int value for likelihood of a block to catch fire, typical values used by vanilla areFireBlock.IGNITE_INSTANT,FireBlock.IGNITE_EASY,FireBlock.IGNITE_MEDIUM,FireBlock.IGNITE_HARD.burn_odds, int value for likelihood of a block to be destroyed by fire, typical values used by vanilla areFireBlock.BURN_INSTANT,FireBlock.BURN_EASY,FireBlock.BURN_MEDIUM,FireBlock.BURN_HARD.
-
-
Constructor Details
-
NeoForgeDataMaps
public NeoForgeDataMaps()
-
-
Method Details
-
id
-
register
-