"Implement" v2 block mappings reading

This commit is contained in:
Eclipse 2024-12-19 11:52:56 +00:00
parent 16832433a0
commit 4629f7b6f6
No known key found for this signature in database
GPG key ID: 95E6998F82EC938A

View file

@ -85,7 +85,7 @@ public class MappingsReader_v2 extends MappingsReader {
@Override
public void readBlockMappings(Path file, JsonNode mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) {
// TODO
throw new RuntimeException("Unimplemented; use the v1 format of block mappings");
}
private void readItemDefinitionEntry(JsonNode data, String itemIdentifier, String model,
@ -269,6 +269,6 @@ public class MappingsReader_v2 extends MappingsReader {
@Override
public CustomBlockMapping readBlockMappingEntry(String identifier, JsonNode node) throws InvalidCustomMappingsFileException {
return null; // TODO
throw new InvalidCustomMappingsFileException("Unimplemented; use the v1 format of block mappings");
}
}