mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
format all the things!
This commit is contained in:
1 parent
54ec75fd3d
commit
b36c6dade6
377 files changed
+6833
-6772
No files matched your search
@@ -16,27 +16,28 @@ public class ZenPosition {
|
||||
private final ZenParsedFile file;
|
||||
private final int line;
|
||||
private final int offset;
|
||||
|
||||
|
||||
public ZenPosition(ZenParsedFile file, int line, int offset) {
|
||||
if (file != null && line <= 0) throw new IllegalArgumentException("Line must be positive");
|
||||
|
||||
if (file != null && line <= 0)
|
||||
throw new IllegalArgumentException("Line must be positive");
|
||||
|
||||
this.file = file;
|
||||
this.line = line;
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
|
||||
public ZenParsedFile getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
|
||||
public int getLine() {
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
public int getLineOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return (file == null ? "?" : file.getFileName()) + ":" + Integer.toString(line);
|
||||
|
||||
Reference in new issue
Block a user