if (entity.isSpawned()) {
// Check if entity specified can be described by 'EntityAge'
if (EntityAge.describes(entity)) {
EntityAge property = EntityAge.getFrom(entity);
// Adjust 'ageType'
if (ageType != null) {
if (ageType.equals(AgeType.BABY))
property.setBaby(true);
else property.setBaby(false);
}
else
property.setAge(age);
// Adjust 'locked'
property.setLock(lock);
}
else
dB.echoError(scriptEntry.getResidingQueue(), entity.identify() + " is not ageable!");