2025-11-24 22:52:51 +03:00

29 lines
727 B
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.jspecify.annotations.Nullable
*/
package net.minecraft.gametest.framework;
import org.jspecify.annotations.Nullable;
class GameTestEvent {
public final @Nullable Long expectedDelay;
public final Runnable assertion;
private GameTestEvent(@Nullable Long expectedDelay, Runnable assertion) {
this.expectedDelay = expectedDelay;
this.assertion = assertion;
}
static GameTestEvent create(Runnable runnable) {
return new GameTestEvent(null, runnable);
}
static GameTestEvent create(long expectedTick, Runnable runnable) {
return new GameTestEvent(expectedTick, runnable);
}
}