mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
SignBlockEntityMixin cleanup
This commit is contained in:
@@ -23,12 +23,11 @@ public abstract class SignBlockEntityMixin {
|
||||
private Text[] text;
|
||||
|
||||
public @NotNull String[] terra$getLines() {
|
||||
return new String[] {
|
||||
terra$getLine(0),
|
||||
terra$getLine(1),
|
||||
terra$getLine(2),
|
||||
terra$getLine(3)
|
||||
};
|
||||
String[] lines = new String[text.length];
|
||||
for(int i = 0; i < text.length; i++) {
|
||||
lines[i] = text[i].asString();
|
||||
}
|
||||
return lines;
|
||||
}
|
||||
|
||||
public @NotNull String terra$getLine(int index) throws IndexOutOfBoundsException {
|
||||
|
||||
Reference in New Issue
Block a user