Present adventure on compile time

Co-Authored-By: Hannes Greule <SirYwell@users.noreply.github.com>
Dieser Commit ist enthalten in:
NotMyFault 2021-02-22 11:04:12 +01:00
Ursprung 4a6af7182a
Commit f5956b66a8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -64,6 +64,13 @@ repositories {
includeGroup("de.notmyfault") includeGroup("de.notmyfault")
} }
} }
maven {
name = "OSS Sonatype Releases"
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
content {
includeGroup("net.kyori")
}
}
flatDir { dir(File("src/main/resources")) } flatDir { dir(File("src/main/resources")) }
} }
@ -107,6 +114,8 @@ dependencies {
exclude("com.sk89q.worldedit.worldedit-libs", "bukkit") exclude("com.sk89q.worldedit.worldedit-libs", "bukkit")
exclude("com.sk89q.worldedit.worldedit-libs", "core") exclude("com.sk89q.worldedit.worldedit-libs", "core")
} }
compileOnly("net.kyori:adventure-api:4.5.0")
testCompileOnly("net.kyori:adventure-api:4.5.0")
api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT") api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT")
// Third party // Third party
implementation("org.bstats:bstats-bukkit:2.2.1") implementation("org.bstats:bstats-bukkit:2.2.1")

Datei anzeigen

@ -15,6 +15,7 @@ import org.bukkit.persistence.PersistentDataContainer;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
@ -26,6 +27,21 @@ public class AsyncSign extends AsyncBlockState implements Sign {
private boolean isEditable = false; private boolean isEditable = false;
@Override
public @NotNull List<net.kyori.adventure.text.Component> lines() {
throw new UnsupportedOperationException();
}
@Override
public net.kyori.adventure.text.@NotNull Component line(int index) throws IndexOutOfBoundsException {
throw new UnsupportedOperationException();
}
@Override
public void line(int index, net.kyori.adventure.text.@NotNull Component line) throws IndexOutOfBoundsException {
}
@Override @Override
public String[] getLines() { public String[] getLines() {
CompoundTag nbt = getNbtData(); CompoundTag nbt = getNbtData();