minecraft-src/net/minecraft/gametest/framework/GameTestAssertException.java
2025-07-04 03:45:38 +03:00

23 lines
569 B
Java

package net.minecraft.gametest.framework;
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);
}
public String getMessage() {
return this.getDescription().getString();
}
}