Soncresity Industries Wiki

Version Utilities

Allows you to get the Minecraft, loader and SI: Essentials version

Introduction

A fully functional Version of this class has first been introduced in Version 2.3.0

The Version Utils class allows you to get the current Minecraft/Loader/SI: Essentials version.

Class

File: VersionUtils.java

Package: dev.soncresityindustries.es.api.v0.util

Methods

getMinecraftVersion

public static String getMinecraftVersion() {}

Returns the current Minecraft version as a String.

Usage

String mcVer = VersionUtils.getMinecraftVersion();

getLoaderVersion

public static String getLoaderVersion() {}

Returns the current Loader version as a String.

Example:

  • For Fabric, it would return something like 0.18.4
  • For NeoForge, it would return something like 21.11.38-beta

Usage

String loaderVer = VersionUtils.getLoaderVersion();

getSIESVersion

public static String getSIESVersion() {}

Returns the current SI: Essentials version as a String.

Usage

String siesVer = VersionUtils.getSIESVersion();

On this page