Commits
Doc authored and md_5 committed 9f15450b93c
437 437 | |
438 438 | public boolean isAlive() { |
439 439 | return living; |
440 440 | } |
441 441 | |
442 442 | |
443 443 | |
444 444 | public String getTranslationKey() { |
445 445 | return Bukkit.getUnsafe().getTranslationKey(this); |
446 446 | } |
447 + | |
448 + | /** |
449 + | * Gets if this EntityType is enabled by feature in a world. |
450 + | * |
451 + | * @param world the world to check |
452 + | * @return true if this EntityType can be used to spawn an Entity for this World. |
453 + | */ |
454 + | public boolean isEnabledByFeature( World world) { |
455 + | return Bukkit.getDataPackManager().isEnabledByFeature(this, world); |
456 + | } |
447 457 | } |