Contents
Enum Class ContainedAssetCodec.Mode
java.lang.Object
java.lang.Enum<ContainedAssetCodec.Mode>
com.hypixel.hytale.assetstore.codec.ContainedAssetCodec.Mode
- All Implemented Interfaces:
Serializable, Comparable<ContainedAssetCodec.Mode>, Constable
- Enclosing class:
ContainedAssetCodec<K, T extends JsonAssetWithMap<K,M>, M extends AssetMap<K, T>>
- Since:
- 4/11/18
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf no id is set then one is generated from the key path where the data is defined.Makes the id of the child asset match the same as the asset containing this asset.Makes the id of the child asset match the same as the asset containing this asset.If no id is set then one is generated from the key path where the data is defined.Default. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainedAssetCodec.ModeReturns the enum constant of this class with the specified name.static ContainedAssetCodec.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Default. Does nothing. -
GENERATE_ID
If no id is set then one is generated from the key path where the data is defined. -
INHERIT_ID
Makes the id of the child asset match the same as the asset containing this asset. -
INHERIT_ID_AND_PARENT
Makes the id of the child asset match the same as the asset containing this asset. Additionally, if the parent id isn't set it is filled in with same id used for the containing assets parent. -
INJECT_PARENT
If no id is set then one is generated from the key path where the data is defined. Additionally, if the parent id isn't set it is filled in with the key of the asset containing this asset.
-
-
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
-