Annotation 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 ElementsModifier and TypeOptional ElementDescriptionSpecifies a custom map object type for the entity.floatSpecifies the default height of the entity.Specifies the default render type of the entity.booleanSpecifies whether the entity should be rendered with a layer.floatSpecifies the default width of the entity.
-
Element Details
-
height
float heightSpecifies the default height of the entity. Defaults to 32.- Returns:
- the default height of the entity
- Default:
32.0f
-
renderType
RenderType renderTypeSpecifies the default render type of the entity. Defaults toRenderType.NORMAL.- Returns:
- the default render type of the entity
- Default:
NORMAL
-
width
float widthSpecifies the default width of the entity. Defaults to 32.- Returns:
- the default width of the entity
- Default:
32.0f
-
customMapObjectType
String customMapObjectTypeSpecifies 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 renderWithLayerSpecifies 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
-