Package org.spongepowered.api.entity
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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSpawnAwayFromPlayer()EntityCategorycategory()Gets theEntityCategoryof this type.booleanisFlammable()If trueentitiesof this type may be caught on fire.booleanisSummonable()If trueentitiesof this type may be summoned naturally or via command.booleanisTransient()If trueentitiesof this type will not be saved to disk.- 
Methods inherited from interface net.kyori.adventure.text.ComponentLikeasComponent
 - 
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValueasDefaultedReference, findKey, key
 
- 
 
- 
- 
- 
Method Detail- 
isTransientboolean isTransient() If trueentitiesof this type will not be saved to disk.- Returns:
- If the type is transient
 
 - 
isSummonableboolean isSummonable() If trueentitiesof this type may be summoned naturally or via command.- Returns:
- If the type is summonable
 
 - 
isFlammableboolean isFlammable() If trueentitiesof this type may be caught on fire.- Returns:
- If the type is flammable
 
 - 
canSpawnAwayFromPlayerboolean canSpawnAwayFromPlayer() - Returns:
- If the type can spawn far away from a player
 
 - 
categoryEntityCategory category() Gets theEntityCategoryof this type.- Returns:
- The category of this type
 
 
- 
 
-