# Java and Bedrock

The same Vyse asset can be viewed in three ways: neutral, Java, or Bedrock. This page explains which one the API returns and why.

## The Principle

A **JAVA** project is the source of truth: its blocks and furnishings are Java documents. Its **Bedrock** view is a live projection: it reads the same assets and only records what is specific to Bedrock (inclusion in the pack, collision boxes, and selection boxes). Modifying the Bedrock view never changes the Java asset.

| View | Returned Objects | When |
|---|---|---|
| Neutral | `AssetSummaryDto` | You are browsing your assets without being part of a project: `/api/v1/assets` |
| Java | `JavaBlockDto`, `JavaFurnitureDto`, `JavaEntityDto`, `JavaVanillaBlockDto` | You are working in a Java project: `/projects/{id}/java/...` |
| Bedrock | `BedrockAssetDto` | You are configuring the Bedrock output: `/projects/{id}/bedrock/...` |

Each typed object carries a `platform` field (`java` or `bedrock`), and each project lists its views in `platforms`.

## According to Project Type

| Project Type | `platforms` | Java Routes | Bedrock Routes |
|---|---|---|---|
| `JAVA` (or legacy project without type) | `["java", "bedrock"]` | Yes | Yes, projection |
| `BEDROCK` | `["bedrock"]` | `409`, with the route to use | Yes |

## What Each View of the Same Block Contains

| Field | Neutral | Java | Bedrock |
|---|---|---|---|
| `id`, `name`, `slug` | Yes | Yes | Yes |
| Location (project, category, folder) | Complete, with names | `projectId`, `directoryId` | `projectId`, `directoryId` |
| Textures, face layout, `blockType` | – | Yes | – |
| Java hitbox, light, seat, scale (furnishings) | – | Yes | – |
| `exportEnabled`, `collisionBox`, `selectionBox` | – | – | Yes |
| Links to other views | `links` | – | – |

## For Integrations and AI

- In a Java project, stay on the `java` routes: you will always receive Java objects.
- To find an asset without knowing its project, use the neutral view, then follow `links.java` or `links.bedrock`.
- Identifiers are the same across all three views.

## Next Steps

- [Hitboxes, Java and Bedrock](/first-steps/hitbox-java-and-bedrock)
- [The API](/automate/the-api)
