23 lines
		
	
	
	
		
			569 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			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();
 | |
| 	}
 | |
| }
 |