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>>

public static enum ContainedAssetCodec.Mode extends Enum<ContainedAssetCodec.Mode>
Since:
4/11/18
Version:
1.0
  • Enum Constant Details

    • NONE

      public static final ContainedAssetCodec.Mode NONE
      Default. Does nothing.
    • GENERATE_ID

      public static final ContainedAssetCodec.Mode GENERATE_ID
      If no id is set then one is generated from the key path where the data is defined.
    • INHERIT_ID

      public static final ContainedAssetCodec.Mode INHERIT_ID
      Makes the id of the child asset match the same as the asset containing this asset.
    • INHERIT_ID_AND_PARENT

      public static final ContainedAssetCodec.Mode 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

      public static final ContainedAssetCodec.Mode 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

      public static ContainedAssetCodec.Mode[] 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 ContainedAssetCodec.Mode 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