InstrumentTags .java

net.minecraft.tags.InstrumentTags (interface, 16 lines): members: SCREAMING_GOAT_HORNS, REGULAR_GOAT_HORNS, GOAT_HORNS, create. strings: "goat_horns".

net.minecraft.tagsinterface16 linescommon556 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (3)

REGULAR_GOAT_HORNS
SCREAMING_GOAT_HORNS
GOAT_HORNS

String literals (3)

"regular_goat_horns"
"screaming_goat_horns"
"goat_horns"

Code Graph: Dependencies (4)

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

Full Source

InstrumentTags.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.tags;
2
3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.resources.Identifier;
5
import net.minecraft.world.item.Instrument;
6
7
public interface InstrumentTags {
8
	TagKey<Instrument> REGULAR_GOAT_HORNS = create("regular_goat_horns");
9
	TagKey<Instrument> SCREAMING_GOAT_HORNS = create("screaming_goat_horns");
10
	TagKey<Instrument> GOAT_HORNS = create("goat_horns");
11
12
	private static TagKey<Instrument> create(final String name) {
13
		return TagKey.create(Registries.INSTRUMENT, Identifier.withDefaultNamespace(name));
14
	}
15
}
16

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