Skip to content

Instantly share code, notes, and snippets.

@PTOM76
Created January 17, 2023 14:49
Show Gist options
  • Save PTOM76/6737319f7d04053d46510f98f10c1b7e to your computer and use it in GitHub Desktop.
Save PTOM76/6737319f7d04053d46510f98f10c1b7e to your computer and use it in GitHub Desktop.
package com.github.ptom76.tutorialfabricmod.timer;
import java.util.function.Supplier;
public class TickTimer {
public long ticksUntilSomething;
public Supplier<Boolean> supplier;
public TickTimer(long ticksUntilSomething, Supplier<Boolean> supplier) {
this.ticksUntilSomething = ticksUntilSomething;
this.supplier = supplier;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment