Class ASM

java.lang.Object
org.spongepowered.asm.util.asm.ASM

public final class ASM
extends java.lang.Object
Utility methods for determining ASM version and other version-specific shenanigans
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int API_VERSION
    The detected ASM API Version
  • Method Summary

    Modifier and Type Method Description
    static int getApiVersionMajor()
    Get the major API version
    static int getApiVersionMinor()
    Get the minor API version
    static java.lang.String getApiVersionString()
    Get the ASM API version as a string (mostly for debugging and the banner)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • API_VERSION

      public static final int API_VERSION
      The detected ASM API Version
  • Method Details

    • getApiVersionMajor

      public static int getApiVersionMajor()
      Get the major API version
    • getApiVersionMinor

      public static int getApiVersionMinor()
      Get the minor API version
    • getApiVersionString

      public static java.lang.String getApiVersionString()
      Get the ASM API version as a string (mostly for debugging and the banner)
      Returns:
      ASM API version as string