Commits

Doc authored and md_5 committed 9f15450b93c
SPIGOT-7195, SPIGOT-7197: Add DataPack API
No tags

src/main/java/org/bukkit/entity/EntityType.java

Modified
437 437
438 438 public boolean isAlive() {
439 439 return living;
440 440 }
441 441
442 442 @Override
443 443 @NotNull
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(@NotNull World world) {
455 + return Bukkit.getDataPackManager().isEnabledByFeature(this, world);
456 + }
447 457 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut