Package net.risingworld.api.assets
Enum Class Asset.Source
- All Implemented Interfaces:
Serializable
,Comparable<Asset.Source>
,Constable
- Enclosing class:
Asset
The asset source, i.e where it is loaded from
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Asset.Source
get
(int ordinal) static Asset.Source
Returns the enum constant of this class with the specified name.static Asset.Source[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Unspecified -
Raw
Asset is loaded from raw byte data -
File
Asset is loaded from a file -
GameAsset
Asset is loaded from a built-in game file -
AssetBundle
Asset is loaded from an asset bundle -
URL
Asset is loaded from an URL
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
-