Spaces:
Build error
Build error
package net.minecraft.gametest.framework; | |
import javax.annotation.Nullable; | |
import net.minecraft.core.BlockPos; | |
public class GameTestAssertPosException extends GameTestAssertException { | |
private final BlockPos absolutePos; | |
private final BlockPos relativePos; | |
private final long tick; | |
public GameTestAssertPosException(String p_177051_, BlockPos p_177052_, BlockPos p_177053_, long p_177054_) { | |
super(p_177051_); | |
this.absolutePos = p_177052_; | |
this.relativePos = p_177053_; | |
this.tick = p_177054_; | |
} | |
public String getMessage() { | |
String s = this.absolutePos.getX() | |
+ "," | |
+ this.absolutePos.getY() | |
+ "," | |
+ this.absolutePos.getZ() | |
+ " (relative: " | |
+ this.relativePos.getX() | |
+ "," | |
+ this.relativePos.getY() | |
+ "," | |
+ this.relativePos.getZ() | |
+ ")"; | |
return super.getMessage() + " at " + s + " (t=" + this.tick + ")"; | |
} | |
public String getMessageToShowAtBlock() { | |
return super.getMessage(); | |
} | |
public BlockPos getRelativePos() { | |
return this.relativePos; | |
} | |
public BlockPos getAbsolutePos() { | |
return this.absolutePos; | |
} | |
} |