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

31 lines
737 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.gametest.framework;
import net.minecraft.gametest.framework.GameTestException;
import net.minecraft.network.chat.Component;
public class GameTestAssertException
extends GameTestException {
protected final Component message;
protected final int tick;
public GameTestAssertException(Component message, int tick) {
super(message.getString());
this.message = message;
this.tick = tick;
}
@Override
public Component getDescription() {
return Component.translatable("test.error.tick", this.message, this.tick);
}
@Override
public String getMessage() {
return this.getDescription().getString();
}
}