package net.minecraft.server;

public class TickTask implements Runnable {

    private final int tick;
    private final Runnable runnable;

    public TickTask(int i, Runnable runnable) {
        this.tick = i;
        this.runnable = runnable;
    }

    public int a() {
        return this.tick;
    }

    public void run() {
        this.runnable.run();
    }
}
