Enum Layer.Kind
- All Implemented Interfaces:
Comparable<Layer.Kind>
- Enclosing class:
Layer
What a layer holds, which decides how its content is realized.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Layer.KindThe kind for a JSON token (case-insensitive); defaults to#ENTITY.static Layer.KindReturns the enum constant of this type with the specified name.static Layer.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.wireName()The lowercase JSON token for this kind ("tile"/"entity"/"model").Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
TILE
A grid of tiles addressed by cell, each cell holding an asset id. -
ENTITY
A group of freely placed 2D entities (sprites). -
MODEL
A group of freely placed 3D models.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
wireName
The lowercase JSON token for this kind ("tile"/"entity"/"model"). -
fromWire
The kind for a JSON token (case-insensitive); defaults to#ENTITY.
-