IMinecraft

@ApiStatus.NonExtendable()
public interface IMinecraft(source)

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

See also

Types

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
Link copied to clipboard
@Deprecated(message = "Prefer using .bindTexture from RenderContext")
public abstract Unit bindTexture(MyResourceLocation resourceLocation)
Link copied to clipboard
public abstract String copyFromClipboard()
Link copied to clipboard
public abstract Unit copyToClipboard(String string)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public abstract String getKeyName(Integer keyCode)
Link copied to clipboard
public abstract MCLogger getLogger(String label)
Link copied to clipboard
public abstract Integer getMouseX()
Link copied to clipboard
public abstract Double getMouseXHF()
Link copied to clipboard
public abstract Integer getMouseY()
Link copied to clipboard
public abstract Double getMouseYHF()
Link copied to clipboard
public abstract Integer getScaledHeight()
Link copied to clipboard
public abstract Integer getScaledWidth()
Link copied to clipboard
public abstract Integer getScaleFactor()
Link copied to clipboard
Link copied to clipboard
public abstract Boolean isKeyboardKeyDown(Integer keyboardKey)
Link copied to clipboard
public abstract Boolean isMouseButtonDown(Integer mouseButton)
Link copied to clipboard
public abstract InputStream loadResourceLocation(MyResourceLocation resourceLocation)
Link copied to clipboard
public abstract Unit openWrappedScreen(GuiContext gui)
public abstract Unit openWrappedScreen(GuiElement gui)
Link copied to clipboard
@Deprecated(message = "This context will be at the top level, not providing any of the useful translations and scalings that might be needed to render properly. Use with care.")
public abstract RenderContext provideTopLevelRenderContext()

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
public abstract Unit sendClickableChatMessage(String message, String action, ClickType type)