FieldSelector .java

net.minecraft.nbt.visitors.FieldSelector (record, 19 lines): record with 3 components. members: path, name, type. imports: TagType.

net.minecraft.nbt.visitorsrecord19 linescommon571 B

API Surface (1)

record FieldSelector(List<String> path, TagType<?> type, String name)

Code Graph: Dependencies (1)

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

Full Source

FieldSelector.java19 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.nbt.visitors;
2
3
import java.util.List;
4
import net.minecraft.nbt.TagType;
5
6
public record FieldSelector(List<String> path, TagType<?> type, String name) {
7
	public FieldSelector(final TagType<?> type, final String name) {
8
		this(List.of(), type, name);
9
	}
10
11
	public FieldSelector(final String parent, final TagType<?> type, final String name) {
12
		this(List.of(parent), type, name);
13
	}
14
15
	public FieldSelector(final String grandparent, final String parent, final TagType<?> type, final String name) {
16
		this(List.of(grandparent, parent), type, name);
17
	}
18
}
19

Decompiled Minecraft 26.3 source of FieldSelector (net/minecraft/nbt/visitors/FieldSelector.java) with Mojang official mappings, stored verbatim on the site.