SchemaComponent .java

net.minecraft.server.jsonrpc.api.SchemaComponent (record, 15 lines): record with 3 components. members: ref, schema, asRef, asArray, name.

net.minecraft.server.jsonrpc.apirecord15 linesserver350 B

API Surface (2)

Schema<T> asRef()
Schema<List<T>> asArray()

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

SchemaComponent.java15 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.server.jsonrpc.api;
2
3
import java.net.URI;
4
import java.util.List;
5
6
public record SchemaComponent<T>(String name, URI ref, Schema<T> schema) {
7
	public Schema<T> asRef() {
8
		return Schema.ofRef(this.ref, this.schema.codec());
9
	}
10
11
	public Schema<List<T>> asArray() {
12
		return Schema.arrayOf(this.asRef(), this.schema.codec());
13
	}
14
}
15

Decompiled Minecraft 26.3 source of SchemaComponent (net/minecraft/server/jsonrpc/api/SchemaComponent.java) with Mojang official mappings, stored verbatim on the site.