Include item_data_components.json, target new mappings

This commit is contained in:
onebeastchris 2024-12-05 18:16:09 +08:00
parent ed3008f245
commit b469a61b72
3 changed files with 19964 additions and 2 deletions

View file

@ -54,7 +54,7 @@ public final class DataComponentRegistryPopulator {
public static void populate() { public static void populate() {
GeyserBootstrap bootstrap = GeyserImpl.getInstance().getBootstrap(); GeyserBootstrap bootstrap = GeyserImpl.getInstance().getBootstrap();
List<DataComponents> defaultComponents; List<DataComponents> defaultComponents;
try (InputStream stream = bootstrap.getResourceOrThrow("mappings/item_data_components.json")) { try (InputStream stream = bootstrap.getResourceOrThrow("java/item_data_components.json")) {
JsonElement rootElement = JsonParser.parseReader(new InputStreamReader(stream)); JsonElement rootElement = JsonParser.parseReader(new InputStreamReader(stream));
JsonArray jsonArray = rootElement.getAsJsonArray(); JsonArray jsonArray = rootElement.getAsJsonArray();

File diff suppressed because it is too large Load diff

@ -1 +1 @@
Subproject commit e1eafe2c5304012d23acba80659459f7868fe2b1 Subproject commit 452312f88317cce019b8f336f485ffa7b2c19557