cn.nukkit.entity.ai.executor.AnimalGrowExecutor Maven / Gradle / Ivy
package cn.nukkit.entity.ai.executor;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.entity.EntityIntelligent;
import cn.nukkit.entity.passive.EntityAnimal;
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class AnimalGrowExecutor implements IBehaviorExecutor {
@Override
public boolean execute(EntityIntelligent entity) {
if (entity instanceof EntityAnimal animal) {
animal.setBaby(false);
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy