Interface EntityType<A extends Entity>

All Superinterfaces:
ComponentLike, DefaultedRegistryValue, Taggable<EntityType<?>>

@CatalogedBy(EntityTypes.class) public interface EntityType<A extends Entity> extends DefaultedRegistryValue, ComponentLike, Taggable<EntityType<?>>
Describes a type of entity.
  • Method Details

    • isTransient

      boolean isTransient()
      If true entities of this type will not be saved to disk.
      Returns:
      If the type is transient
    • isSummonable

      boolean isSummonable()
      If true entities of this type may be summoned naturally or via command.
      Returns:
      If the type is summonable
    • isFlammable

      boolean isFlammable()
      If true entities of this type may be caught on fire.
      Returns:
      If the type is flammable
    • canSpawnAwayFromPlayer

      boolean canSpawnAwayFromPlayer()
      If true entities of this type may spawn out of range from players.
      Returns:
      If the type can spawn far away from a player
    • category

      EntityCategory category()
      Gets the EntityCategory of this type.
      Returns:
      The category of this type