Add data_component_type

This commit is contained in:
Nassim Jahnke 2024-02-28 22:41:16 +01:00
parent 622146ce51
commit 45adee02dd
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
7 changed files with 102 additions and 1 deletions

View File

@ -15,7 +15,7 @@ dependencies {
api("ch.qos.logback:logback-classic:1.4.14")
compileOnly("org.jetbrains:annotations:24.0.1")
// Uncomment to manually run mappings gen in ide
// compileOnly(files("server.jar"))
compileOnly(files("server.jar"))
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

View File

@ -31028,5 +31028,54 @@
"smithing_transform",
"smithing_trim",
"crafting_decorated_pot"
],
"data_component_type": [
"custom_data",
"damage",
"unbreakable",
"custom_name",
"lore",
"enchantments",
"can_place_on",
"can_break",
"attribute_modifiers",
"custom_model_data",
"hide_additional_tooltip",
"repair_cost",
"creative_slot_lock",
"enchantment_glint_override",
"intangible_projectile",
"stored_enchantments",
"dyed_color",
"map_color",
"map_id",
"map_decorations",
"map_post_processing",
"charged_projectiles",
"bundle_contents",
"potion_contents",
"suspicious_stew_effects",
"writable_book_content",
"written_book_content",
"trim",
"debug_stick_state",
"entity_data",
"bucket_entity_data",
"block_entity_data",
"instrument",
"recipes",
"lodestone_target",
"firework_explosion",
"fireworks",
"profile",
"note_block_sound",
"banner_patterns",
"base_color",
"pot_decorations",
"container",
"block_state",
"bees",
"lock",
"container_loot"
]
}

View File

@ -31110,5 +31110,54 @@
"smithing_transform",
"smithing_trim",
"crafting_decorated_pot"
],
"data_component_type": [
"custom_data",
"damage",
"unbreakable",
"custom_name",
"lore",
"enchantments",
"can_place_on",
"can_break",
"attribute_modifiers",
"custom_model_data",
"hide_additional_tooltip",
"repair_cost",
"creative_slot_lock",
"enchantment_glint_override",
"intangible_projectile",
"stored_enchantments",
"dyed_color",
"map_color",
"map_id",
"map_decorations",
"map_post_processing",
"charged_projectiles",
"bundle_contents",
"potion_contents",
"suspicious_stew_effects",
"writable_book_content",
"written_book_content",
"trim",
"debug_stick_state",
"entity_data",
"bucket_entity_data",
"block_entity_data",
"instrument",
"recipes",
"lodestone_target",
"firework_explosion",
"fireworks",
"profile",
"note_block_sound",
"banner_patterns",
"base_color",
"pot_decorations",
"container",
"block_state",
"bees",
"lock",
"container_loot"
]
}

Binary file not shown.

Binary file not shown.

View File

@ -162,6 +162,7 @@ public final class MappingsGenerator {
addArray(viaMappings, registries, "minecraft:menu", "menus");
addArray(viaMappings, registries, "minecraft:attribute", "attributes");
addArray(viaMappings, registries, "minecraft:recipe_serializer", "recipe_serializers");
addArray(viaMappings, registries, "minecraft:data_component_type", "data_component_type");
// Save
new File("mappings").mkdir();

View File

@ -165,6 +165,7 @@ public final class MappingsOptimizer {
mappings(false, "menus");
mappings(false, "attributes");
mappings(false, "recipe_serializers");
mappings(false, "data_component_type");
if (diffObject != null) {
names("items", "itemnames");
@ -234,6 +235,7 @@ public final class MappingsOptimizer {
storeIdentifiers(identifiers, object, "particles");
storeIdentifiers(identifiers, object, "argumenttypes");
storeIdentifiers(identifiers, object, "recipe_serializers");
storeIdentifiers(identifiers, object, "data_component_type");
if (SAVED_IDENTIFIER_FILES.add(version)) {
write(identifiers, OUTPUT_DIR.resolve(OUTPUT_IDENTIFIERS_FILE_FORMAT.formatted(version)));
}