TickTask .java

net.minecraft.server.TickTask (class, 21 lines): implements Runnable. members: runnable, getTick, run, tick.

net.minecraft.serverclass21 linesserver355 B

Implements

API Surface (2)

int getTick()
void run()

Fields & Constants (2)

tick
runnable

Full Source

TickTask.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.server;
2
3
public class TickTask implements Runnable {
4
	private final int tick;
5
	private final Runnable runnable;
6
7
	public TickTask(final int tick, final Runnable runnable) {
8
		this.tick = tick;
9
		this.runnable = runnable;
10
	}
11
12
	public int getTick() {
13
		return this.tick;
14
	}
15
16
	@Override
17
	public void run() {
18
		this.runnable.run();
19
	}
20
}
21

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