Enum Class NonLegacyClass

java.lang.Object
java.lang.Enum<NonLegacyClass>
org.sgrewritten.stargate.property.NonLegacyClass
All Implemented Interfaces:
Serializable, Comparable<NonLegacyClass>, Constable

public enum NonLegacyClass extends Enum<NonLegacyClass>
Enum containing information whether a class can be found in the current setup
  • Enum Constant Details

    • CHAT_COLOR

      public static final NonLegacyClass CHAT_COLOR
    • POWERED_MINECART

      public static final NonLegacyClass POWERED_MINECART
    • WORLD

      public static final NonLegacyClass WORLD
    • PLAYER_ADVANCEMENT_CRITERION_EVENT

      public static final NonLegacyClass PLAYER_ADVANCEMENT_CRITERION_EVENT
    • ENTITY_INSIDE_BLOCK_EVENT

      public static final NonLegacyClass ENTITY_INSIDE_BLOCK_EVENT
    • COMPONENT

      public static final NonLegacyClass COMPONENT
    • SIGN_SIDE

      public static final NonLegacyClass SIGN_SIDE
    • REGIONIZED_SERVER

      public static final NonLegacyClass REGIONIZED_SERVER
      Check for Folia compatibility
    • MULTI_BLOCK_CHANGE_EVENT

      public static final NonLegacyClass MULTI_BLOCK_CHANGE_EVENT
      Check for bkcommonlib compatibility
    • BLOCK_UTIL

      public static final NonLegacyClass BLOCK_UTIL
  • Method Details

    • values

      public static NonLegacyClass[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NonLegacyClass valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isImplemented

      public boolean isImplemented()
      Returns:

      True if the class is implemented

    • getRelatedClass

      public Class<?> getRelatedClass() throws ClassNotFoundException
      Returns:

      The class that this checks against

      Throws:
      ClassNotFoundException -

      If the class does could not be found