Entity#fromMobSpawner()

This commit is contained in:
BillyGalbreath
2017-06-18 18:17:05 -05:00
parent 3edcdeaf22
commit 760d9e300f
4 changed files with 108 additions and 98 deletions

View File

@@ -1011,4 +1011,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return originVector.toLocation(world);
}
// Paper end - entity origin API
// Paper start - Entity#fromMobSpawner
@Override
public boolean fromMobSpawner() {
return this.getHandle().spawnedViaMobSpawner;
}
// Paper end - Entity#fromMobSpawner
}