Present adventure on compile time

Co-Authored-By: Hannes Greule <SirYwell@users.noreply.github.com>
This commit is contained in:
NotMyFault
2021-02-22 11:04:12 +01:00
parent 4a6af7182a
commit f5956b66a8
2 changed files with 25 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import org.bukkit.persistence.PersistentDataContainer;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@ -26,6 +27,21 @@ public class AsyncSign extends AsyncBlockState implements Sign {
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
public String[] getLines() {
CompoundTag nbt = getNbtData();