Enum Class Asset.Source

java.lang.Object
java.lang.Enum<Asset.Source>
net.risingworld.api.assets.Asset.Source
All Implemented Interfaces:
Serializable, Comparable<Asset.Source>, Constable
Enclosing class:
Asset

public static enum Asset.Source extends Enum<Asset.Source>
The asset source, i.e where it is loaded from
  • Enum Constant Details

    • None

      public static final Asset.Source None
      Unspecified
    • Raw

      public static final Asset.Source Raw
      Asset is loaded from raw byte data
    • File

      public static final Asset.Source File
      Asset is loaded from a file
    • GameAsset

      public static final Asset.Source GameAsset
      Asset is loaded from a built-in game file
    • AssetBundle

      public static final Asset.Source AssetBundle
      Asset is loaded from an asset bundle
    • URL

      public static final Asset.Source URL
      Asset is loaded from an URL
  • Method Details

    • values

      public static Asset.Source[] 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 Asset.Source 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
    • get

      public static Asset.Source get(int ordinal)