Package de.dytanic.cloudnet.console
Interface IConsole
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
JLine3Console
public interface IConsole extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddCommandHandler(@NotNull java.util.UUID uniqueId, @NotNull java.util.function.Consumer<java.lang.String> inputConsumer)voidaddTabCompletionHandler(@NotNull java.util.UUID uniqueId, @NotNull ITabCompleter completer)voidclearScreen()voiddisableAllCommandHandlers()voiddisableAllHandlers()voiddisableAllTabCompletionHandlers()voidemptyPrompt()voidenableAllCommandHandlers()voidenableAllHandlers()voidenableAllTabCompletionHandlers()@NotNull IConsoleforceWrite(@NotNull java.lang.String text)@NotNull IConsoleforceWriteLine(@NotNull java.lang.String text)@Unmodifiable @NotNull java.util.List<java.lang.String>getCommandHistory()@NotNull java.lang.StringgetPrompt()@NotNull @UnmodifiableView java.util.Collection<AbstractConsoleAnimation>getRunningAnimations()@NotNull java.lang.StringgetScreenName()default booleanhasAnimationSupport()booleanhasColorSupport()booleanisAnimationRunning()booleanisPrintingEnabled()booleanisUsingMatchingHistoryComplete()@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.String>readLine()voidremoveCommandHandler(@NotNull java.util.UUID uniqueId)voidremovePrompt()voidremoveTabCompletionHandler(@NotNull java.util.UUID uniqueId)voidresetPrompt()voidsetCommandHistory(@Nullable java.util.List<java.lang.String> history)voidsetCommandInputValue(@NotNull java.lang.String commandInputValue)voidsetPrompt(@NotNull java.lang.String prompt)voidsetScreenName(@NotNull java.lang.String name)voidsetUsingMatchingHistoryComplete(boolean matchingHistoryComplete)voidstartAnimation(@NotNull AbstractConsoleAnimation animation)voidtogglePrinting(boolean enabled)@NotNull IConsolewrite(@NotNull java.lang.String text)@NotNull IConsolewriteLine(@NotNull java.lang.String text)@NotNull IConsolewriteRaw(@NotNull java.lang.String rawText)
-
-
-
Method Detail
-
getRunningAnimations
@NotNull @NotNull @UnmodifiableView java.util.Collection<AbstractConsoleAnimation> getRunningAnimations()
-
startAnimation
void startAnimation(@NotNull @NotNull AbstractConsoleAnimation animation)
-
isAnimationRunning
boolean isAnimationRunning()
-
togglePrinting
void togglePrinting(boolean enabled)
-
isPrintingEnabled
boolean isPrintingEnabled()
-
hasAnimationSupport
default boolean hasAnimationSupport()
-
getCommandHistory
@NotNull @Unmodifiable @NotNull java.util.List<java.lang.String> getCommandHistory()
-
setCommandHistory
void setCommandHistory(@Nullable @Nullable java.util.List<java.lang.String> history)
-
setCommandInputValue
void setCommandInputValue(@NotNull @NotNull java.lang.String commandInputValue)
-
readLine
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.String> readLine()
-
enableAllHandlers
void enableAllHandlers()
-
disableAllHandlers
void disableAllHandlers()
-
enableAllTabCompletionHandlers
void enableAllTabCompletionHandlers()
-
disableAllTabCompletionHandlers
void disableAllTabCompletionHandlers()
-
enableAllCommandHandlers
void enableAllCommandHandlers()
-
disableAllCommandHandlers
void disableAllCommandHandlers()
-
addCommandHandler
void addCommandHandler(@NotNull @NotNull java.util.UUID uniqueId, @NotNull @NotNull java.util.function.Consumer<java.lang.String> inputConsumer)
-
removeCommandHandler
void removeCommandHandler(@NotNull @NotNull java.util.UUID uniqueId)
-
addTabCompletionHandler
void addTabCompletionHandler(@NotNull @NotNull java.util.UUID uniqueId, @NotNull @NotNull ITabCompleter completer)
-
removeTabCompletionHandler
void removeTabCompletionHandler(@NotNull @NotNull java.util.UUID uniqueId)
-
writeRaw
@NotNull @NotNull IConsole writeRaw(@NotNull @NotNull java.lang.String rawText)
-
forceWrite
@NotNull @NotNull IConsole forceWrite(@NotNull @NotNull java.lang.String text)
-
forceWriteLine
@NotNull @NotNull IConsole forceWriteLine(@NotNull @NotNull java.lang.String text)
-
write
@NotNull @NotNull IConsole write(@NotNull @NotNull java.lang.String text)
-
writeLine
@NotNull @NotNull IConsole writeLine(@NotNull @NotNull java.lang.String text)
-
hasColorSupport
boolean hasColorSupport()
-
isUsingMatchingHistoryComplete
boolean isUsingMatchingHistoryComplete()
-
setUsingMatchingHistoryComplete
void setUsingMatchingHistoryComplete(boolean matchingHistoryComplete)
-
getPrompt
@NotNull @NotNull java.lang.String getPrompt()
-
setPrompt
void setPrompt(@NotNull @NotNull java.lang.String prompt)
-
resetPrompt
void resetPrompt()
-
removePrompt
void removePrompt()
-
emptyPrompt
void emptyPrompt()
-
clearScreen
void clearScreen()
-
getScreenName
@NotNull @NotNull java.lang.String getScreenName()
-
setScreenName
void setScreenName(@NotNull @NotNull java.lang.String name)
-
-