IMinecraft

@ApiStatus.NonExtendable
interface IMinecraft(source)

Not for manual implementation. This should be implemented by the corresponding platform.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val mouseX: Int
Link copied to clipboard
abstract val mouseXHF: Double
Link copied to clipboard
abstract val mouseY: Int
Link copied to clipboard
abstract val mouseYHF: Double
Link copied to clipboard
abstract val scaledHeight: Int
Link copied to clipboard
abstract val scaledWidth: Int
Link copied to clipboard
abstract val scaleFactor: Int

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun bindTexture(resourceLocation: MyResourceLocation)
Link copied to clipboard
abstract fun copyFromClipboard(): String
Link copied to clipboard
abstract fun copyToClipboard(string: String)
Link copied to clipboard
abstract fun getLogger(label: String): MCLogger
Link copied to clipboard
abstract fun isKeyboardKeyDown(keyboardKey: Int): Boolean
Link copied to clipboard
abstract fun isMouseButtonDown(mouseButton: Int): Boolean
Link copied to clipboard
abstract fun loadResourceLocation(resourceLocation: MyResourceLocation): InputStream
Link copied to clipboard
abstract fun openWrappedScreen(gui: GuiContext)
abstract fun openWrappedScreen(gui: GuiElement)
Link copied to clipboard

This is a method to provide a render context. Note that constructing this context directly will potentially give you an incorrect render state, leading to visual glitches. Depending on your platform, this might also require additional platform specific cleanup / post rendering work to be done. Use only if you know exactly that none of your rendering requires this extra functionality.

Link copied to clipboard
abstract fun sendClickableChatMessage(message: String, action: String, type: ClickType)