26 lines
432 B
Java
26 lines
432 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.server;
|
|
|
|
public class TickTask
|
|
implements Runnable {
|
|
private final int tick;
|
|
private final Runnable runnable;
|
|
|
|
public TickTask(int tick, Runnable runnable) {
|
|
this.tick = tick;
|
|
this.runnable = runnable;
|
|
}
|
|
|
|
public int getTick() {
|
|
return this.tick;
|
|
}
|
|
|
|
@Override
|
|
public void run() {
|
|
this.runnable.run();
|
|
}
|
|
}
|
|
|