public enum SourceType extends java.lang.Enum<SourceType>
A source is either a FILE
change, or it is an object derived from a file. The others are provided for better
resolution of overlapping types (for example "buildcraftlib:items/guide_book" may either refer to the item model or
the texture depending on what uses that identifier)
Enum Constant and Description |
---|
CONFIG
A configuration option has changed.
|
FILE
The resource on-disk changed, and so the object that loaded from disk should change, but not that listeners of
that object.
|
MODEL
An
IBakedModel or IModel or other model storage object has changed. |
SPRITE
A
TextureAtlasSprite object has changed its data. |
Modifier and Type | Field and Description |
---|---|
static SourceType[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static SourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceType FILE
public static final SourceType CONFIG
FILE
change.public static final SourceType SPRITE
TextureAtlasSprite
object has changed its data.public static final SourceType MODEL
IBakedModel
or IModel
or other model storage object has changed.public static final SourceType[] VALUES
public static SourceType[] values()
for (SourceType c : SourceType.values()) System.out.println(c);
public static SourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null