Annotation Interface EntityInfo


@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface EntityInfo
This annotation contains default values for an entity implementation. It can be used to specify default properties such as height, width, render type, custom map object type, and whether the entity should be rendered with a layer.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies a custom map object type for the entity.
    float
    Specifies the default height of the entity.
    Specifies the default render type of the entity.
    boolean
    Specifies whether the entity should be rendered with a layer.
    float
    Specifies the default width of the entity.
  • Element Details

    • height

      float height
      Specifies the default height of the entity. Defaults to 32.
      Returns:
      the default height of the entity
      Default:
      32.0f
    • renderType

      RenderType renderType
      Specifies the default render type of the entity. Defaults to RenderType.NORMAL.
      Returns:
      the default render type of the entity
      Default:
      NORMAL
    • width

      float width
      Specifies the default width of the entity. Defaults to 32.
      Returns:
      the default width of the entity
      Default:
      32.0f
    • customMapObjectType

      String customMapObjectType
      Specifies a custom map object type for the entity. Defaults to an empty string.
      Returns:
      the custom map object type of the entity
      Default:
      ""
    • renderWithLayer

      boolean renderWithLayer
      Specifies whether the entity should be rendered with a layer. Defaults to false.
      Returns:
      true if the entity should be rendered with a layer, false otherwise
      Default:
      false