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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canSpawnAwayFromPlayer()
EntityCategory
category()
Gets theEntityCategory
of this type.boolean
isFlammable()
If trueentities
of this type may be caught on fire.boolean
isSummonable()
If trueentities
of this type may be summoned naturally or via command.boolean
isTransient()
If trueentities
of this type will not be saved to disk.-
Methods inherited from interface net.kyori.adventure.text.ComponentLike
asComponent
-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
isTransient
boolean isTransient()
If trueentities
of this type will not be saved to disk.- Returns:
- If the type is transient
-
isSummonable
boolean isSummonable()
If trueentities
of this type may be summoned naturally or via command.- Returns:
- If the type is summonable
-
isFlammable
boolean isFlammable()
If trueentities
of this type may be caught on fire.- Returns:
- If the type is flammable
-
canSpawnAwayFromPlayer
boolean canSpawnAwayFromPlayer()
- Returns:
- If the type can spawn far away from a player
-
category
EntityCategory category()
Gets theEntityCategory
of this type.- Returns:
- The category of this type
-
-