Enum Class PlatformName

java.lang.Object
java.lang.Enum<PlatformName>
net.dillon.dillonlib.platform.info.PlatformName
All Implemented Interfaces:
Serializable, Comparable<PlatformName>, Constable

public enum PlatformName extends Enum<PlatformName>
All valid platforms that are commonly use in Minecraft modding that you can use with your mod. If you are coding a mod on multiple platforms, make sure each of your platforms return the correct platform id.
Since:
1.0
  • Enum Constant Details

  • Method Details

    • values

      public static PlatformName[] 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 PlatformName 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
    • fabric

      public boolean fabric()
    • neoforge

      public boolean neoforge()
    • forge

      public boolean forge()
    • other

      public boolean other()