
Evening Star Lib
Активный0.0
Установок
Последнее обновление
Версии
About
Modding library made up of code I got tired of writing over and over.
Evening Star Lib contains tools to speed up the development of Minecraft mods, with utilities for mod compatibility, rendering, and positional information.
Evening Star Lib is actively being updated with new features!
Features
Proper wiki creation pending
Adding to project
Repository:
repositories {
maven { url = "https://api.modrinth.com/maven"}
}
Dependency:
Replace
dependencies {
modImplementation ("maven.modrinth:eveningstarlib:<VERSION>")
}
Mod Checks
ESLModChecks.isIris()
:
Returns a boolean representing if Iris is present on the client or not.
ESLModChecks.isShaders()
:
Returns a boolean representing if a shaderpack is currently in use (Runs isIris()
within itself, no need to double up). Requires compiling against Iris at minimum.
ESLModChecks.isSodium()
: Returns a boolean representing if Sodium is present on the client or not.
Rendering Utilities
ESLRenderUtils.getCamera()
: Returns a Camera
of the game instance camera.
ESLRenderUtils.getCameraPos()
: Returns a Vec3d
of the game instance camera position.
Position Utilities
ESLPositionUtils.posAtRanScreenEdge()
: Returns a Vec2f
of a random position along the edge of the game window.