CommandManager

Contains routines for handling commands and the command registry

Author

superblaubeere27 (@team CCBlueX)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
fun addCommand(command: Command)
Link copied to clipboard
fun autoComplete(origCmd: String, start: Int): CompletableFuture<Suggestions>
Link copied to clipboard
fun Iterable<Vec3>.average(): Vec3
Link copied to clipboard
open operator override fun contains(element: Command): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Command>): Boolean
Link copied to clipboard

Creates a ZIP file from multiple files

Link copied to clipboard
@JvmName(name = "execute")
fun execute(cmd: String)

Executes a command.

Link copied to clipboard
fun <T : ItemSlot> Iterable<T>.findBestToolToMineBlock(blockState: BlockState, ignoreDurability: Boolean = true, predicate: BiPredicate<ItemStack, BlockState> = BiPredicate { _, _ -> true }): T?

Finds the best slot in this iterable for mining blockState using mc.player as baseline.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Command>
Link copied to clipboard
fun Collection<Component>.joinToText(separator: Component): Component

Joins a list of Component into a single Component with the given separator.

fun <T> Collection<T>.joinToText(separator: Component, prefix: Component? = null, postfix: Component? = null, transform: Function<T, Component>): Component
Link copied to clipboard
Link copied to clipboard
inline fun <T> Collection<T>.mapString(transform: (T) -> Char): String

Transform a Collection to a String with by given transform

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeCommand(command: Command)
Link copied to clipboard

Tokenizes the line.

Link copied to clipboard