Enum Class EntityData.Type

java.lang.Object
java.lang.Enum<EntityData.Type>
com.ranull.graves.data.EntityData.Type
All Implemented Interfaces:
Serializable, Comparable<EntityData.Type>, Constable
Enclosing class:
EntityData

public static enum EntityData.Type extends Enum<EntityData.Type>
Enum representing the different types of entities that can be associated with a grave.
  • Enum Constant Details

    • HOLOGRAM

      public static final EntityData.Type HOLOGRAM
      Represents a hologram entity.
    • ARMOR_STAND

      public static final EntityData.Type ARMOR_STAND
      Represents an armor stand entity.
    • ITEM_FRAME

      public static final EntityData.Type ITEM_FRAME
      Represents an item frame entity.
    • MANNEQUIN

      public static final EntityData.Type MANNEQUIN
      Represents a mannequin entity.
    • FURNITURELIB

      public static final EntityData.Type FURNITURELIB
      Represents an entity from the FurnitureLib plugin.
    • FURNITUREENGINE

      public static final EntityData.Type FURNITUREENGINE
      Represents an entity from the FurnitureEngine plugin.
    • ITEMSADDER

      public static final EntityData.Type ITEMSADDER
      Represents an entity from the ItemsAdder plugin.
    • ORAXEN

      public static final EntityData.Type ORAXEN
      Represents an entity from the Oraxen plugin.
    • NEXO

      public static final EntityData.Type NEXO
      Represents an entity from the Nexo plugin.
    • PLAYERNPC

      public static final EntityData.Type PLAYERNPC
      Represents an entity from PlayerNPC plugin.
    • CUSTOM

      public static final EntityData.Type CUSTOM
      Represents a custom entry, whether that be an addon or module.
  • Method Details

    • values

      public static EntityData.Type[] 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 EntityData.Type 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
    • isVanilla

      public boolean isVanilla()
      Returns true if this type is one of the "vanilla" grave entity types.
      Returns:
      true for HOLOGRAM, ARMOR_STAND, ITEM_FRAME, MANNEQUIN
    • isIntegration

      public boolean isIntegration()
      Returns true if this type represents a third-party integration.
      Returns:
      true for integration-backed types
    • isCustom

      public boolean isCustom()
      Returns true if this type is CUSTOM.
      Returns:
      true when CUSTOM
    • fromString

      public static EntityData.Type fromString(String value)
      Safely resolves a EntityData.Type from a string.

      Accepts case-insensitive values like "hologram" or "ITEMSADDER". If the input is null, blank, or unrecognized, CUSTOM is returned.

      Parameters:
      value - the input string
      Returns:
      the resolved EntityData.Type or CUSTOM when invalid