Enum Class EntityDataTypes1_8

java.lang.Object
java.lang.Enum<EntityDataTypes1_8>
com.viaversion.viaversion.api.minecraft.entitydata.types.EntityDataTypes1_8
All Implemented Interfaces:
EntityDataType, Serializable, Comparable<EntityDataTypes1_8>, Constable

public enum EntityDataTypes1_8 extends Enum<EntityDataTypes1_8> implements EntityDataType
  • Enum Constant Details

  • Method Details

    • values

      public static EntityDataTypes1_8[] 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 EntityDataTypes1_8 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
    • byId

      public static EntityDataTypes1_8 byId(int id)
    • typeId

      public int typeId()
      Description copied from interface: EntityDataType
      Get type id from the specific EntityDataType
      Specified by:
      typeId in interface EntityDataType
      Returns:
      Type id as an integer
    • type

      public Type type()
      Description copied from interface: EntityDataType
      Get the write/read type
      Specified by:
      type in interface EntityDataType
      Returns:
      Type instance