Skip to content

getSpawnCategory for EntityType #13930

@Doc94

Description

@Doc94

Is your feature request related to a problem?

I wanna get the SpawnCategory for the EntityType and dont wanna summon an entity for get the SpawnCategory

Describe the solution you'd like.

A EntityType#getSpawnCategory

Describe alternatives you've considered.

Use paperweight.userdev for allow me to use the Craft class to convert to NMS EntityType get the Category and convert to Bukkit like this.

public static SpawnCategory getSpawnCategory(final EntityType entityType) {
    return org.bukkit.craftbukkit.util.CraftSpawnCategory.toBukkit(CraftEntityType.bukkitToMinecraft(entityType).getCategory());
}

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions