Interface ScreenPlatform
public interface ScreenPlatform
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()<T> Tcurrent()voiddefault voiddefault floatReturn a scaling factor from the Minecraft scaled coordinate system to standard window coordinates.default floatdefault floatReturn a scaling factor from the standard window coordinates to Minecraft scaled coordinate space.default floatintintintint
-
Method Details
-
viewportWidth
int viewportWidth() -
viewportHeight
int viewportHeight() -
windowWidth
int windowWidth() -
windowHeight
int windowHeight() -
pixelRatio
default float pixelRatio() -
surfaceRatio
default float surfaceRatio() -
mcToScreenScale
default float mcToScreenScale()Return a scaling factor from the Minecraft scaled coordinate system to standard window coordinates.
These window/screen coordinates are used by mouse and input, as well as resizing. See the inverse,screenToMcScale(). -
screenToMcScale
default float screenToMcScale()Return a scaling factor from the standard window coordinates to Minecraft scaled coordinate space.
These coordinates can be used in Minecraft rendering methods so they render at the correct place. See the inverse,mcToScreenScale(). -
display
-
display
-
close
default void close() -
current
@Nullable <T> T current()
-