Markings .java

net.minecraft.world.entity.animal.equine.Markings (enum): members: NONE, WHITE, WHITE_FIELD, WHITE_DOTS, BLACK_DOTS, byId, BY_ID, getId. imports: ByIdMap.

net.minecraft.world.entity.animal.equineenum28 linescommon543 B

API Surface (2)

int getId()
Markings byId(final int id)

Fields & Constants (2)

BY_ID
id

Code Graph: Dependencies (1)

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

Full Source

Markings.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.animal.equine;
2
3
import java.util.function.IntFunction;
4
import net.minecraft.util.ByIdMap;
5
6
public enum Markings {
7
	NONE(0),
8
	WHITE(1),
9
	WHITE_FIELD(2),
10
	WHITE_DOTS(3),
11
	BLACK_DOTS(4);
12
13
	private static final IntFunction<Markings> BY_ID = ByIdMap.continuous(Markings::getId, values(), ByIdMap.OutOfBoundsStrategy.WRAP);
14
	private final int id;
15
16
	Markings(final int id) {
17
		this.id = id;
18
	}
19
20
	public int getId() {
21
		return this.id;
22
	}
23
24
	public static Markings byId(final int id) {
25
		return BY_ID.apply(id);
26
	}
27
}
28

Decompiled Minecraft 26.3 source of Markings (net/minecraft/world/entity/animal/equine/Markings.java) with Mojang official mappings, stored verbatim on the site.