LoadingDotsText .java

net.minecraft.client.gui.screens.LoadingDotsText (class, 16 lines): members: INTERVAL_MS, FRAMES, get. imports: EnvType.

net.minecraft.client.gui.screensclass16 linesclient440 B

API Surface (1)

String get(final long timeMs)

Fields & Constants (2)

FRAMES
INTERVAL_MS

Full Source

LoadingDotsText.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.screens;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
6
@Environment(EnvType.CLIENT)
7
public class LoadingDotsText {
8
	private static final String[] FRAMES = new String[]{"O o o", "o O o", "o o O", "o O o"};
9
	private static final long INTERVAL_MS = 300L;
10
11
	public static String get(final long timeMs) {
12
		int index = (int)(timeMs / 300L % FRAMES.length);
13
		return FRAMES[index];
14
	}
15
}
16

Decompiled Minecraft 26.3 source of LoadingDotsText (net/minecraft/client/gui/screens/LoadingDotsText.java) with Mojang official mappings, stored verbatim on the site.