Class CorePluginVersion

java.lang.Object
org.core.platform.plugin.details.CorePluginVersion
All Implemented Interfaces:
PluginVersion

public class CorePluginVersion extends Object implements PluginVersion
Gets the plugin version in the form of major.minor.patch
  • Constructor Details

    • CorePluginVersion

      public CorePluginVersion(int major, int minor, int patch)
    • CorePluginVersion

      public CorePluginVersion(int major, int minor, int patch, @Nullable @Nullable String versionName, @Nullable @Nullable Integer version)
  • Method Details

    • getMajor

      public int getMajor()
    • getMinor

      public int getMinor()
    • getPatch

      public int getPatch()
    • isGreater

      public boolean isGreater(int major)
    • isGreater

      public boolean isGreater(int major, int minor)
    • isGreater

      public boolean isGreater(int major, @Nullable @Nullable Integer minor, @Nullable @Nullable Integer patch)
    • asString

      @NotNull public @NotNull String asString()
      Specified by:
      asString in interface PluginVersion