Package com.loohp.limbo
Class Console
java.lang.Object
net.minecrell.terminalconsole.SimpleTerminalConsole
com.loohp.limbo.Console
- All Implemented Interfaces:
CommandSender
,net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
public class Console
extends net.minecrell.terminalconsole.SimpleTerminalConsole
implements CommandSender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final org.apache.logging.log4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jline.reader.LineReader
buildReader
(org.jline.reader.LineReaderBuilder builder) void
getName()
boolean
hasPermission
(String permission) void
hideBossBar
(@NotNull net.kyori.adventure.bossbar.BossBar bar) protected boolean
void
openBook
(@NotNull net.kyori.adventure.inventory.Book book) void
playSound
(@NotNull net.kyori.adventure.sound.Sound sound) void
playSound
(@NotNull net.kyori.adventure.sound.Sound sound, double x, double y, double z) void
playSound
(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull net.kyori.adventure.sound.Sound.Emitter emitter) void
protected void
runCommand
(String command) void
sendActionBar
(@NotNull net.kyori.adventure.text.Component message) void
sendMessage
(@NotNull net.kyori.adventure.identity.Identity source, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type) void
sendMessage
(String message) void
sendMessage
(String message, UUID uuid) void
sendPlayerListHeaderAndFooter
(@NotNull net.kyori.adventure.text.Component header, @NotNull net.kyori.adventure.text.Component footer) <T> void
sendTitlePart
(@NotNull net.kyori.adventure.title.TitlePart<T> part, T value) void
showBossBar
(@NotNull net.kyori.adventure.bossbar.BossBar bar) protected void
shutdown()
void
stopSound
(@NotNull net.kyori.adventure.sound.SoundStop stop) Methods inherited from class net.minecrell.terminalconsole.SimpleTerminalConsole
processInput, start
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, deleteMessage, deleteMessage, filterAudience, forEachAudience, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, showDialog, showTitle, stopSound
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Field Details
-
CONSOLE_NAME
- See Also:
-
logger
protected static final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
Console
public Console()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceCommandSender
-
hasPermission
- Specified by:
hasPermission
in interfaceCommandSender
-
buildReader
protected org.jline.reader.LineReader buildReader(org.jline.reader.LineReaderBuilder builder) - Overrides:
buildReader
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
isRunning
protected boolean isRunning()- Specified by:
isRunning
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
runCommand
- Specified by:
runCommand
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
shutdown
protected void shutdown()- Specified by:
shutdown
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
sendMessage
- Specified by:
sendMessage
in interfaceCommandSender
-
sendMessage
- Specified by:
sendMessage
in interfaceCommandSender
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.identity.Identity source, @NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull @NotNull net.kyori.adventure.audience.MessageType type) - Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.Audience
-
openBook
public void openBook(@NotNull @NotNull net.kyori.adventure.inventory.Book book) - Specified by:
openBook
in interfacenet.kyori.adventure.audience.Audience
-
stopSound
public void stopSound(@NotNull @NotNull net.kyori.adventure.sound.SoundStop stop) - Specified by:
stopSound
in interfacenet.kyori.adventure.audience.Audience
-
playSound
public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound, @NotNull @NotNull net.kyori.adventure.sound.Sound.Emitter emitter) - Specified by:
playSound
in interfacenet.kyori.adventure.audience.Audience
-
playSound
public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound, double x, double y, double z) - Specified by:
playSound
in interfacenet.kyori.adventure.audience.Audience
-
playSound
public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound) - Specified by:
playSound
in interfacenet.kyori.adventure.audience.Audience
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
sendActionBar
in interfacenet.kyori.adventure.audience.Audience
-
sendTitlePart
public <T> void sendTitlePart(@NotNull @NotNull net.kyori.adventure.title.TitlePart<T> part, @NotNull T value) - Specified by:
sendTitlePart
in interfacenet.kyori.adventure.audience.Audience
-
clearTitle
public void clearTitle()- Specified by:
clearTitle
in interfacenet.kyori.adventure.audience.Audience
-
resetTitle
public void resetTitle()- Specified by:
resetTitle
in interfacenet.kyori.adventure.audience.Audience
-
showBossBar
public void showBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bar) - Specified by:
showBossBar
in interfacenet.kyori.adventure.audience.Audience
-
hideBossBar
public void hideBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bar) - Specified by:
hideBossBar
in interfacenet.kyori.adventure.audience.Audience
-