Enum Class DiffType

java.lang.Object
java.lang.Enum<DiffType>
net.lenni0451.imnbt.utils.nbt.diff.DiffType
All Implemented Interfaces:
Serializable, Comparable<DiffType>, Constable

public enum DiffType extends Enum<DiffType>
The types a tag node can have when being diffed.
  • Enum Constant Details

    • ADDED

      public static final DiffType ADDED
    • REMOVED

      public static final DiffType REMOVED
    • TYPE_CHANGED

      public static final DiffType TYPE_CHANGED
    • VALUE_CHANGED

      public static final DiffType VALUE_CHANGED
    • CHILD_CHANGED

      public static final DiffType CHILD_CHANGED
    • UNCHANGED

      public static final DiffType UNCHANGED
  • Method Details

    • values

      public static DiffType[] 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 DiffType 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
    • getColor

      @Nullable public Color getColor()