Companion

object Companion

Types

Link copied to clipboard
object camera
Link copied to clipboard
object currentGui

Functions

Link copied to clipboard
fun connect(ip: String)

Connects to the server with the given ip.

Link copied to clipboard
fun disconnect()

Quits the client back to the main menu. This acts just like clicking the "Disconnect" or "Save and quit to title" button.

Link copied to clipboard
fun getChatGUI(): GuiNewChat?

Gets the Minecraft GuiNewChat object for the chat gui

Link copied to clipboard
fun getConnection(): NetHandlerPlayClient?

Gets Minecraft's NetHandlerPlayClient object

Link copied to clipboard
fun getCurrentChatMessage(): String

Gets the chat message currently typed into the chat gui.

Link copied to clipboard
fun getFPS(): Int
Link copied to clipboard
fun getFreeMemory(): Long
Link copied to clipboard
fun getMaxMemory(): Long
Link copied to clipboard
fun getMemoryUsage(): Int
Link copied to clipboard
fun getMinecraft(): Minecraft

Gets Minecraft's Minecraft object

Link copied to clipboard
fun getMouseX(): Float
Link copied to clipboard
fun getMouseY(): Float
Link copied to clipboard
fun getSystemTime(): Long
Link copied to clipboard
fun getTabGui(): GuiPlayerTabOverlay?
Link copied to clipboard
fun getTotalMemory(): Long
Link copied to clipboard
fun getVersion(): String
Link copied to clipboard
fun isAltDown(): Boolean
Link copied to clipboard
fun isControlDown(): Boolean
Link copied to clipboard
fun isInChat(): Boolean
Link copied to clipboard
fun isInGui(): Boolean
Link copied to clipboard
fun isInTab(): Boolean
Link copied to clipboard
fun isShiftDown(): Boolean
Link copied to clipboard
fun isTabbedIn(): Boolean

Gets whether the Minecraft window is active and in the foreground of the user's screen.

Link copied to clipboard
fun scheduleTask(delay: Int = 0, callback: () -> Unit)

Schedule's a task to run on Minecraft's main thread in delay ticks. Defaults to the next tick.

Link copied to clipboard
fun <T : INetHandler> sendPacket(packet: Packet<T>)
Link copied to clipboard
fun setCurrentChatMessage(message: String)

Sets the current chat message, if the chat gui is not open, one will be opened.

Link copied to clipboard
fun showTitle(title: String, subtitle: String, fadeIn: Int, time: Int, fadeOut: Int)

Display a title.

Properties

Link copied to clipboard
val settings: Settings

Sources

Link copied to clipboard