public boolean shouldExecute() { if (theDigimon.riddenByEntity == null || !(theDigimon.riddenByEntity instanceof EntityPlayer) || !theDigimon.canBeRided((EntityPlayer) theDigimon.riddenByEntity)) { return false; } rider = (EntityPlayer) theDigimon.riddenByEntity; return true; }
public boolean continueExecuting() { return theDigimon.isEntityAlive() && theDigimon.riddenByEntity != null && theDigimon.canBeRided(rider); }